Skip to content

hikari.events.role_events#

Events pertaining to manipulation of roles within guilds.

RoleCreateEvent #

Bases: RoleEvent

Event fired when a role is created.

app property #

app: RESTAware

App instance for this application.

guild_id property #

guild_id: Snowflake

ID of the guild that this event relates to.

role class-attribute instance-attribute #

role: Role = field()

Role that was created.

role_id property #

role_id: Snowflake

ID of the role that this event relates to.

shard class-attribute instance-attribute #

shard: GatewayShard = field(metadata={SKIP_DEEP_COPY: True})

Shard that received this event.

bitmask classmethod #

bitmask() -> int

Bitmask for this event.

dispatches classmethod #

dispatches() -> Sequence[Type[Event]]

Sequence of the event classes this event is dispatched as.

RoleDeleteEvent #

Bases: RoleEvent

Event fired when a role is deleted.

app class-attribute instance-attribute #

app: RESTAware = field(metadata={SKIP_DEEP_COPY: True})

App instance for this application.

guild_id class-attribute instance-attribute #

guild_id: Snowflake = field()

ID of the guild that this event relates to.

old_role class-attribute instance-attribute #

old_role: Optional[Role] = field()

The old role object.

This will be None if the role was missing from the cache.

role_id class-attribute instance-attribute #

role_id: Snowflake = field()

ID of the role that this event relates to.

shard class-attribute instance-attribute #

shard: GatewayShard = field(metadata={SKIP_DEEP_COPY: True})

Shard that received this event.

bitmask classmethod #

bitmask() -> int

Bitmask for this event.

dispatches classmethod #

dispatches() -> Sequence[Type[Event]]

Sequence of the event classes this event is dispatched as.

RoleEvent #

Bases: ShardEvent, ABC

Event base for any event that involves guild roles.

app abstractmethod property #

app: RESTAware

App instance for this application.

guild_id abstractmethod property #

guild_id: Snowflake

ID of the guild that this event relates to.

role_id abstractmethod property #

role_id: Snowflake

ID of the role that this event relates to.

shard abstractmethod property #

shard: GatewayShard

Shard that received this event.

bitmask classmethod #

bitmask() -> int

Bitmask for this event.

dispatches classmethod #

dispatches() -> Sequence[Type[Event]]

Sequence of the event classes this event is dispatched as.

RoleUpdateEvent #

Bases: RoleEvent

Event fired when a role is updated.

app property #

app: RESTAware

App instance for this application.

guild_id property #

guild_id: Snowflake

ID of the guild that this event relates to.

old_role class-attribute instance-attribute #

old_role: Optional[Role] = field()

The old role object.

This will be None if the role missing from the cache.

role class-attribute instance-attribute #

role: Role = field()

Role that was updated.

role_id property #

role_id: Snowflake

ID of the role that this event relates to.

shard class-attribute instance-attribute #

shard: GatewayShard = field(metadata={SKIP_DEEP_COPY: True})

Shard that received this event.

bitmask classmethod #

bitmask() -> int

Bitmask for this event.

dispatches classmethod #

dispatches() -> Sequence[Type[Event]]

Sequence of the event classes this event is dispatched as.