Skip to content

Commit 6228d50

Browse files
BobDotComkrittickplun1331Lulalaby
authored
Forum channels support (#1249)
* Initial forum channel commit * Update discord/channel.py Co-authored-by: plun1331 <[email protected]> * Update discord/abc.py Co-authored-by: Lala Sabathil <[email protected]> * Update discord/channel.py Co-authored-by: Lala Sabathil <[email protected]> * Update discord/channel.py Co-authored-by: Lala Sabathil <[email protected]> * Update discord/channel.py Co-authored-by: Lala Sabathil <[email protected]> * Update discord/channel.py Co-authored-by: Lala Sabathil <[email protected]> * Update discord/channel.py Co-authored-by: Lala Sabathil <[email protected]> * Update discord/channel.py Co-authored-by: Lala Sabathil <[email protected]> * Add more forum channel/thread features * Update discord/channel.py * apply linting, fix indentation Co-authored-by: krittick <[email protected]> Co-authored-by: plun1331 <[email protected]> Co-authored-by: Lala Sabathil <[email protected]> Co-authored-by: plun1331 <[email protected]>
1 parent 8b42c46 commit 6228d50

File tree

7 files changed

+552
-56
lines changed

7 files changed

+552
-56
lines changed

discord/abc.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@
8686
from .client import Client
8787
from .embeds import Embed
8888
from .enums import InviteTarget
89+
from .flags import ChannelFlags
8990
from .guild import Guild
9091
from .member import Member
9192
from .message import Message, MessageReference, PartialMessage
@@ -305,6 +306,7 @@ class GuildChannel:
305306
- :class:`~discord.VoiceChannel`
306307
- :class:`~discord.CategoryChannel`
307308
- :class:`~discord.StageChannel`
309+
- :class:`~discord.ForumChannel`
308310
309311
This ABC must also implement :class:`~discord.abc.Snowflake`.
310312
@@ -327,6 +329,7 @@ class GuildChannel:
327329
type: ChannelType
328330
position: int
329331
category_id: Optional[int]
332+
flags: ChannelFlags
330333
_state: ConnectionState
331334
_overwrites: List[_Overwrites]
332335

0 commit comments

Comments
 (0)