nyx

The first CODM discrod bot -- cath.exe Template
git clone https://codeberg.org/night0721/nyx
Log | Files | Refs | LICENSE

commit 84312dcda99354fd99f1cf49cef86a00e8da535a
parent 43b177b330b19ca6cbf53c5fb968e1215b095258
Author: ThunderE75 <[email protected]>
Date:   Fri, 10 Dec 2021 01:12:55 +0530

typo & bug fixes
Diffstat:
Mcommand/Owner/blacklist.js | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/command/Owner/blacklist.js b/command/Owner/blacklist.js @@ -13,7 +13,7 @@ module.exports = { }, { type: 5, - name: "blacklist", + name: "yesno", description: "Whether to blacklist or whitelist", required: true, }, @@ -25,9 +25,9 @@ module.exports = { }, ], run: async (client, interaction) => { - const user = interaction.options.getUser("User"); - const toggle = interaction.options.getBoolean("Blacklist"); - const reason = interaction.options.getString("Reason"); + const user = interaction.options.getUser("user"); + const toggle = interaction.options.getBoolean("yesno"); + const reason = interaction.options.getString("reason"); if (toggle === true) { await client.data.BK(user.id, toggle, reason); const embed = new MessageEmbed()