Package xyz.dynxsty.dih4jda.events
Interface DIH4JDAEventListener
public interface DIH4JDAEventListener
An interface containing all events and their method that DIH4JDA can fire.
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
An event that gets fired when an exception gets raised while handling an autocomplete interaction.default void
An event that gets fired when the user, which invoked the command, is not yet able to use this command due to a specifiedCommand Cooldown
Command Cooldowns DO NOT persist between sessions!default void
An event that gets fired when an exception gets raised while executing any command.default void
An event that gets fired when an exception gets raised while interacting with a message component.default void
An event that gets fired when the user, which invoked the command, does NOT have one of the required permissions.default void
onInvalidGuild
(InvalidGuildEvent event) An event that gets fired when the command is NOT executed in one of the required guild.default void
onInvalidRole
(InvalidRoleEvent event) An event that gets fired when the user, which invoked the command, does NOT have the required roles to use this command.default void
onInvalidUser
(InvalidUserEvent event) An event that gets fired when the user, which invoked the command, is NOT allowed to use this command.default void
An event that gets fired when an exception gets raised while handling a modal interaction.
-
Method Details
-
onCommandException
An event that gets fired when an exception gets raised while executing any command.- Parameters:
event
- TheCommandExceptionEvent
that was fired.- See Also:
-
onComponentException
An event that gets fired when an exception gets raised while interacting with a message component.- Parameters:
event
- TheComponentExceptionEvent
that was fired.
-
onAutoCompleteException
An event that gets fired when an exception gets raised while handling an autocomplete interaction.- Parameters:
event
- TheAutoCompleteExceptionEvent
that was fired.- See Also:
-
onModalException
An event that gets fired when an exception gets raised while handling a modal interaction.- Parameters:
event
- TheModalExceptionEvent
that was fired.
-
onInsufficientPermissions
An event that gets fired when the user, which invoked the command, does NOT have one of the required permissions.- Parameters:
event
- TheInsufficientPermissionsEvent
that was fired.- See Also:
-
onInvalidUser
An event that gets fired when the user, which invoked the command, is NOT allowed to use this command.- Parameters:
event
- TheInvalidUserEvent
that was fired.- See Also:
-
onInvalidRole
An event that gets fired when the user, which invoked the command, does NOT have the required roles to use this command.- Parameters:
event
- TheInvalidRoleEvent
that was fired.- See Also:
-
onInvalidGuild
An event that gets fired when the command is NOT executed in one of the required guild.- Parameters:
event
- the providedInvalidGuildEvent
instance.- See Also:
-
onCommandCooldown
An event that gets fired when the user, which invoked the command, is not yet able to use this command due to a specifiedCommand Cooldown
Command Cooldowns DO NOT persist between sessions!- Parameters:
event
- TheCommandCooldownEvent
that was fired.- See Also:
-