Fix changes requested

This commit is contained in:
Ethan Lane 2022-09-18 08:53:17 +01:00
parent 09c431def7
commit 7e827090f9
Signed by: Vylpes
GPG key ID: EED233CC06D12504
4 changed files with 3 additions and 5 deletions

View file

@ -11,9 +11,10 @@ export class Events {
const disabledCommandsString = await SettingsHelper.GetSetting("commands.disabled", interaction.guildId);
const disabledCommands = disabledCommandsString?.split(",");
if (disabledCommands?.find(x => x == interaction.commandName)) {
await interaction.reply(process.env.COMMANDS_DISABLED_MESSAGE || "This command is disabled.");
const disabledCommandsMessage = await SettingsHelper.GetSetting("commands.disabled.message", interaction.guildId);
if (disabledCommands?.find(x => x == interaction.commandName)) {
await interaction.reply(disabledCommandsMessage || "This command is disabled.");
return;
}