From 30cc00c9a4a92c5afa08cceedfe46c296cff0a7d Mon Sep 17 00:00:00 2001 From: Rapptz Date: Wed, 6 Apr 2022 23:27:27 -0400 Subject: [PATCH] Explicitly specify public threads when creating them in forums The endpoint seems to fail otherwise --- discord/channel.py | 1 + 1 file changed, 1 insertion(+) diff --git a/discord/channel.py b/discord/channel.py index c3b5d6101..204bba8cd 100644 --- a/discord/channel.py +++ b/discord/channel.py @@ -2225,6 +2225,7 @@ class ForumChannel(discord.abc.GuildChannel, Hashable): 'name': name, 'auto_archive_duration': auto_archive_duration or self.default_auto_archive_duration, 'rate_limit_per_user': slowmode_delay, + 'type': 11, # Private threads don't seem to be allowed } with handle_message_parameters(