Class GenericApplicationCommandEvent
- java.lang.Object
-
- net.dv8tion.jda.api.events.Event
-
- net.dv8tion.jda.api.events.application.GenericApplicationCommandEvent
-
- All Implemented Interfaces:
GenericEvent
- Direct Known Subclasses:
ApplicationCommandCreateEvent
,ApplicationCommandDeleteEvent
,ApplicationCommandUpdateEvent
public abstract class GenericApplicationCommandEvent extends Event
Indicates that aCommand
event was fired.
Every ApplicationCommandEvent extends this event and can be casted.This is fired for commands from any application.
Can be used to detect changes for commands.
-
-
Constructor Summary
Constructors Constructor Description GenericApplicationCommandEvent(JDA api, long responseNumber, Command command, Guild guild)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Command
getCommand()
The affected command and its new data.Guild
getGuild()
The relevant guild for this command, unless its global.-
Methods inherited from class net.dv8tion.jda.api.events.Event
getJDA, getResponseNumber
-
-