From 5c64ff1cbeb93bbfe7c62758a01a0d78d7c05841 Mon Sep 17 00:00:00 2001 From: JonnyBro Date: Sat, 9 Apr 2022 23:54:12 +0500 Subject: [PATCH] =?UTF-8?q?=D0=A4=D0=B8=D0=BA=D1=81=D0=B8=D0=BA=D0=B8?= 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 +- commands/General/whois.js | 4 +++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/commands/Administration/goodbye.js b/commands/Administration/goodbye.js index ce514587..8a2c1573 100644 --- a/commands/Administration/goodbye.js +++ b/commands/Administration/goodbye.js @@ -90,7 +90,7 @@ class Goodbye extends Command { if (!channel) return message.error("misc:INVALID_CHANNEL"); goodbye.channel = channel.id; - message.sendT("administration/goodbye:FORM_2", { + return message.sendT("administration/goodbye:FORM_2", { channel: channel.toString(), author: msg.author.tag, memberCount: msg.guild.memberCount diff --git a/commands/Administration/welcome.js b/commands/Administration/welcome.js index 3dbaf627..2e2bd7ad 100644 --- a/commands/Administration/welcome.js +++ b/commands/Administration/welcome.js @@ -93,7 +93,7 @@ class Welcome extends Command { if (!channel) return message.error("misc:INVALID_CHANNEL"); welcome.channel = channel.id; - message.sendT("administration/welcome:FORM_2", { + return message.sendT("administration/welcome:FORM_2", { guildName: message.guild.name, author: msg.author.tag, memberCount: msg.guild.memberCount diff --git a/commands/General/whois.js b/commands/General/whois.js index 2f221d62..93c741c4 100644 --- a/commands/General/whois.js +++ b/commands/General/whois.js @@ -34,7 +34,9 @@ class Whois extends Command { text: data.config.embed.footer }) .setTimestamp(); - return message.reply(embed); + return message.reply({ + embeds: [embed] + }); } const embed = new Discord.MessageEmbed()