mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-25 06:34:58 +05:00
fix goodbye and welcome not setting image
This commit is contained in:
parent
57b4acc540
commit
e9855591b2
2 changed files with 6 additions and 6 deletions
|
@ -111,11 +111,11 @@ class Goodbye extends BaseCommand {
|
||||||
data.guildData.markModified("plugins.goodbye");
|
data.guildData.markModified("plugins.goodbye");
|
||||||
await data.guildData.save();
|
await data.guildData.save();
|
||||||
|
|
||||||
interaction.success("administration/goodbye:DISABLED");
|
interaction.success("administration/goodbye:DISABLED", null, { ephemeral: true });
|
||||||
} 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;
|
const image = interaction.options.getBoolean("image") === true ? true : false;
|
||||||
|
|
||||||
data.guildData.plugins.goodbye = {
|
data.guildData.plugins.goodbye = {
|
||||||
enabled: true,
|
enabled: true,
|
||||||
|
@ -128,7 +128,7 @@ class Goodbye extends BaseCommand {
|
||||||
await data.guildData.save();
|
await data.guildData.save();
|
||||||
|
|
||||||
interaction.success("administration/goodbye:ENABLED", {
|
interaction.success("administration/goodbye:ENABLED", {
|
||||||
channel: `<#${data.guildData.plugins.goodbye.channel}>`,
|
channel: `${channel.toString()}`,
|
||||||
}, { ephemeral: true });
|
}, { ephemeral: true });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -111,11 +111,11 @@ class Welcome extends BaseCommand {
|
||||||
data.guildData.markModified("plugins.welcome");
|
data.guildData.markModified("plugins.welcome");
|
||||||
await data.guildData.save();
|
await data.guildData.save();
|
||||||
|
|
||||||
interaction.success("administration/welcome:DISABLED");
|
interaction.success("administration/welcome:DISABLED", null, { ephemeral: true });
|
||||||
} 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;
|
const image = interaction.options.getBoolean("image") === true ? true : false;
|
||||||
|
|
||||||
data.guildData.plugins.welcome = {
|
data.guildData.plugins.welcome = {
|
||||||
enabled: true,
|
enabled: true,
|
||||||
|
@ -128,7 +128,7 @@ class Welcome extends BaseCommand {
|
||||||
await data.guildData.save();
|
await data.guildData.save();
|
||||||
|
|
||||||
interaction.success("administration/welcome:ENABLED", {
|
interaction.success("administration/welcome:ENABLED", {
|
||||||
channel: `<#${data.guildData.plugins.welcome.channel}>`,
|
channel: `${channel.toString()}`,
|
||||||
}, { ephemeral: true });
|
}, { ephemeral: true });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue