From a073fd4bb4d5b1e0f3b3ba704677c61bbcc93a1a Mon Sep 17 00:00:00 2001 From: Glazelf Date: Mon, 26 Jun 2023 23:53:20 +0200 Subject: [PATCH] typo --- commands/mod/slowmode.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/mod/slowmode.js b/commands/mod/slowmode.js index 5061f6c01..8ad0fb201 100644 --- a/commands/mod/slowmode.js +++ b/commands/mod/slowmode.js @@ -17,7 +17,7 @@ exports.run = async (client, interaction) => { ]; if (!interaction.member.permissions.has("MANAGE_CHANNELS") && !adminBool) return sendMessage({ client: client, interaction: interaction, content: globalVars.lackPerms }); - if (!slowmodeSupportedChannelTypes.has(interaction.channel.type)) return sendMessage({ client: client, interaction: interaction, content: `This channel type doesn't support slowmode.` }); + if (!slowmodeSupportedChannelTypes.includes(interaction.channel.type)) return sendMessage({ client: client, interaction: interaction, content: `This channel type doesn't support slowmode.` }); let time = interaction.options.getInteger("time"); let slowmodeMaxSeconds = 21600;