Package tech.xigam.cch
Class ComplexCommandHandler
java.lang.Object
net.dv8tion.jda.api.hooks.ListenerAdapter
tech.xigam.cch.ComplexCommandHandler
- All Implemented Interfaces:
net.dv8tion.jda.api.hooks.EventListener
public final class ComplexCommandHandler
extends net.dv8tion.jda.api.hooks.ListenerAdapter
The main command handler.
Should be initialized on build.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckMessageInteraction(net.dv8tion.jda.api.entities.Message message) voiddeploy(net.dv8tion.jda.api.entities.Guild guild) Deprecated.voiddeployAll(net.dv8tion.jda.api.entities.Guild guild) voiddestroyInteraction(InteractiveArguments session) voiddownsert(net.dv8tion.jda.api.entities.Guild guild) Delete and create commands.voidonButtonInteraction(@NotNull net.dv8tion.jda.api.events.interaction.component.ButtonInteractionEvent event) voidonCommandAutoCompleteInteraction(@NotNull net.dv8tion.jda.api.events.interaction.command.CommandAutoCompleteInteractionEvent event) voidonMessageReceived(@NotNull net.dv8tion.jda.api.events.message.MessageReceivedEvent event) voidonMessageUpdate(@NotNull net.dv8tion.jda.api.events.message.MessageUpdateEvent event) voidonSelectMenuInteraction(@NotNull net.dv8tion.jda.api.events.interaction.component.SelectMenuInteractionEvent event) voidonSlashCommandInteraction(@NotNull net.dv8tion.jda.api.events.interaction.command.SlashCommandInteractionEvent event) registerCommand(BaseCommand command) voidsetJda(net.dv8tion.jda.api.JDA jda) Methods inherited from class net.dv8tion.jda.api.hooks.ListenerAdapter
onApplicationCommandUpdatePrivileges, onApplicationUpdatePrivileges, onChannelCreate, onChannelDelete, onChannelUpdateArchived, onChannelUpdateArchiveTimestamp, onChannelUpdateAutoArchiveDuration, onChannelUpdateBitrate, onChannelUpdateInvitable, onChannelUpdateLocked, onChannelUpdateName, onChannelUpdateNSFW, onChannelUpdateParent, onChannelUpdatePosition, onChannelUpdateRegion, onChannelUpdateSlowmode, onChannelUpdateTopic, onChannelUpdateType, onChannelUpdateUserLimit, onDisconnect, onEmojiAdded, onEmojiRemoved, onEmojiUpdateName, onEmojiUpdateRoles, onEvent, onException, onGatewayPing, onGenericAutoCompleteInteraction, onGenericChannel, onGenericChannelUpdate, onGenericCommandInteraction, onGenericComponentInteractionCreate, onGenericContextInteraction, onGenericEmoji, onGenericEmojiUpdate, onGenericEvent, onGenericGuild, onGenericGuildInvite, onGenericGuildMember, onGenericGuildMemberUpdate, onGenericGuildSticker, onGenericGuildStickerUpdate, onGenericGuildUpdate, onGenericGuildVoice, onGenericInteractionCreate, onGenericMessage, onGenericMessageReaction, onGenericPermissionOverride, onGenericPrivilegeUpdate, onGenericRole, onGenericRoleUpdate, onGenericSelfUpdate, onGenericStageInstance, onGenericStageInstanceUpdate, onGenericThread, onGenericThreadMember, onGenericUpdate, onGenericUser, onGenericUserPresence, onGuildAvailable, onGuildBan, onGuildInviteCreate, onGuildInviteDelete, onGuildJoin, onGuildLeave, onGuildMemberJoin, onGuildMemberRemove, onGuildMemberRoleAdd, onGuildMemberRoleRemove, onGuildMemberUpdate, onGuildMemberUpdateAvatar, onGuildMemberUpdateBoostTime, onGuildMemberUpdateNickname, onGuildMemberUpdatePending, onGuildMemberUpdateTimeOut, onGuildReady, onGuildStickerAdded, onGuildStickerRemoved, onGuildStickerUpdateAvailable, onGuildStickerUpdateDescription, onGuildStickerUpdateName, onGuildStickerUpdateTags, onGuildTimeout, onGuildUnavailable, onGuildUnban, onGuildUpdateAfkChannel, onGuildUpdateAfkTimeout, onGuildUpdateBanner, onGuildUpdateBoostCount, onGuildUpdateBoostTier, onGuildUpdateCommunityUpdatesChannel, onGuildUpdateDescription, onGuildUpdateExplicitContentLevel, onGuildUpdateFeatures, onGuildUpdateIcon, onGuildUpdateLocale, onGuildUpdateMaxMembers, onGuildUpdateMaxPresences, onGuildUpdateMFALevel, onGuildUpdateName, onGuildUpdateNotificationLevel, onGuildUpdateNSFWLevel, onGuildUpdateOwner, onGuildUpdateRulesChannel, onGuildUpdateSplash, onGuildUpdateSystemChannel, onGuildUpdateVanityCode, onGuildUpdateVerificationLevel, onGuildVoiceDeafen, onGuildVoiceGuildDeafen, onGuildVoiceGuildMute, onGuildVoiceJoin, onGuildVoiceLeave, onGuildVoiceMove, onGuildVoiceMute, onGuildVoiceRequestToSpeak, onGuildVoiceSelfDeafen, onGuildVoiceSelfMute, onGuildVoiceStream, onGuildVoiceSuppress, onGuildVoiceUpdate, onGuildVoiceVideo, onHttpRequest, onMessageBulkDelete, onMessageContextInteraction, onMessageDelete, onMessageEmbed, onMessageReactionAdd, onMessageReactionRemove, onMessageReactionRemoveAll, onMessageReactionRemoveEmoji, onModalInteraction, onPermissionOverrideCreate, onPermissionOverrideDelete, onPermissionOverrideUpdate, onRawGateway, onReady, onReconnected, onResumed, onRoleCreate, onRoleDelete, onRoleUpdateColor, onRoleUpdateHoisted, onRoleUpdateIcon, onRoleUpdateMentionable, onRoleUpdateName, onRoleUpdatePermissions, onRoleUpdatePosition, onSelfUpdateAvatar, onSelfUpdateMFA, onSelfUpdateName, onSelfUpdateVerified, onShutdown, onStageInstanceCreate, onStageInstanceDelete, onStageInstanceUpdatePrivacyLevel, onStageInstanceUpdateTopic, onStatusChange, onThreadHidden, onThreadMemberJoin, onThreadMemberLeave, onThreadRevealed, onUnavailableGuildJoined, onUnavailableGuildLeave, onUserActivityEnd, onUserActivityStart, onUserContextInteraction, onUserTyping, onUserUpdateActivities, onUserUpdateActivityOrder, onUserUpdateAvatar, onUserUpdateDiscriminator, onUserUpdateFlags, onUserUpdateName, onUserUpdateOnlineStatus
-
Field Details
-
onArgumentError
-
-
Constructor Details
-
ComplexCommandHandler
public ComplexCommandHandler(boolean usePrefix)
-
-
Method Details
-
setPrefix
-
registerCommand
-
setJda
public void setJda(net.dv8tion.jda.api.JDA jda) -
getRegisteredCommands
-
checkMessageInteraction
public void checkMessageInteraction(net.dv8tion.jda.api.entities.Message message) -
destroyInteraction
-
onMessageReceived
public void onMessageReceived(@NotNull @NotNull net.dv8tion.jda.api.events.message.MessageReceivedEvent event) - Overrides:
onMessageReceivedin classnet.dv8tion.jda.api.hooks.ListenerAdapter
-
onMessageUpdate
public void onMessageUpdate(@NotNull @NotNull net.dv8tion.jda.api.events.message.MessageUpdateEvent event) - Overrides:
onMessageUpdatein classnet.dv8tion.jda.api.hooks.ListenerAdapter
-
onSlashCommandInteraction
public void onSlashCommandInteraction(@NotNull @NotNull net.dv8tion.jda.api.events.interaction.command.SlashCommandInteractionEvent event) - Overrides:
onSlashCommandInteractionin classnet.dv8tion.jda.api.hooks.ListenerAdapter
-
onCommandAutoCompleteInteraction
public void onCommandAutoCompleteInteraction(@NotNull @NotNull net.dv8tion.jda.api.events.interaction.command.CommandAutoCompleteInteractionEvent event) - Overrides:
onCommandAutoCompleteInteractionin classnet.dv8tion.jda.api.hooks.ListenerAdapter
-
onButtonInteraction
public void onButtonInteraction(@NotNull @NotNull net.dv8tion.jda.api.events.interaction.component.ButtonInteractionEvent event) - Overrides:
onButtonInteractionin classnet.dv8tion.jda.api.hooks.ListenerAdapter
-
onSelectMenuInteraction
public void onSelectMenuInteraction(@NotNull @NotNull net.dv8tion.jda.api.events.interaction.component.SelectMenuInteractionEvent event) - Overrides:
onSelectMenuInteractionin classnet.dv8tion.jda.api.hooks.ListenerAdapter
-
downsert
public void downsert(@Nullable net.dv8tion.jda.api.entities.Guild guild) Delete and create commands. -
deployAll
public void deployAll(@Nullable net.dv8tion.jda.api.entities.Guild guild) -
deploy
Deprecated.Downsert, then upsert commands.
-