mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-07 10:22:59 +00:00
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:
@ -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
|
||||
|
Reference in New Issue
Block a user