mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-22 13:14: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");
|
interaction.success("administration/goodbye:DISABLED");
|
||||||
} else {
|
} else {
|
||||||
const channel = interaction.options.getChannel("channel");
|
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");
|
const image = interaction.options.getBoolean("image");
|
||||||
|
|
||||||
data.guildData.plugins.goodbye = {
|
data.guildData.plugins.goodbye = {
|
||||||
|
|
|
@ -67,7 +67,7 @@ class Welcome extends BaseCommand {
|
||||||
interaction.success("administration/welcome:DISABLED");
|
interaction.success("administration/welcome:DISABLED");
|
||||||
} else {
|
} else {
|
||||||
const channel = interaction.options.getChannel("channel");
|
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");
|
const image = interaction.options.getBoolean("image");
|
||||||
|
|
||||||
data.guildData.plugins.welcome = {
|
data.guildData.plugins.welcome = {
|
||||||
|
|
Loading…
Reference in a new issue