fix goodbye

This commit is contained in:
Jonny_Bro (Nikita) 2024-06-16 22:22:06 +05:00
parent 7a4fe1a80f
commit 0baaa76be3
Signed by: jonny_bro
GPG key ID: 3F1ECC04147E9BD8
2 changed files with 3 additions and 3 deletions

View file

@ -109,7 +109,7 @@ class Goodbye extends BaseCommand {
} else { } else {
const channel = interaction.options.getChannel("channel") || interaction.channel; const channel = interaction.options.getChannel("channel") || interaction.channel;
const message = interaction.options.getString("message") || interaction.translate("administration/goodbye:DEFAULT_MESSAGE"); const message = interaction.options.getString("message") || interaction.translate("administration/goodbye:DEFAULT_MESSAGE");
const image = interaction.options.getBoolean("image") === true ? true : false; const image = interaction.options.getBoolean("image") || false;
guildData.plugins.goodbye = { guildData.plugins.goodbye = {
enabled: true, enabled: true,
@ -122,7 +122,7 @@ class Goodbye extends BaseCommand {
interaction.success("administration/goodbye:ENABLED", { interaction.success("administration/goodbye:ENABLED", {
channel: `${channel.toString()}`, channel: `${channel.toString()}`,
}, { ephemeral: true }); }, { edit: true });
} }
} }
} }

View file

@ -109,7 +109,7 @@ class Welcome extends BaseCommand {
} else { } else {
const channel = interaction.options.getChannel("channel") || interaction.channel; const channel = interaction.options.getChannel("channel") || interaction.channel;
const message = interaction.options.getString("message") || interaction.translate("administration/welcome:DEFAULT_MESSAGE"); const message = interaction.options.getString("message") || interaction.translate("administration/welcome:DEFAULT_MESSAGE");
const image = interaction.options.getBoolean("image") === true ? true : false; const image = interaction.options.getBoolean("image") || false;
guildData.plugins.welcome = { guildData.plugins.welcome = {
enabled: true, enabled: true,