~.event
PersistObjectEvent
dataclass
PersistObjectEvent(*, successful: bool)
Bases: PersistEvent
Base event for all persistent cache-related events that can pass/fail a rule.
successful
instance-attribute
successful: bool
If the object's operation was successful.
True is passed custom rules/filters, otherwise False.
Will always be True for ~RemoveEvent.
BulkChannelEvent
dataclass
BulkChannelEvent(
*,
failed: set[hikari.GuildChannel],
guild: hikari.Guild,
passed: set[hikari.GuildChannel]
)
Bases: PersistEvent
Dispatched when an array of channels are attempted to be manipulated in the cache. Inserts, removals, and updates may occur on any one channel in this event depending on it's status in the cache and on Discord's end.
failed
instance-attribute
failed: set[hikari.GuildChannel]
All channels that failed to pass channel rules/filters.
passed
instance-attribute
passed: set[hikari.GuildChannel]
All channels that succeeded in passing channel rules/filters.
BulkMemberEvent
dataclass
BulkMemberEvent(
*,
failed: set[hikari.Member],
guild_id: hikari.Snowflake,
passed: set[hikari.Member]
)
Bases: PersistEvent
Dispatched when an array of members are attempted to be manipulated in the cache. Inserts, removals, and updates may occur on any one member in this event depending on it's status in the cache and on Discord's end.
failed
instance-attribute
All members that failed to pass member rules/filters.
guild_id
instance-attribute
The ID of the guild that the members belong to.
BulkRoleEvent
dataclass
Bases: PersistEvent
Dispatched when an array of roles are attempted to be manipulated in the cache. Inserts, removals, and updates may occur on any one role in this event depending on it's status in the cache and on Discord's end.
ChannelInsertEvent
dataclass
ChannelInsertEvent(
*, successful: bool, channel: hikari.GuildChannel
)
Bases: PersistObjectEvent
Dispatched when a channel is attempted to be inserted into the cache.
channel
instance-attribute
channel: hikari.GuildChannel
The channel that was attempted to be inserted into the cache.
successful
instance-attribute
successful: bool
If the object's operation was successful.
True is passed custom rules/filters, otherwise False.
Will always be True for ~RemoveEvent.
ChannelRemoveEvent
dataclass
ChannelRemoveEvent(
*,
successful: bool = True,
channel_id: hikari.Snowflake,
guild_id: hikari.Snowflake
)
Bases: PersistObjectEvent
Dispatched when a channel is attempted to be removed from the cache.
channel_id
instance-attribute
The ID of the channel that was attempted to be removed from the cache.
successful
class-attribute
instance-attribute
successful: bool = True
If the object's operation was successful.
True is passed custom rules/filters, otherwise False.
Will always be True for ~RemoveEvent.
ChannelUpdateEvent
dataclass
ChannelUpdateEvent(
*, successful: bool, channel: hikari.GuildChannel
)
Bases: PersistObjectEvent
Dispatched when a channel is attempted to be updated in the cache.
channel
instance-attribute
channel: hikari.GuildChannel
The channel that was attempted to be updated in the cache.
successful
instance-attribute
successful: bool
If the object's operation was successful.
True is passed custom rules/filters, otherwise False.
Will always be True for ~RemoveEvent.
GuildInsertEvent
dataclass
Bases: PersistObjectEvent
Dispatched when a guild is attempted to be inserted into the cache.
GuildRemoveEvent
dataclass
Bases: PersistObjectEvent
Dispatched when a guild is attempted to be removed from the cache.
guild_id
instance-attribute
The ID of the guild that was attempted to be removed from the cache.
successful
class-attribute
instance-attribute
successful: bool = True
If the object's operation was successful.
True is passed custom rules/filters, otherwise False.
Will always be True for ~RemoveEvent.
GuildUpdateEvent
dataclass
Bases: PersistObjectEvent
Dispatched when a guild is attempted to be updated in the cache.
Also fired for the guild in the GUILD_AVAILABLE event.
MemberInsertEvent
dataclass
Bases: PersistObjectEvent
Dispatched when a member is attempted to be inserted into the cache.
MemberRemoveEvent
dataclass
Bases: PersistObjectEvent
Dispatched when a member is attempted to be removed from the cache.
user
instance-attribute
The user of the member that was attempted to be removed from the cache.
successful
class-attribute
instance-attribute
successful: bool = True
If the object's operation was successful.
True is passed custom rules/filters, otherwise False.
Will always be True for ~RemoveEvent.
MemberUpdateEvent
dataclass
Bases: PersistObjectEvent
Dispatched when a member is attempted to be updated in the cache.
RoleInsertEvent
dataclass
Bases: PersistObjectEvent
Dispatched when a role is attempted to be inserted into the cache.
RoleRemoveEvent
dataclass
RoleRemoveEvent(
*,
successful: bool = True,
guild_id: hikari.Snowflake,
role_id: hikari.Snowflake
)
Bases: PersistObjectEvent
Dispatched when a role is attempted to be removed from the cache.
role_id
instance-attribute
The ID of the role that was attempted to be removed from the cache.
successful
class-attribute
instance-attribute
successful: bool = True
If the object's operation was successful.
True is passed custom rules/filters, otherwise False.
Will always be True for ~RemoveEvent.
RoleUpdateEvent
dataclass
Bases: PersistObjectEvent
Dispatched when a role is attempted to be updated in the cache.