From c8ab14a59c5080712aa30704e866f367218cc939 Mon Sep 17 00:00:00 2001 From: JonnyBro Date: Sun, 14 Aug 2022 23:07:44 +0500 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D0=BE=D0=BB=D1=8C=D0=B7?= =?UTF-8?q?=D0=BE=D0=B2=D0=B0=D1=82=D1=8C=20=D1=81=D1=82=D0=B0=D0=BD=D0=B4?= =?UTF-8?q?=D0=B0=D1=80=D1=82=D0=BD=D0=BE=D0=B5=20=D1=81=D0=BE=D0=BE=D0=B1?= =?UTF-8?q?=D1=89=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=B5=D1=81=D0=BB=D0=B8=20?= =?UTF-8?q?=D0=BD=D0=B5=20=D1=83=D0=BA=D0=B0=D0=B7=D0=B0=D0=BD=D0=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- commands/Administration/goodbye.js | 2 +- commands/Administration/welcome.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/Administration/goodbye.js b/commands/Administration/goodbye.js index 7c110f6a..563400cc 100644 --- a/commands/Administration/goodbye.js +++ b/commands/Administration/goodbye.js @@ -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 = { diff --git a/commands/Administration/welcome.js b/commands/Administration/welcome.js index af320614..37f9bae5 100644 --- a/commands/Administration/welcome.js +++ b/commands/Administration/welcome.js @@ -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 = {