Skip to content

Guild Events

Note

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


GuildEvent dataclass

Base guild event.

joined_at: str instance-attribute

ISO8601 timestamp of when app joined the guild.

large: bool instance-attribute

If the guild is considered large.

member_count: int instance-attribute

Total number of members in the guild.

members: list[MemberModel] instance-attribute

Users in the guild.

channels: list[Channel] instance-attribute

Channels in the guild.


GuildCreateEvent dataclass

Bases: GuildEvent

Received when the bot has joined a guild.


GuildUpdateEvent dataclass

Bases: GuildEvent

Received when a guild has been edited.


GuildDeleteEvent dataclass

Bases: GuildEvent

Received when the bot has left a guild or the guild was deleted.