Skip to content

Channel Events

Note

The following classes come from the discord.events.channel_events module.


GuildChannelEvent dataclass

Base guild channel event.

id: int instance-attribute

ID of the guild channel.

guild_id: Optional[int] instance-attribute

Guild ID of the channel.

position: Optional[int] instance-attribute

Position of the channel within a category.

name: Optional[str] instance-attribute

Name of the channel.

topic: Optional[str] instance-attribute

Topic of the channel.

nsfw: Optional[bool] instance-attribute

If this channel is flagged NSFW.

last_message_id: Optional[int] instance-attribute

ID of the last message sent in the channel.

parent_id: Optional[int] instance-attribute

Category ID of the channel.


GuildChannelCreateEvent dataclass

Bases: GuildChannelEvent

Received when a guild channel has been created.


GuildChannelUpdateEvent dataclass

Bases: GuildChannelEvent

Received when a guild channel has been updated.


GuildChannelDeleteEvent dataclass

Bases: GuildChannelEvent

Received when a guild channel has been deleted.