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, type: 5,
name: "blacklist", name: "yesno",
description: "Whether to blacklist or whitelist", description: "Whether to blacklist or whitelist",
required: true, required: true,
}, },
@ -25,9 +25,9 @@ module.exports = {
}, },
], ],
run: async (client, interaction) => { run: async (client, interaction) => {
const user = interaction.options.getUser("User"); const user = interaction.options.getUser("user");
const toggle = interaction.options.getBoolean("Blacklist"); const toggle = interaction.options.getBoolean("yesno");
const reason = interaction.options.getString("Reason"); const reason = interaction.options.getString("reason");
if (toggle === true) { if (toggle === true) {
await client.data.BK(user.id, toggle, reason); await client.data.BK(user.id, toggle, reason);
const embed = new MessageEmbed() const embed = new MessageEmbed()