From 7b19279fcfb522374657f6bd25585a2702b36aee Mon Sep 17 00:00:00 2001 From: WubzyGD Date: Wed, 14 Oct 2020 20:27:10 -0600 Subject: [PATCH] couple more staff cmd bugs --- commands/support.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/support.js b/commands/support.js index b2324a4..490bbc1 100644 --- a/commands/support.js +++ b/commands/support.js @@ -6,14 +6,14 @@ module.exports = { help: new Discord.MessageEmbed() .setTitle("Help -> Support") .setDescription("Make a user a Natsuki Support Team member") - .addField("Syntax", "`admin <@user|userID>`") + .addField("Syntax", "`support <@user|userID>`") .addField("Notice", "This command is only available to Natsuki admin."), async execute(message, msg, args, cmd, prefix, mention, client) { if (!message.guild) {return message.reply("This is a guild-only command.");} if (!args.length) {return message.channel.send(`Syntax: \`${prefix}\``);} let person = mention ? mention : args[1] ? client.users.cache.has(args[1]) ? client.users.cache.get(args[1]) : null : null; let tu = await UserData.findOne({uid: person ? person.id : message.author.id}) ? await UserData.findOne({uid: person ? person.id : message.author.id}) : new UserData({uid: person ? person.id : message.author.id}); - if (['c', 'check'].includes(args[0])) {return message.reply(`${person ? person : message.member.displayName} ${tu.admin ? 'is' : 'is not'} a part of Natsuki Support.`);} + if (['c', 'check'].includes(args[0])) {return message.reply(`${person ? person : message.member.displayName} ${tu.support ? 'is' : 'is not'} a part of Natsuki Support.`);} if (!['a', 'add', 'r', 'remove'].includes(args[0])) {return message.reply("You must specify whether to `add` or `remove` someone as a Support Team Member.");} if (!person) {return message.reply("You must mention someone to add as a support member, or use their ID.");} let atu = await UserData.findOne({uid: message.author.id});