From 1e8f0ab0589dec6dd58fa98e1ad6dc74d2752256 Mon Sep 17 00:00:00 2001 From: toast-ts <96593068+toast-ts@users.noreply.github.com> Date: Tue, 22 Nov 2022 22:00:04 +1100 Subject: [PATCH] unblock /bonk to be used in general-chat --- src/commands/bonk.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands/bonk.ts b/src/commands/bonk.ts index 28102c2..5565c4d 100644 --- a/src/commands/bonk.ts +++ b/src/commands/bonk.ts @@ -2,14 +2,14 @@ import Discord,{SlashCommandBuilder} from 'discord.js'; import { TClient } from 'src/client'; export default { async run(client: TClient, interaction: Discord.ChatInputCommandInteraction<'cached'>){ - if (!client.isStaff(interaction.member) && interaction.channelId == '468835415093411863') return interaction.reply('This command is restricted to staff only in this channel due to high usage.') + //if (!client.isStaff(interaction.member) && interaction.channelId == '468835415093411863') return interaction.reply('This command is restricted to staff only in this channel due to high usage.') const member = interaction.options.getUser('member'); const reason = interaction.options.getString('reason'); const adminPerm = interaction.member.permissions.has('Administrator') if (!member) { return interaction.reply('You can\'t bonk the ghost.') } else { - //if (member && adminPerm) return interaction.reply('You cannot bonk an admin!') + //if (member && adminPerm) return interaction.reply('You cannot bonk an admin!') | i need halp with this if (member) { const embed = new client.embed().setColor(client.config.embedColor) .setDescription(`> <@${member.id}> has been bonked!\n${reason?.length == null ? '' : `> Reason: **${reason}**`}`)