hikari.events.role_events#
Events pertaining to manipulation of roles within guilds.
RoleCreateEvent #
Bases: RoleEvent
Event fired when a role is created.
shard class-attribute instance-attribute #
shard: GatewayShard = attrs.field(
metadata={attrs_extensions.SKIP_DEEP_COPY: True}
)
Shard that received this event.
RoleDeleteEvent #
Bases: RoleEvent
Event fired when a role is deleted.
app class-attribute instance-attribute #
App instance for this application.
guild_id class-attribute instance-attribute #
ID of the guild that this event relates to.
old_role class-attribute instance-attribute #
The old role object.
This will be None if the role was missing from the cache.
role_id class-attribute instance-attribute #
ID of the role that this event relates to.
shard class-attribute instance-attribute #
shard: GatewayShard = attrs.field(
metadata={attrs_extensions.SKIP_DEEP_COPY: True}
)
Shard that received this event.
RoleEvent #
RoleUpdateEvent #
Bases: RoleEvent
Event fired when a role is updated.