Skip to content
Merged
Changes from all commits
Commits
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
2 changes: 2 additions & 0 deletions interactions/models/discord/channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -775,6 +775,8 @@ class BaseChannel(DiscordObject):
"""The name of the channel (1-100 characters)"""
type: Union[ChannelType, int] = attrs.field(repr=True, converter=ChannelType)
"""The channel topic (0-1024 characters)"""
permissions: Optional[Permissions] = attrs.field(repr=False, default=None, converter=optional_c(Permissions))
"""Calculated permissions for the bot in this channel, only given when using channels as an option with slash commands"""

@classmethod
def from_dict_factory(cls, data: dict, client: "Client") -> "TYPE_ALL_CHANNEL":
Expand Down