Skip to content

hikari.events.monetization_events#

Events fired for monetization related changes.

EntitlementCreateEvent #

Bases: EntitlementEvent

Event fired when an entitlement is created.

app class-attribute instance-attribute #

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

App instance for this application.

entitlement class-attribute instance-attribute #

entitlement: Entitlement = field()

The entitlement that changed.

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.

EntitlementDeleteEvent #

Bases: EntitlementEvent

Event fired when an entitlement is deleted.

Entitlements are not deleted when they expire, so this event is only fired when a refund is issued by Discord or Discord removes the entitlement from a user via internal tooling.

app class-attribute instance-attribute #

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

App instance for this application.

entitlement class-attribute instance-attribute #

entitlement: Entitlement = field()

The entitlement that changed.

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.

EntitlementEvent #

Bases: ShardEvent

Base class related to entitlement change events.

app class-attribute instance-attribute #

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

App instance for this application.

entitlement class-attribute instance-attribute #

entitlement: Entitlement = field()

The entitlement that changed.

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.

EntitlementUpdateEvent #

Bases: EntitlementEvent

Event fired when an entitlement is updated.

app class-attribute instance-attribute #

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

App instance for this application.

entitlement class-attribute instance-attribute #

entitlement: Entitlement = field()

The entitlement that changed.

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.