public class PrefixCommand extends Command implements Slash
NAME| Constructor and Description |
|---|
PrefixCommand() |
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription()
Get the command's short description.
|
String |
getDescription(net.dv8tion.jda.api.events.Event event)
Get the command's short description.
|
void |
run(@NotNull net.dv8tion.jda.api.events.message.MessageReceivedEvent event,
@NotNull Map<String,IArgument> args)
Command execution after all validations has been passed.
|
void |
run(@NotNull net.dv8tion.jda.api.events.interaction.command.SlashCommandInteractionEvent event,
@UnmodifiableView @NotNull Map<String,IArgument> args)
Command execution after all validations has been passed.
|
addAliases, addClientPermissions, addExample, addExamples, addMemberPermissions, anyUsage, checkClientPermissions, checkMemberPermissions, checkPermissions, getAliases, getArgument, getArguments, getClientPermissions, getDetails, getDetails, getExamples, getGroup, getGroup, getMemberPermissions, getName, getName, getThrottling, hasPermission, hasPermission, hasPermission, isGuildOnly, isNsfw, isPrivateUseOnly, isRunInThread, isThreadOnly, onDirectMessageReceived, onGuildMessageReceived, onGuildThreadMessageReceived, sendReply, sendReply, sendReply, sendReply, sendReply, sendReply, sendReply, sendReply, sendReply, setDetails, setGuildOnly, setNotRunInThreads, setNsfw, setPrivateUseOnly, setThreadOnly, setThrottling, shouldRun, toString, usagepublic PrefixCommand()
throws DuplicatedArgumentNameException
DuplicatedArgumentNameExceptionpublic String getDescription()
ICommandgetDescription in interface ICommandgetDescription in class Commandpublic String getDescription(net.dv8tion.jda.api.events.Event event)
ICommandgetDescription in interface ICommandgetDescription in class Commandevent - Discord's event that triggered this function call.public void run(@NotNull
@NotNull net.dv8tion.jda.api.events.message.MessageReceivedEvent event,
@NotNull
@NotNull Map<String,IArgument> args)
Command