hikari.events.role_events#
Events pertaining to manipulation of roles within guilds.
Module Contents#
- class hikari.events.role_events.RoleEvent[source]#
Bases:
hikari.events.shard_events.ShardEvent
,abc.ABC
Event base for any event that involves guild roles.
- abstract property guild_id: hikari.snowflakes.Snowflake[source]#
ID of the guild that this event relates to.
- abstract property role_id: hikari.snowflakes.Snowflake[source]#
ID of the role that this event relates to.
- class hikari.events.role_events.RoleCreateEvent[source]#
Bases:
RoleEvent
Event fired when a role is created.
- property guild_id: hikari.snowflakes.Snowflake[source]#
ID of the guild that this event relates to.
- property role_id: hikari.snowflakes.Snowflake[source]#
ID of the role that this event relates to.
- role: hikari.guilds.Role[source]#
Role that was created.
- class hikari.events.role_events.RoleUpdateEvent[source]#
Bases:
RoleEvent
Event fired when a role is updated.
- property guild_id: hikari.snowflakes.Snowflake[source]#
ID of the guild that this event relates to.
- property role_id: hikari.snowflakes.Snowflake[source]#
ID of the role that this event relates to.
- old_role: Optional[hikari.guilds.Role][source]#
The old role object.
This will be
None
if the role missing from the cache.
- role: hikari.guilds.Role[source]#
Role that was updated.