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,
|
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()
|
||||||
|
|
Loading…
Reference in a new issue