Add support for newest ForumChannel changes

This adds the following:

- Forum tag support
- Default reaction support
- Default slowmode for newly created threads
This commit is contained in:
Rapptz
2022-08-31 10:56:57 -04:00
parent bdda31307b
commit ab265dcb7c
10 changed files with 558 additions and 64 deletions

View File

@ -1490,6 +1490,15 @@ class ChannelFlags(BaseFlags):
""":class:`bool`: Returns ``True`` if the thread is pinned to the forum channel."""
return 1 << 1
@flag_value
def require_tag(self):
""":class:`bool`: Returns ``True`` if a tag is required to be specified when creating a thread
in a :class:`ForumChannel`.
.. versionadded:: 2.1
"""
return 1 << 4
class ArrayFlags(BaseFlags):
@classmethod