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 voidAn event that gets fired when an exception gets raised while handling an autocomplete interaction.default voidAn 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 voidAn event that gets fired when an exception gets raised while executing any command.default voidAn event that gets fired when an exception gets raised while interacting with a message component.default voidAn event that gets fired when the user, which invoked the command, does NOT have one of the required permissions.default voidonInvalidGuild(InvalidGuildEvent event) An event that gets fired when the command is NOT executed in one of the required guild.default voidonInvalidRole(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 voidonInvalidUser(InvalidUserEvent event) An event that gets fired when the user, which invoked the command, is NOT allowed to use this command.default voidAn 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- TheCommandExceptionEventthat was fired.- See Also:
-
onComponentException
An event that gets fired when an exception gets raised while interacting with a message component.- Parameters:
event- TheComponentExceptionEventthat was fired.
-
onAutoCompleteException
An event that gets fired when an exception gets raised while handling an autocomplete interaction.- Parameters:
event- TheAutoCompleteExceptionEventthat was fired.- See Also:
-
onModalException
An event that gets fired when an exception gets raised while handling a modal interaction.- Parameters:
event- TheModalExceptionEventthat 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- TheInsufficientPermissionsEventthat 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- TheInvalidUserEventthat 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- TheInvalidRoleEventthat 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 providedInvalidGuildEventinstance.- 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- TheCommandCooldownEventthat was fired.- See Also:
-