Browse Source

Fix default_thread_slowmode_delay

pull/8471/head
z03h 3 years ago
committed by GitHub
parent
commit
c854ee2978
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      discord/channel.py

2
discord/channel.py

@ -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…
Cancel
Save