mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-06 09:56:09 +00:00
Don't store finished views/modals
This commit is contained in:
@ -2653,7 +2653,7 @@ class ForumChannel(discord.abc.GuildChannel, Hashable):
|
||||
data = await state.http.start_thread_in_forum(self.id, params=params, reason=reason)
|
||||
thread = Thread(guild=self.guild, state=self._state, data=data)
|
||||
message = Message(state=self._state, channel=thread, data=data['message'])
|
||||
if view:
|
||||
if view and not view.is_finished():
|
||||
self._state.store_view(view, message.id)
|
||||
|
||||
return ThreadWithMessage(thread=thread, message=message)
|
||||
|
Reference in New Issue
Block a user