From 2a9d3ff78ce6f32c121c9c850f12a2a733082dad Mon Sep 17 00:00:00 2001 From: MathMan05 Date: Tue, 25 Nov 2025 10:33:52 -0600 Subject: [PATCH] slight fix --- src/api/util/handlers/Message.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/api/util/handlers/Message.ts b/src/api/util/handlers/Message.ts index bdac041dd..2294e7022 100644 --- a/src/api/util/handlers/Message.ts +++ b/src/api/util/handlers/Message.ts @@ -76,7 +76,8 @@ export async function handleMessage(opts: MessageOptions): Promise { console.log(limit, lastMsgTime && +lastMsgTime - (Date.now() - limit * 1000)); if (lastMsgTime && Date.now() - limit * 1000 < +lastMsgTime) { permission ||= await getPermission(opts.author_id, channel.guild_id, channel); - if (!permission.has("MANAGE_MESSAGES") && !permission.has("MANAGE_CHANNELS")) { + //FIXME MANAGE_MESSAGES and MANAGE_CHANNELS will need to be removed once they're gone as checks + if (!permission.has("MANAGE_MESSAGES") && !permission.has("MANAGE_CHANNELS") && !permission.has("BYPASS_SLOWMODE")) { throw DiscordApiErrors.SLOWMODE_RATE_LIMIT; } }