From 84312dcda99354fd99f1cf49cef86a00e8da535a Mon Sep 17 00:00:00 2001 From: ThunderE75 <74486623+ThunderE75@users.noreply.github.com> Date: Fri, 10 Dec 2021 01:12:55 +0530 Subject: [PATCH] typo & bug fixes --- command/Owner/blacklist.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/command/Owner/blacklist.js b/command/Owner/blacklist.js index 063d582..ce720c0 100644 --- 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()