typo & bug fixes
This commit is contained in:
parent
43b177b330
commit
84312dcda9
1 changed files with 4 additions and 4 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue