mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-22 16:51:59 +00:00
Fix default_thread_slowmode_delay
This commit is contained in:
parent
edfacb36cf
commit
c854ee2978
@ -2173,7 +2173,7 @@ class ForumChannel(discord.abc.GuildChannel, Hashable):
|
||||
self.last_message_id: Optional[int] = utils._get_as_snowflake(data, 'last_message_id')
|
||||
# This takes advantage of the fact that dicts are ordered since Python 3.7
|
||||
tags = [ForumTag.from_data(state=self._state, data=tag) for tag in data.get('available_tags', [])]
|
||||
self.default_thread_slowmode_delay: int = data.get('default_thread_slowmode_delay', 0)
|
||||
self.default_thread_slowmode_delay: int = data.get('default_thread_rate_limit_per_user', 0)
|
||||
self._available_tags: Dict[int, ForumTag] = {tag.id: tag for tag in tags}
|
||||
|
||||
self.default_reaction_emoji: Optional[PartialEmoji] = None
|
||||
|
Loading…
x
Reference in New Issue
Block a user