Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Forum channels support #1249

Merged
merged 22 commits into from
May 13, 2022
Merged
Show file tree
Hide file tree
Changes from 17 commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions discord/abc.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@
from .types.channel import PermissionOverwrite as PermissionOverwritePayload
from .ui.view import View
from .user import ClientUser
from .flags import ChannelFlags

PartialMessageableChannel = Union[TextChannel, VoiceChannel, Thread, DMChannel, PartialMessageable]
MessageableChannel = Union[PartialMessageableChannel, GroupChannel]
Expand Down Expand Up @@ -305,6 +306,7 @@ class GuildChannel:
- :class:`~discord.VoiceChannel`
- :class:`~discord.CategoryChannel`
- :class:`~discord.StageChannel`
- :class:`~discord.ForumChannel`

This ABC must also implement :class:`~discord.abc.Snowflake`.

Expand All @@ -327,6 +329,7 @@ class GuildChannel:
type: ChannelType
position: int
category_id: Optional[int]
flags: ChannelFlags
_state: ConnectionState
_overwrites: List[_Overwrites]

Expand Down
Loading