We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6faeb41 commit 09d1becCopy full SHA for 09d1bec
interactions/models/discord/channel.py
@@ -775,6 +775,8 @@ class BaseChannel(DiscordObject):
775
"""The name of the channel (1-100 characters)"""
776
type: Union[ChannelType, int] = attrs.field(repr=True, converter=ChannelType)
777
"""The channel topic (0-1024 characters)"""
778
+ permissions: Optional[Permissions] = attrs.field(repr=False, default=None, converter=optional_c(Permissions))
779
+ """Calculated permissions for the bot in this channel, only given when using channels as an option with slash commands"""
780
781
@classmethod
782
def from_dict_factory(cls, data: dict, client: "Client") -> "TYPE_ALL_CHANNEL":
0 commit comments