Address latest breaking change in creating forum posts

This commit is contained in:
Rapptz
2022-04-29 12:39:12 -04:00
parent ef20264b1c
commit 06df0d7931
2 changed files with 11 additions and 7 deletions

View File

@@ -2244,7 +2244,7 @@ class ForumChannel(discord.abc.GuildChannel, Hashable):
content = str(content) if content else MISSING
extras = {
channel_payload = {
'name': name,
'auto_archive_duration': auto_archive_duration or self.default_auto_archive_duration,
'rate_limit_per_user': slowmode_delay,
@@ -2264,7 +2264,7 @@ class ForumChannel(discord.abc.GuildChannel, Hashable):
stickers=sticker_ids,
view=view,
flags=flags,
extras=extras,
channel_payload=channel_payload,
) as params:
data = await state.http.start_thread_in_forum(self.id, params=params, reason=reason)
return Thread(guild=self.guild, state=self._state, data=data)