Compare commits

..

No commits in common. "99c889b82ca3240822afff5d7f1a3ee2f7fc0116" and "fa4236d8a165404e7dce725d03d4399bdefa9df0" have entirely different histories.

3 changed files with 4 additions and 18 deletions

View file

@ -116,7 +116,7 @@ export default class Config extends Command {
const setting = server.Settings.filter(x => x.Key == key.value)[0];
if (setting) {
await interaction.reply(`\`${key.value}\`: \`${setting.Value}\``);
await interaction.reply(`\`${key}\`: \`${setting.Value}\``);
} else {
var defaultValue = DefaultValues.GetValue(key.value.toString());

View file

@ -54,14 +54,7 @@ export default class Mute extends Command {
},
]);
const mutedRoleName = await SettingsHelper.GetSetting('role.muted', interaction.guildId);
if (!mutedRoleName) {
await interaction.reply('Unable to find configuration. Please contact the bot author.');
return;
}
const mutedRole = interaction.guild.roles.cache.find(role => role.name == mutedRoleName);
const mutedRole = interaction.guild.roles.cache.find(role => role.name == process.env.ROLES_MUTED);
if (!mutedRole) {
await interaction.reply('Muted role not found.');

View file

@ -52,14 +52,7 @@ export default class Unmute extends Command {
},
]);
const mutedRoleName = await SettingsHelper.GetSetting('role.muted', interaction.guildId);
if (!mutedRoleName) {
await interaction.reply('Unable to find configuration. Please contact the bot author.');
return;
}
const mutedRole = interaction.guild.roles.cache.find(role => role.name == mutedRoleName);
const mutedRole = interaction.guild.roles.cache.find(role => role.name == process.env.ROLES_MUTED);
if (!mutedRole) {
await interaction.reply('Muted role not found.');