From 60d9fb97c41652d401bfdc90c2efb68294e3f3b9 Mon Sep 17 00:00:00 2001 From: toast-ts <96593068+toast-ts@users.noreply.github.com> Date: Sat, 19 Nov 2022 03:56:18 +1100 Subject: [PATCH] forgor to revert channel id --- src/commands/mp.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands/mp.ts b/src/commands/mp.ts index c18b2ba..3c59fff 100644 --- a/src/commands/mp.ts +++ b/src/commands/mp.ts @@ -27,9 +27,9 @@ async function MPdata(client:TClient, interaction:Discord.ChatInputCommandIntera return FSserver } -export default { //468835769092669461 +export default { async run(client: TClient, interaction: Discord.ChatInputCommandInteraction<'cached'>){ - if (interaction.channelId == '904192878140608563' && !client.isStaff(interaction.member) && ['status', 'players'].includes(interaction.options.getSubcommand())) { + if (interaction.channelId == '468835769092669461' && !client.isStaff(interaction.member) && ['status', 'players'].includes(interaction.options.getSubcommand())) { interaction.reply(`Please use <#739084625862852715> for \`/mp status/players\` commands to prevent clutter in this channel.`).then((msg)=>{ setTimeout(()=>{interaction.deleteReply()}, 5000) });