From 1f5db5456e0b7b7f903ed02b39a68a35afb2451a Mon Sep 17 00:00:00 2001 From: MarcusOtter Date: Fri, 21 Oct 2022 21:10:19 +0200 Subject: [PATCH] Fix thread creation issue --- src/services/ThreadCreationService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/ThreadCreationService.ts b/src/services/ThreadCreationService.ts index 39292ac4..cbee50c1 100644 --- a/src/services/ThreadCreationService.ts +++ b/src/services/ThreadCreationService.ts @@ -87,7 +87,7 @@ export default class InformationService { const name = await this.getThreadName(message, channelConfig, messageVariables); const thread = await message.startThread({ name, - rateLimitPerUser: channelConfig.slowmode, + rateLimitPerUser: channelConfig.slowmode === 0 ? undefined : channelConfig.slowmode, autoArchiveDuration: message.channel.defaultAutoArchiveDuration ?? ThreadAutoArchiveDuration.OneDay, });