Package discord4j.core.event
Class ReactiveEventAdapter
java.lang.Object
discord4j.core.event.ReactiveEventAdapter
An adapter class to attach reactive listeners to each event type. Create a new instance to subclass it and
override one or more event methods. See
Event
class for more details.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ReactiveEventAdapter
from
(ReactiveEventAdapter... adapters) Create a compositeReactiveEventAdapter
from multiple adapters.Publisher<?>
hookOnEvent
(Event event) Publisher<?>
Invoked when an application command relevant to the current user is created.Publisher<?>
Invoked when an application command relevant to the current user is deleted.Publisher<?>
Invoked when a user starts an application command interaction.Publisher<?>
Invoked when an application command relevant to the current user is updated.Publisher<?>
Invoked when a new entry in Audit Log is created in a guild.Publisher<?>
Invoked when a user starts an auto-complete interaction.Publisher<?>
Invoked when an automod rule action has been executed.Publisher<?>
Invoked when an automod rule has been created.Publisher<?>
Invoked when an automod rule has been deleted.Publisher<?>
Invoked when an automod rule has been updated.Publisher<?>
Invoked when a user is banned from a guild.Publisher<?>
Invoked when a user interacts with a button component.Publisher<?>
Invoked when a guild channel category is created.Publisher<?>
Invoked when a guild channel category is deleted.Publisher<?>
Invoked when a guild channel category is updated.Publisher<?>
Invoked when a user is typing a chat input command option that has auto-complete enabled.Publisher<?>
Invoked when a user issues a chat input command (formerly "slash command").Publisher<?>
Invoked when a user interacts with a component.Publisher<?>
onConnect
(ConnectEvent event) Invoked when connecting to the Gateway for the first time only.Publisher<?>
Invoked when a user starts a deferrable interaction.Publisher<?>
onDisconnect
(DisconnectEvent event) Invoked when the bot has disconnected from the Gateway.Publisher<?>
onEmojisUpdate
(EmojisUpdateEvent event) Invoked when an emoji is added, deleted or edited in a guild.Publisher<?>
onGuildCreate
(GuildCreateEvent event) Invoked when the bot receives initial information on startup, after it joins a guild, or after an outage is resolved.Publisher<?>
onGuildDelete
(GuildDeleteEvent event) Invoked when the bot leaves or is kicked from a guild, or if a guild has become unavailable due to an outage.Publisher<?>
onGuildUpdate
(GuildUpdateEvent event) Invoked when a guild is updated.Publisher<?>
Invoked when an integration has been created.Publisher<?>
Invoked when an integration has been deleted.Publisher<?>
Invoked when guild integrations are updated.Publisher<?>
Invoked when an integration has been updated.Publisher<?>
Invoked when a user starts an interaction.Publisher<?>
onInviteCreate
(InviteCreateEvent event) Invoked when an invite to a channel is created.Publisher<?>
onInviteDelete
(InviteDeleteEvent event) Invoked when an invite to a channel has expired.Publisher<?>
onMemberChunk
(MemberChunkEvent event) Invoked when members are streamed to the client from Discord.Publisher<?>
onMemberJoin
(MemberJoinEvent event) Invoked when a user joins a guild.Publisher<?>
onMemberLeave
(MemberLeaveEvent event) Invoked when a user leaves a guild, or is kicked from it.Publisher<?>
onMemberUpdate
(MemberUpdateEvent event) Invoked when a user's nickname or roles change in a guild.Publisher<?>
Invoked when multiple messages are deleted at once.Publisher<?>
Invoked when a message is sent in a message channel.Publisher<?>
Invoked when a message is deleted.Publisher<?>
Invoked when a user issues a message command (context menu action on a message).Publisher<?>
Invoked when a message is updated.Publisher<?>
Invoked when a user starts a modal supported interaction.Publisher<?>
Invoked when a guild news channel is created.Publisher<?>
Invoked when a guild news channel is deleted.Publisher<?>
Invoked when a guild news channel is updated.Publisher<?>
onPinsUpdate
(PinsUpdateEvent event) Invoked when a channel's pinned messages are updated.Publisher<?>
Invoked when a user's presence or status has changed.Publisher<?>
onReactionAdd
(ReactionAddEvent event) Invoked when a reaction is added to a message.Publisher<?>
Invoked when a reaction is removed from a message.Publisher<?>
Invoked when all of the reactions on a message are removed.Publisher<?>
Invoked when the reactions for one emoji are removed from a message.Publisher<?>
onReady
(ReadyEvent event) Invoked as Discord has established a fresh Gateway session.Publisher<?>
onReconnect
(ReconnectEvent event) Invoked when subsequent reconnections to the Gateway, either through resumption or full retry.Publisher<?>
Invoked when a resumption or reconnection attempt has failed but can be retried.Publisher<?>
Invoked when a resumption or reconnection attempt has begun.Publisher<?>
onResume
(ResumeEvent event) Invoked when the gateway connection is successfully resumed.Publisher<?>
onRoleCreate
(RoleCreateEvent event) Invoked when a role is created in a guild.Publisher<?>
onRoleDelete
(RoleDeleteEvent event) Invoked when a role is deleted from a guild.Publisher<?>
onRoleUpdate
(RoleUpdateEvent event) Invoked when one or more role's properties are updated in a guild.Publisher<?>
Invoked when a scheduled event is created.Publisher<?>
Invoked when a scheduled event is deleted.Publisher<?>
Invoked when a scheduled event is updated.Publisher<?>
Invoked when a user subscribes to a scheduled event.Publisher<?>
Invoked when a user unsubscribes from a scheduled event.Publisher<?>
Invoked when a user interacts with a select menu.Publisher<?>
Invoked when a gateway session has been invalidated.Publisher<?>
Invoked when a sticker is added, deleted or edited in a guild.Publisher<?>
Invoked when a guild store channel is created.Publisher<?>
Invoked when a guild store channel is deleted.Publisher<?>
Invoked when a guild store channel is updated.Publisher<?>
Invoked when a guild text channel is created.Publisher<?>
Invoked when a guild text channel is deleted.Publisher<?>
Invoked when a guild text channel is updated.Publisher<?>
Invoked when a thread is created, relevant to the current user, or when the current user is added to a thread.Publisher<?>
Invoked when a thread relevant to the current user is deleted.Publisher<?>
Invoked when a thread relevant to the current user is updated.Publisher<?>
Invoked when the current user gains access to a thread channel.Publisher<?>
Invoked when anyone is added to or removed from a thread.Publisher<?>
Invoked when the thread member object for the current user is updated.Publisher<?>
onTypingStart
(TypingStartEvent event) Invoked when a user has started typing a message.Publisher<?>
onUnban
(UnbanEvent event) Invoked when a user is unbanned from a guild.Publisher<?>
Invoked when a guild channel is created, but itstype
is not supported or implemented.Publisher<?>
Invoked when a guild channel is deleted, but itstype
is not supported or implemented.Publisher<?>
Invoked when a guild channel is updated, but itstype
is not supported or implemented.Publisher<?>
Invoked when a user issues a user command (context menu action on a user).Publisher<?>
onUserUpdate
(UserUpdateEvent event) Invoked when one or more user's properties were updated.Publisher<?>
Invoked when a guild voice channel is created.Publisher<?>
Invoked when a guild voice channel is deleted.Publisher<?>
Invoked when a guild voice channel is updated.Publisher<?>
Invoked when a guild's voice server is requested or is updated.Publisher<?>
Invoked when a user's connected voice channel and status, was requested or has updated.Publisher<?>
Invoked when a webhook is updated in a guild.
-
Constructor Details
-
ReactiveEventAdapter
public ReactiveEventAdapter()
-
-
Method Details
-
onReady
Invoked as Discord has established a fresh Gateway session. This event can be used to track the bot connection details and contains the initial state required to operate with the real-time Gateway. SeeReadyEvent
and Discord documentation for more details about this event.- Parameters:
event
- the event instance- Returns:
- a
Publisher
that completes when this listener has done processing the event, for example, returning anyMono
,Flux
or synchronous code usingMono.fromRunnable(Runnable)
.
-
onResume
Invoked when the gateway connection is successfully resumed.- Parameters:
event
- the event instance- Returns:
- a
Publisher
that completes when this listener has done processing the event, for example, returning anyMono
,Flux
or synchronous code usingMono.fromRunnable(Runnable)
.
-
onMessageCreate
Invoked when a message is sent in a message channel.- Parameters:
event
- the event instance- Returns:
- a
Publisher
that completes when this listener has done processing the event, for example, returning anyMono
,Flux
or synchronous code usingMono.fromRunnable(Runnable)
.
-
onMessageDelete
Invoked when a message is deleted.- Parameters:
event
- the event instance- Returns:
- a
Publisher
that completes when this listener has done processing the event, for example, returning anyMono
,Flux
or synchronous code usingMono.fromRunnable(Runnable)
.
-
onMessageUpdate
Invoked when a message is updated. This event includes both normal message editing as well as the following behavior regarding embeds: When a message with a link is sent, it does not initially contain its embed. When Discord creates the embed, this event is fired with it added to the embeds list.- Parameters:
event
- the event instance- Returns:
- a
Publisher
that completes when this listener has done processing the event, for example, returning anyMono
,Flux
or synchronous code usingMono.fromRunnable(Runnable)
.
-
onMessageBulkDelete
Invoked when multiple messages are deleted at once.- Parameters:
event
- the event instance- Returns:
- a
Publisher
that completes when this listener has done processing the event, for example, returning anyMono
,Flux
or synchronous code usingMono.fromRunnable(Runnable)
.
-
onReactionAdd
Invoked when a reaction is added to a message. Guild ID might be missing if this event fires for a DM channel.- Parameters:
event
- the event instance- Returns:
- a
Publisher
that completes when this listener has done processing the event, for example, returning anyMono
,Flux
or synchronous code usingMono.fromRunnable(Runnable)
.
-
onReactionRemove
Invoked when a reaction is removed from a message. Guild ID might be missing if this event fires for a DM channel.- Parameters:
event
- the event instance- Returns:
- a
Publisher
that completes when this listener has done processing the event, for example, returning anyMono
,Flux
or synchronous code usingMono.fromRunnable(Runnable)
.
-
onReactionRemoveEmoji
Invoked when the reactions for one emoji are removed from a message. Guild ID might be missing if this event fires for a DM channel.- Parameters:
event
- the event instance- Returns:
- a
Publisher
that completes when this listener has done processing the event, for example, returning anyMono
,Flux
or synchronous code usingMono.fromRunnable(Runnable)
.
-
onReactionRemoveAll
Invoked when all of the reactions on a message are removed. Guild ID might be missing if this event fires for a DM channel.- Parameters:
event
- the event instance- Returns:
- a
Publisher
that completes when this listener has done processing the event, for example, returning anyMono
,Flux
or synchronous code usingMono.fromRunnable(Runnable)
.
-
onApplicationCommandCreate
Invoked when an application command relevant to the current user is created. Guild ID might be missing if this event fires for a DM channel.- Parameters:
event
- the event instance- Returns:
- a
Publisher
that completes when this listener has done processing the event, for example, returning anyMono
,Flux
or synchronous code usingMono.fromRunnable(Runnable)
.
-
onApplicationCommandUpdate
Invoked when an application command relevant to the current user is updated. Guild ID might be missing if this event fires for a DM channel.- Parameters:
event
- the event instance- Returns:
- a
Publisher
that completes when this listener has done processing the event, for example, returning anyMono
,Flux
or synchronous code usingMono.fromRunnable(Runnable)
.
-
onApplicationCommandDelete
Invoked when an application command relevant to the current user is deleted. Guild ID might be missing if this event fires for a DM channel.- Parameters:
event
- the event instance- Returns:
- a
Publisher
that completes when this listener has done processing the event, for example, returning anyMono
,Flux
or synchronous code usingMono.fromRunnable(Runnable)
.
-
onGuildCreate
Invoked when the bot receives initial information on startup, after it joins a guild, or after an outage is resolved.- Parameters:
event
- the event instance- Returns:
- a
Publisher
that completes when this listener has done processing the event, for example, returning anyMono
,Flux
or synchronous code usingMono.fromRunnable(Runnable)
.
-
onGuildDelete
Invoked when the bot leaves or is kicked from a guild, or if a guild has become unavailable due to an outage.- Parameters:
event
- the event instance- Returns:
- a
Publisher
that completes when this listener has done processing the event, for example, returning anyMono
,Flux
or synchronous code usingMono.fromRunnable(Runnable)
.
-
onGuildUpdate
Invoked when a guild is updated.- Parameters:
event
- the event instance- Returns:
- a
Publisher
that completes when this listener has done processing the event, for example, returning anyMono
,Flux
or synchronous code usingMono.fromRunnable(Runnable)
.
-
onMemberJoin
Invoked when a user joins a guild.- Parameters:
event
- the event instance- Returns:
- a
Publisher
that completes when this listener has done processing the event, for example, returning anyMono
,Flux
or synchronous code usingMono.fromRunnable(Runnable)
.
-
onMemberLeave
Invoked when a user leaves a guild, or is kicked from it.- Parameters:
event
- the event instance- Returns:
- a
Publisher
that completes when this listener has done processing the event, for example, returning anyMono
,Flux
or synchronous code usingMono.fromRunnable(Runnable)
.
-
onMemberUpdate
Invoked when a user's nickname or roles change in a guild.- Parameters:
event
- the event instance- Returns:
- a
Publisher
that completes when this listener has done processing the event, for example, returning anyMono
,Flux
or synchronous code usingMono.fromRunnable(Runnable)
.
-
onMemberChunk
Invoked when members are streamed to the client from Discord.- Parameters:
event
- the event instance- Returns:
- a
Publisher
that completes when this listener has done processing the event, for example, returning anyMono
,Flux
or synchronous code usingMono.fromRunnable(Runnable)
.
-
onEmojisUpdate
Invoked when an emoji is added, deleted or edited in a guild. The emojis set includes ALL emojis of the guild.- Parameters:
event
- the event instance- Returns:
- a
Publisher
that completes when this listener has done processing the event, for example, returning anyMono
,Flux
or synchronous code usingMono.fromRunnable(Runnable)
.
-
onStickersUpdate
Invoked when a sticker is added, deleted or edited in a guild. The emojis set includes ALL stickers of the guild.- Parameters:
event
- the event instance- Returns:
- a
Publisher
that completes when this listener has done processing the event, for example, returning anyMono
,Flux
or synchronous code usingMono.fromRunnable(Runnable)
.
-
onAuditLogEntryCreate
Invoked when a new entry in Audit Log is created in a guild.- Parameters:
event
- the event instance- Returns:
- a
Publisher
that completes when this listener has done processing the event, for example, returning anyMono
,Flux
or synchronous code usingMono.fromRunnable(Runnable)
.
-
onBan
Invoked when a user is banned from a guild.- Parameters:
event
- the event instance- Returns:
- a
Publisher
that completes when this listener has done processing the event, for example, returning anyMono
,Flux
or synchronous code usingMono.fromRunnable(Runnable)
.
-
onUnban
Invoked when a user is unbanned from a guild.- Parameters:
event
- the event instance- Returns:
- a
Publisher
that completes when this listener has done processing the event, for example, returning anyMono
,Flux
or synchronous code usingMono.fromRunnable(Runnable)
.
-
onIntegrationsUpdate
Invoked when guild integrations are updated.- Parameters:
event
- the event instance- Returns:
- a
Publisher
that completes when this listener has done processing the event, for example, returning anyMono
,Flux
or synchronous code usingMono.fromRunnable(Runnable)
.
-
onWebhooksUpdate
Invoked when a webhook is updated in a guild. Discord does not send any information about what was actually updated. This is simply a notification of some update.- Parameters:
event
- the event instance- Returns:
- a
Publisher
that completes when this listener has done processing the event, for example, returning anyMono
,Flux
or synchronous code usingMono.fromRunnable(Runnable)
.
-
onTextChannelCreate
Invoked when a guild text channel is created.- Parameters:
event
- the event instance- Returns:
- a
Publisher
that completes when this listener has done processing the event, for example, returning anyMono
,Flux
or synchronous code usingMono.fromRunnable(Runnable)
.
-
onTextChannelDelete
Invoked when a guild text channel is deleted.- Parameters:
event
- the event instance- Returns:
- a
Publisher
that completes when this listener has done processing the event, for example, returning anyMono
,Flux
or synchronous code usingMono.fromRunnable(Runnable)
.
-
onTextChannelUpdate
Invoked when a guild text channel is updated.- Parameters:
event
- the event instance- Returns:
- a
Publisher
that completes when this listener has done processing the event, for example, returning anyMono
,Flux
or synchronous code usingMono.fromRunnable(Runnable)
.
-
onVoiceChannelCreate
Invoked when a guild voice channel is created.- Parameters:
event
- the event instance- Returns:
- a
Publisher
that completes when this listener has done processing the event, for example, returning anyMono
,Flux
or synchronous code usingMono.fromRunnable(Runnable)
.
-
onVoiceChannelDelete
Invoked when a guild voice channel is deleted.- Parameters:
event
- the event instance- Returns:
- a
Publisher
that completes when this listener has done processing the event, for example, returning anyMono
,Flux
or synchronous code usingMono.fromRunnable(Runnable)
.
-
onVoiceChannelUpdate
Invoked when a guild voice channel is updated.- Parameters:
event
- the event instance- Returns:
- a
Publisher
that completes when this listener has done processing the event, for example, returning anyMono
,Flux
or synchronous code usingMono.fromRunnable(Runnable)
.
-
onCategoryCreate
Invoked when a guild channel category is created.- Parameters:
event
- the event instance- Returns:
- a
Publisher
that completes when this listener has done processing the event, for example, returning anyMono
,Flux
or synchronous code usingMono.fromRunnable(Runnable)
.
-
onCategoryDelete
Invoked when a guild channel category is deleted.- Parameters:
event
- the event instance- Returns:
- a
Publisher
that completes when this listener has done processing the event, for example, returning anyMono
,Flux
or synchronous code usingMono.fromRunnable(Runnable)
.
-
onCategoryUpdate
Invoked when a guild channel category is updated.- Parameters:
event
- the event instance- Returns:
- a
Publisher
that completes when this listener has done processing the event, for example, returning anyMono
,Flux
or synchronous code usingMono.fromRunnable(Runnable)
.
-
onNewsChannelCreate
Invoked when a guild news channel is created.- Parameters:
event
- the event instance- Returns:
- a
Publisher
that completes when this listener has done processing the event, for example, returning anyMono
,Flux
or synchronous code usingMono.fromRunnable(Runnable)
.
-
onNewsChannelDelete
Invoked when a guild news channel is deleted.- Parameters:
event
- the event instance- Returns:
- a
Publisher
that completes when this listener has done processing the event, for example, returning anyMono
,Flux
or synchronous code usingMono.fromRunnable(Runnable)
.
-
onNewsChannelUpdate
Invoked when a guild news channel is updated.- Parameters:
event
- the event instance- Returns:
- a
Publisher
that completes when this listener has done processing the event, for example, returning anyMono
,Flux
or synchronous code usingMono.fromRunnable(Runnable)
.
-
onStoreChannelCreate
Invoked when a guild store channel is created.- Parameters:
event
- the event instance- Returns:
- a
Publisher
that completes when this listener has done processing the event, for example, returning anyMono
,Flux
or synchronous code usingMono.fromRunnable(Runnable)
.
-
onStoreChannelDelete
Invoked when a guild store channel is deleted.- Parameters:
event
- the event instance- Returns:
- a
Publisher
that completes when this listener has done processing the event, for example, returning anyMono
,Flux
or synchronous code usingMono.fromRunnable(Runnable)
.
-
onStoreChannelUpdate
Invoked when a guild store channel is updated.- Parameters:
event
- the event instance- Returns:
- a
Publisher
that completes when this listener has done processing the event, for example, returning anyMono
,Flux
or synchronous code usingMono.fromRunnable(Runnable)
.
-
onThreadChannelCreateEvent
Invoked when a thread is created, relevant to the current user, or when the current user is added to a thread.- Parameters:
event
- the event instance- Returns:
- a
Publisher
that completes when this listener has done processing the event, for example, returning anyMono
,Flux
or synchronous code usingMono.fromRunnable(Runnable)
.
-
onThreadChannelDeleteEvent
Invoked when a thread relevant to the current user is deleted.- Parameters:
event
- the event instance- Returns:
- a
Publisher
that completes when this listener has done processing the event, for example, returning anyMono
,Flux
or synchronous code usingMono.fromRunnable(Runnable)
.
-
onThreadChannelUpdateEvent
Invoked when a thread relevant to the current user is updated.- Parameters:
event
- the event instance- Returns:
- a
Publisher
that completes when this listener has done processing the event, for example, returning anyMono
,Flux
or synchronous code usingMono.fromRunnable(Runnable)
.
-
onThreadListSyncEvent
Invoked when the current user gains access to a thread channel.- Parameters:
event
- the event instance- Returns:
- a
Publisher
that completes when this listener has done processing the event, for example, returning anyMono
,Flux
or synchronous code usingMono.fromRunnable(Runnable)
.
-
onThreadMembersUpdateEvent
Invoked when anyone is added to or removed from a thread. If the current user does not have theIntent.GUILD_MEMBERS
Gateway Intent, then this event will only be sent if the current user was added to or removed from the thread.- Parameters:
event
- the event instance- Returns:
- a
Publisher
that completes when this listener has done processing the event, for example, returning anyMono
,Flux
or synchronous code usingMono.fromRunnable(Runnable)
.
-
onThreadMemberUpdateEvent
Invoked when the thread member object for the current user is updated. This event is documented for completeness, but unlikely to be used by most bots. For bots, this event largely is just a signal that you are a member of the thread.- Parameters:
event
- the event instance- Returns:
- a
Publisher
that completes when this listener has done processing the event, for example, returning anyMono
,Flux
or synchronous code usingMono.fromRunnable(Runnable)
.
-
onUnknownChannelCreate
Invoked when a guild channel is created, but itstype
is not supported or implemented.- Parameters:
event
- the event instance- Returns:
- a
Publisher
that completes when this listener has done processing the event, for example, returning anyMono
,Flux
or synchronous code usingMono.fromRunnable(Runnable)
.
-
onUnknownChannelDelete
Invoked when a guild channel is deleted, but itstype
is not supported or implemented.- Parameters:
event
- the event instance- Returns:
- a
Publisher
that completes when this listener has done processing the event, for example, returning anyMono
,Flux
or synchronous code usingMono.fromRunnable(Runnable)
.
-
onUnknownChannelUpdate
Invoked when a guild channel is updated, but itstype
is not supported or implemented.- Parameters:
event
- the event instance- Returns:
- a
Publisher
that completes when this listener has done processing the event, for example, returning anyMono
,Flux
or synchronous code usingMono.fromRunnable(Runnable)
.
-
onTypingStart
Invoked when a user has started typing a message.- Parameters:
event
- the event instance- Returns:
- a
Publisher
that completes when this listener has done processing the event, for example, returning anyMono
,Flux
or synchronous code usingMono.fromRunnable(Runnable)
.
-
onPinsUpdate
Invoked when a channel's pinned messages are updated.- Parameters:
event
- the event instance- Returns:
- a
Publisher
that completes when this listener has done processing the event, for example, returning anyMono
,Flux
or synchronous code usingMono.fromRunnable(Runnable)
.
-
onRoleCreate
Invoked when a role is created in a guild.- Parameters:
event
- the event instance- Returns:
- a
Publisher
that completes when this listener has done processing the event, for example, returning anyMono
,Flux
or synchronous code usingMono.fromRunnable(Runnable)
.
-
onRoleDelete
Invoked when a role is deleted from a guild.- Parameters:
event
- the event instance- Returns:
- a
Publisher
that completes when this listener has done processing the event, for example, returning anyMono
,Flux
or synchronous code usingMono.fromRunnable(Runnable)
.
-
onRoleUpdate
Invoked when one or more role's properties are updated in a guild.- Parameters:
event
- the event instance- Returns:
- a
Publisher
that completes when this listener has done processing the event, for example, returning anyMono
,Flux
or synchronous code usingMono.fromRunnable(Runnable)
.
-
onInviteCreate
Invoked when an invite to a channel is created.- Parameters:
event
- the event instance- Returns:
- a
Publisher
that completes when this listener has done processing the event, for example, returning anyMono
,Flux
or synchronous code usingMono.fromRunnable(Runnable)
.
-
onInviteDelete
Invoked when an invite to a channel has expired.- Parameters:
event
- the event instance- Returns:
- a
Publisher
that completes when this listener has done processing the event, for example, returning anyMono
,Flux
or synchronous code usingMono.fromRunnable(Runnable)
.
-
onUserUpdate
Invoked when one or more user's properties were updated.- Parameters:
event
- the event instance- Returns:
- a
Publisher
that completes when this listener has done processing the event, for example, returning anyMono
,Flux
or synchronous code usingMono.fromRunnable(Runnable)
.
-
onPresenceUpdate
Invoked when a user's presence or status has changed.- Parameters:
event
- the event instance- Returns:
- a
Publisher
that completes when this listener has done processing the event, for example, returning anyMono
,Flux
or synchronous code usingMono.fromRunnable(Runnable)
.
-
onVoiceStateUpdate
Invoked when a user's connected voice channel and status, was requested or has updated.- Parameters:
event
- the event instance- Returns:
- a
Publisher
that completes when this listener has done processing the event, for example, returning anyMono
,Flux
or synchronous code usingMono.fromRunnable(Runnable)
.
-
onVoiceServerUpdate
Invoked when a guild's voice server is requested or is updated.- Parameters:
event
- the event instance- Returns:
- a
Publisher
that completes when this listener has done processing the event, for example, returning anyMono
,Flux
or synchronous code usingMono.fromRunnable(Runnable)
.
-
onConnect
Invoked when connecting to the Gateway for the first time only.- Parameters:
event
- the event instance- Returns:
- a
Publisher
that completes when this listener has done processing the event, for example, returning anyMono
,Flux
or synchronous code usingMono.fromRunnable(Runnable)
.
-
onReconnect
Invoked when subsequent reconnections to the Gateway, either through resumption or full retry.- Parameters:
event
- the event instance- Returns:
- a
Publisher
that completes when this listener has done processing the event, for example, returning anyMono
,Flux
or synchronous code usingMono.fromRunnable(Runnable)
.
-
onDisconnect
Invoked when the bot has disconnected from the Gateway.- Parameters:
event
- the event instance- Returns:
- a
Publisher
that completes when this listener has done processing the event, for example, returning anyMono
,Flux
or synchronous code usingMono.fromRunnable(Runnable)
.
-
onReconnectStart
Invoked when a resumption or reconnection attempt has begun.- Parameters:
event
- the event instance- Returns:
- a
Publisher
that completes when this listener has done processing the event, for example, returning anyMono
,Flux
or synchronous code usingMono.fromRunnable(Runnable)
.
-
onReconnectFail
Invoked when a resumption or reconnection attempt has failed but can be retried.- Parameters:
event
- the event instance- Returns:
- a
Publisher
that completes when this listener has done processing the event, for example, returning anyMono
,Flux
or synchronous code usingMono.fromRunnable(Runnable)
.
-
onSessionInvalidated
Invoked when a gateway session has been invalidated.- Parameters:
event
- the event instance- Returns:
- a
Publisher
that completes when this listener has done processing the event, for example, returning anyMono
,Flux
or synchronous code usingMono.fromRunnable(Runnable)
.
-
onInteractionCreate
Invoked when a user starts an interaction.- Parameters:
event
- the event instance- Returns:
- a
Publisher
that completes when this listener has done processing the event, for example, returning anyMono
,Flux
or synchronous code usingMono.fromRunnable(Runnable)
.
-
onDeferrableInteraction
Invoked when a user starts a deferrable interaction.- Parameters:
event
- the event instance- Returns:
- a
Publisher
that completes when this listener has done processing the event, for example, returning anyMono
,Flux
or synchronous code usingMono.fromRunnable(Runnable)
.
-
onApplicationCommandInteraction
Invoked when a user starts an application command interaction.- Parameters:
event
- the event instance- Returns:
- a
Publisher
that completes when this listener has done processing the event, for example, returning anyMono
,Flux
or synchronous code usingMono.fromRunnable(Runnable)
.
-
onChatInputInteraction
Invoked when a user issues a chat input command (formerly "slash command").- Parameters:
event
- the event instance- Returns:
- a
Publisher
that completes when this listener has done processing the event, for example, returning anyMono
,Flux
or synchronous code usingMono.fromRunnable(Runnable)
.
-
onMessageInteraction
Invoked when a user issues a message command (context menu action on a message).- Parameters:
event
- the event instance- Returns:
- a
Publisher
that completes when this listener has done processing the event, for example, returning anyMono
,Flux
or synchronous code usingMono.fromRunnable(Runnable)
.
-
onUserInteraction
Invoked when a user issues a user command (context menu action on a user).- Parameters:
event
- the event instance- Returns:
- a
Publisher
that completes when this listener has done processing the event, for example, returning anyMono
,Flux
or synchronous code usingMono.fromRunnable(Runnable)
.
-
onComponentInteraction
Invoked when a user interacts with a component.- Parameters:
event
- the event instance- Returns:
- a
Publisher
that completes when this listener has done processing the event, for example, returning anyMono
,Flux
or synchronous code usingMono.fromRunnable(Runnable)
.
-
onButtonInteraction
Invoked when a user interacts with a button component.- Parameters:
event
- the event instance- Returns:
- a
Publisher
that completes when this listener has done processing the event, for example, returning anyMono
,Flux
or synchronous code usingMono.fromRunnable(Runnable)
.
-
onSelectMenuInteraction
Invoked when a user interacts with a select menu.- Parameters:
event
- the event instance- Returns:
- a
Publisher
that completes when this listener has done processing the event, for example, returning anyMono
,Flux
or synchronous code usingMono.fromRunnable(Runnable)
.
-
onAutoCompleteInteraction
Invoked when a user starts an auto-complete interaction.- Parameters:
event
- the event instance- Returns:
- a
Publisher
that completes when this listener has done processing the event, for example, returning anyMono
,Flux
or synchronous code usingMono.fromRunnable(Runnable)
.
-
onChatInputAutoCompleteInteraction
Invoked when a user is typing a chat input command option that has auto-complete enabled.- Parameters:
event
- the event instance- Returns:
- a
Publisher
that completes when this listener has done processing the event, for example, returning anyMono
,Flux
or synchronous code usingMono.fromRunnable(Runnable)
.
-
onModalSubmitInteraction
Invoked when a user starts a modal supported interaction.- Parameters:
event
- the event instance- Returns:
- a
Publisher
that completes when this listener has done processing the event, for example, returning anyMono
,Flux
or synchronous code usingMono.fromRunnable(Runnable)
.
-
onIntegrationCreate
Invoked when an integration has been created.- Parameters:
event
- the event instance- Returns:
- a
Publisher
that completes when this listener has done processing the event, for example, returning anyMono
,Flux
or synchronous code usingMono.fromRunnable(Runnable)
.
-
onIntegrationUpdate
Invoked when an integration has been updated.- Parameters:
event
- the event instance- Returns:
- a
Publisher
that completes when this listener has done processing the event, for example, returning anyMono
,Flux
or synchronous code usingMono.fromRunnable(Runnable)
.
-
onIntegrationDelete
Invoked when an integration has been deleted.- Parameters:
event
- the event instance- Returns:
- a
Publisher
that completes when this listener has done processing the event, for example, returning anyMono
,Flux
or synchronous code usingMono.fromRunnable(Runnable)
.
-
onAutoModRuleCreate
Invoked when an automod rule has been created.- Parameters:
event
- the event instance- Returns:
- a
Publisher
that completes when this listener has done processing the event, for example, returning anyMono
,Flux
or synchronous code usingMono.fromRunnable(Runnable)
.
-
onAutoModRuleUpdate
Invoked when an automod rule has been updated.- Parameters:
event
- the event instance- Returns:
- a
Publisher
that completes when this listener has done processing the event, for example, returning anyMono
,Flux
or synchronous code usingMono.fromRunnable(Runnable)
.
-
onAutoModRuleDelete
Invoked when an automod rule has been deleted.- Parameters:
event
- the event instance- Returns:
- a
Publisher
that completes when this listener has done processing the event, for example, returning anyMono
,Flux
or synchronous code usingMono.fromRunnable(Runnable)
.
-
onAutoModActionExecution
Invoked when an automod rule action has been executed.- Parameters:
event
- the event instance- Returns:
- a
Publisher
that completes when this listener has done processing the event, for example, returning anyMono
,Flux
or synchronous code usingMono.fromRunnable(Runnable)
.
-
onScheduledEventCreate
Invoked when a scheduled event is created.- Parameters:
event
- the event instance- Returns:
- a
Publisher
that completes when this listener has done processing the event, for example, returning anyMono
,Flux
or synchronous code usingMono.fromRunnable(Runnable)
.
-
onScheduledEventUpdate
Invoked when a scheduled event is updated.- Parameters:
event
- the event instance- Returns:
- a
Publisher
that completes when this listener has done processing the event, for example, returning anyMono
,Flux
or synchronous code usingMono.fromRunnable(Runnable)
.
-
onScheduledEventDelete
Invoked when a scheduled event is deleted.- Parameters:
event
- the event instance- Returns:
- a
Publisher
that completes when this listener has done processing the event, for example, returning anyMono
,Flux
or synchronous code usingMono.fromRunnable(Runnable)
.
-
onScheduledEventUserAdd
Invoked when a user subscribes to a scheduled event.- Parameters:
event
- the event instance- Returns:
- a
Publisher
that completes when this listener has done processing the event, for example, returning anyMono
,Flux
or synchronous code usingMono.fromRunnable(Runnable)
.
-
onScheduledEventUserRemove
Invoked when a user unsubscribes from a scheduled event.- Parameters:
event
- the event instance- Returns:
- a
Publisher
that completes when this listener has done processing the event, for example, returning anyMono
,Flux
or synchronous code usingMono.fromRunnable(Runnable)
.
-
from
Create a compositeReactiveEventAdapter
from multiple adapters.- Parameters:
adapters
- an array of adapters to combine- Returns:
- a composite adapter
-
hookOnEvent
-