Skip to main content
The library provides two ways to subscribe to Gateway events:
  • on_typed - receives a DispatchEvent, a typed enum. Recommended.
  • on - receives a serde_json::Value by string event name.

DispatchEvent

enum from fluxer_core::client::typed_events. All variants are marked #[non_exhaustive] - always include _ => {} in your match.

Ready

Messages

Reactions

Guilds

Members

Bans

Roles

Channels

Invites

Other


MessageReaction

Structure used in MessageReactionAdd and MessageReactionRemove.

Events

String name constants for use with client.on(...).

Examples