Skip to content

Using events

Note

This is a wiki stub, while this allows you to know such features exist, there is little to no content about it, however, you can:

  • Ask questions about it in the support server
  • Help create this wiki by contributing directly, or by suggesting what topics should be explained, how they should be structured, give relevant use cases/examples...

Conditional event listeners based on available intents

Use @RequiredIntents.

Tip

You can also use @RequiredIntents for classes other than events listeners, for example, you might toggle an entire feature off if the required intents are not enabled.

Listening to events

Use @BEventListener.

Listener modes

See BEventListener.mode

Lifecycle events

Here is a list of events in the order they fire:

Initialization events

JDA events