typo & bug fixes

This commit is contained in:
ThunderE75 2021-12-10 01:12:55 +05:30
parent 43b177b330
commit 84312dcda9

View file

@ -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()