bostie.events¶
Die Event-Liste gruppiert diese Klassen nach Thema, zusammen mit ihren Intents.
bostie.events
¶
Event
¶
Bases: Struct
Base of the typed gateway events.
INTENTS are the intents Discord needs to send the event; the bot warns when a
privileged one is missing.
Ready
¶
Bases: Event
A shard started a session; its guilds then arrive as GuildCreate events.
Resumed
¶
GuildCreate
¶
Bases: Event
A guild the bot joined, or one available again; its children lack guild_id.
stage_instances
class-attribute
instance-attribute
¶
stage_instances: tuple[StageInstance, ...] = ()
guild_scheduled_events
class-attribute
instance-attribute
¶
guild_scheduled_events: tuple[ScheduledEvent, ...] = ()
soundboard_sounds
class-attribute
instance-attribute
¶
soundboard_sounds: tuple[SoundboardSound, ...] = ()
shard_id
class-attribute
instance-attribute
¶
shard_id: int = msgspec.field(default=0, name='__bostie_shard__')
GuildUpdate
¶
GuildDelete
¶
Bases: Event
The bot left a guild, or it went unavailable; guild is the cached one.
ChannelCreate
¶
ChannelUpdate
¶
Bases: _ChannelEvent
A channel changed; old is the cached channel before the change.
ChannelDelete
¶
ChannelPinsUpdate
¶
Bases: Event
A message was pinned or unpinned; not sent when a pinned message is deleted.
ThreadCreate
¶
Bases: _ChannelEvent
A thread was created or the bot was added to one, then member is the bot's.
ThreadUpdate
¶
Bases: _ChannelEvent
A thread changed; old is the cached thread before the change.
ThreadDelete
¶
ThreadListSync
¶
Bases: Event
The active threads of some channels, or of the guild if channel_ids is None.
RoleCreate
¶
RoleUpdate
¶
Bases: _RoleEvent
A role changed; old is the cached role before the change.
RoleDelete
¶
MessageCreate
¶
Bases: _MessageEvent
INTENTS
class-attribute
instance-attribute
¶
INTENTS = Intents.GUILD_MESSAGES | Intents.DIRECT_MESSAGES
shard_id
class-attribute
instance-attribute
¶
shard_id: int = msgspec.field(default=0, name='__bostie_shard__')
MessageUpdate
¶
Bases: _MessageEvent
A message was edited; old is the copy Bot(max_messages=...) cached, if any.
INTENTS
class-attribute
instance-attribute
¶
INTENTS = Intents.GUILD_MESSAGES | Intents.DIRECT_MESSAGES
shard_id
class-attribute
instance-attribute
¶
shard_id: int = msgspec.field(default=0, name='__bostie_shard__')
MessageDelete
¶
Bases: Event, Snowflake
A message was deleted; message is the cached one if any.
INTENTS
class-attribute
instance-attribute
¶
INTENTS = Intents.GUILD_MESSAGES | Intents.DIRECT_MESSAGES
shard_id
class-attribute
instance-attribute
¶
shard_id: int = msgspec.field(default=0, name='__bostie_shard__')
MessageDeleteBulk
¶
Bases: Event
Messages were deleted; messages are those the message cache held.
ReactionAdd
¶
ReactionRemove
¶
ReactionRemoveAll
¶
ReactionRemoveEmoji
¶
PollVoteAdd
¶
Bases: _PollVoteEvent
INTENTS
class-attribute
instance-attribute
¶
INTENTS = Intents.GUILD_MESSAGE_POLLS | Intents.DIRECT_MESSAGE_POLLS
shard_id
class-attribute
instance-attribute
¶
shard_id: int = msgspec.field(default=0, name='__bostie_shard__')
PollVoteRemove
¶
Bases: _PollVoteEvent
INTENTS
class-attribute
instance-attribute
¶
INTENTS = Intents.GUILD_MESSAGE_POLLS | Intents.DIRECT_MESSAGE_POLLS
shard_id
class-attribute
instance-attribute
¶
shard_id: int = msgspec.field(default=0, name='__bostie_shard__')
TypingStart
¶
Bases: Event
A user started typing; member and guild_id are None in DMs.
INTENTS
class-attribute
instance-attribute
¶
INTENTS = Intents.GUILD_MESSAGE_TYPING | Intents.DIRECT_MESSAGE_TYPING
shard_id
class-attribute
instance-attribute
¶
shard_id: int = msgspec.field(default=0, name='__bostie_shard__')
MemberJoin
¶
MemberUpdate
¶
Bases: Event
A member changed; old is the cached member before the change.
Without GUILD_MEMBERS only the bot's own updates arrive.
communication_disabled_until
class-attribute
instance-attribute
¶
communication_disabled_until: datetime | None = None
unusual_dm_activity_until
class-attribute
instance-attribute
¶
unusual_dm_activity_until: datetime | None = None
avatar_decoration_data
class-attribute
instance-attribute
¶
avatar_decoration_data: AvatarDecorationData | None = None
shard_id
class-attribute
instance-attribute
¶
shard_id: int = msgspec.field(default=0, name='__bostie_shard__')
MemberRemove
¶
InteractionCreate
¶
VoiceStateUpdate
¶
Bases: Event
A user joined, left or changed voice; old is their cached voice state.
VoiceChannelEffectSend
¶
Bases: Event
Someone sent an emoji reaction or a soundboard sound in the bot's channel.
VoiceChannelStatusUpdate
¶
VoiceChannelStartTimeUpdate
¶
ChannelInfo
¶
Bases: Event
The voice data of a guild's channels, sent for a Request Channel Info.
VoiceServerUpdate
¶
AutoModerationRuleCreate
¶
AutoModerationRuleUpdate
¶
AutoModerationRuleDelete
¶
AutoModerationActionExecution
¶
Bases: Event
A rule acted on a user's content; content needs the MESSAGE_CONTENT intent.
alert_system_message_id
class-attribute
instance-attribute
¶
alert_system_message_id: int | None = None
shard_id
class-attribute
instance-attribute
¶
shard_id: int = msgspec.field(default=0, name='__bostie_shard__')
AuditLogEntryCreate
¶
BanAdd
¶
BanRemove
¶
EmojisUpdate
¶
StickersUpdate
¶
Bases: Event
A guild's stickers changed; old are those of the cached guild.
SoundboardSoundCreate
¶
SoundboardSoundUpdate
¶
Bases: _SoundboardSoundEvent
A soundboard sound changed; old is the cached sound before the change.
SoundboardSoundDelete
¶
SoundboardSoundsUpdate
¶
Bases: Event
Several soundboard sounds changed; old holds the cached ones among them.
SoundboardSounds
¶
Bases: Event
A guild's soundboard sounds, sent for a Request Soundboard Sounds.
ScheduledEventCreate
¶
ScheduledEventUpdate
¶
Bases: _ScheduledEventEvent
A scheduled event changed; old is the cached event before the change.
ScheduledEventDelete
¶
ScheduledEventUserAdd
¶
ScheduledEventUserRemove
¶
EntitlementCreate
¶
EntitlementUpdate
¶
Bases: _EntitlementEvent
An entitlement changed; subscriptions send it only when they end.
EntitlementDelete
¶
ApplicationAuthorized
¶
Bases: Event
A user added the app to a guild or to their account; only a webhook event.
integration_type
class-attribute
instance-attribute
¶
integration_type: ApplicationIntegrationType | None = None
shard_id
class-attribute
instance-attribute
¶
shard_id: int = msgspec.field(default=0, name='__bostie_shard__')
ApplicationDeauthorized
¶
Bases: Event
A user removed the app, or its OAuth2 tokens ended; only a webhook event.
QuestUserEnrollment
¶
Bases: Event
A user was added to a Quest; Discord does not send it to apps yet.
LobbyMessageCreate
¶
Bases: _LobbyMessageEvent
A message arrived in a lobby; only a webhook event.
LobbyMessageUpdate
¶
Bases: _LobbyMessageEvent
A lobby message was edited; only a webhook event.
LobbyMessageDelete
¶
Bases: Event, Snowflake
A lobby message was deleted; only a webhook event.
GameDirectMessageCreate
¶
Bases: _GameDirectMessageEvent
A direct message was sent in a Social SDK session; only a webhook event.
GameDirectMessageUpdate
¶
Bases: _GameDirectMessageEvent
A direct message was edited in a Social SDK session; only a webhook event.
GameDirectMessageDelete
¶
Bases: _GameDirectMessageEvent
A direct message was deleted in a Social SDK session; only a webhook event.
SubscriptionCreate
¶
SubscriptionUpdate
¶
SubscriptionDelete
¶
ThreadMemberUpdate
¶
ThreadMembersUpdate
¶
Bases: Event, Snowflake
Members joined or left a thread; members besides the bot need GUILD_MEMBERS.
added_members
class-attribute
instance-attribute
¶
added_members: tuple[AddedThreadMember, ...] = ()
shard_id
class-attribute
instance-attribute
¶
shard_id: int = msgspec.field(default=0, name='__bostie_shard__')
MembersChunk
¶
PresenceUpdate
¶
Bases: Event
A member's status, activities or user changed; old is the cached presence.
UserUpdate
¶
Bases: Event
The bot's user changed; old is the cached user before the change.
CommandPermissionsUpdate
¶
GuildIntegrationsUpdate
¶
IntegrationCreate
¶
IntegrationUpdate
¶
IntegrationDelete
¶
InviteCreate
¶
Bases: Event
target_application
class-attribute
instance-attribute
¶
target_application: PartialApplication | None = None
shard_id
class-attribute
instance-attribute
¶
shard_id: int = msgspec.field(default=0, name='__bostie_shard__')
InviteDelete
¶
StageInstanceCreate
¶
StageInstanceUpdate
¶
Bases: _StageInstanceEvent
A stage instance changed; old is the cached instance before the change.
StageInstanceDelete
¶
WebhooksUpdate
¶
GatewayRateLimited
¶
Bases: Event
A gateway command was rate limited; only Request Guild Members has meta.
RawEvent
¶
BotEvent
¶
Bases: Struct
Base of the events that come from the bot, not Discord: bostie's and yours.
Subclass it for an event of your own and send it with bot.dispatch(); a
subclass without a NAME is named <module>.<qualname>.
Starting
¶
Started
¶
Stopping
¶
Stopped
¶
ShardReady
¶
ShardBackpressure
¶
Bases: BotEvent
A shard paused reading: queued_bytes of events wait for the event loop.
ListenerError
¶
Bases: BotEvent
A listener raised; without a ListenerError listener the error is logged.