mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-25 06:34:58 +05:00
Использовать стандартное сообщение если не указано
This commit is contained in:
parent
fe0506ea98
commit
c8ab14a59c
2 changed files with 2 additions and 2 deletions
|
@ -67,7 +67,7 @@ class Goodbye extends BaseCommand {
|
|||
interaction.success("administration/goodbye:DISABLED");
|
||||
} else {
|
||||
const channel = interaction.options.getChannel("channel");
|
||||
const message = interaction.options.getString("message");
|
||||
const message = interaction.options.getString("message") || interaction.translate("administration/goodbye:DEFAULT_MESSAGE");
|
||||
const image = interaction.options.getBoolean("image");
|
||||
|
||||
data.guildData.plugins.goodbye = {
|
||||
|
|
|
@ -67,7 +67,7 @@ class Welcome extends BaseCommand {
|
|||
interaction.success("administration/welcome:DISABLED");
|
||||
} else {
|
||||
const channel = interaction.options.getChannel("channel");
|
||||
const message = interaction.options.getString("message");
|
||||
const message = interaction.options.getString("message") || interaction.translate("administration/welcome:DEFAULT_MESSAGE");
|
||||
const image = interaction.options.getBoolean("image");
|
||||
|
||||
data.guildData.plugins.welcome = {
|
||||
|
|
Loading…
Reference in a new issue