mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-22 05:04:58 +05:00
fix goodbye
This commit is contained in:
parent
7a4fe1a80f
commit
0baaa76be3
2 changed files with 3 additions and 3 deletions
|
@ -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 });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue