public enum ArgumentTypes extends Enum<ArgumentTypes>
| Enum Constant and Description |
|---|
ANNOUNCEMENT_CHANNEL
Argument that represents a Guild Message Channel used to post announcements.
|
ATTACHMENT
Argument that represents an Attachment.
|
AUDIO_CHANNEL
Argument that represents any Audio Channel.
|
BOOLEAN
Argument that represents a boolean value.
|
CATEGORY_CHANNEL
Argument that represents a category.
|
CHANNEL
Argument that represents any type of Discord Channel.
|
COMMAND
Argument that represents a Command loaded in the engine.
|
CUSTOM_EMOJI
Argument that represents a Custom Emoji uploaded to a Discord Server.
|
DATE
Argument that represents a Date Object
|
DATETIME
Argument that represents a DateTime Object.
|
FLOAT
Argument that represents a Number with decimal point.
|
GUILD
Argument that represents a Discord Server.
|
INTEGER
Argument that represents an Integer value.
|
MEMBER
Argument that represents a Server's Member.
|
MESSAGE
Argument that represents a Discord Message.
|
MESSAGE_CHANNEL
Argument that represents a Discord Message Channel.
|
ROLE
Argument that represents a Server's role.
|
STAGE_CHANNEL
Argument that represents a special Guild Voice Channel of type Stage.
|
STRING
Argument that represents plain text.
|
TEXT_CHANNEL
Argument that represents a Text Channel.
|
THREAD_CHANNEL
Argument that represents a Thread Channel.
|
TIME
Argument that represents a LocalTime Object
|
UNION
Argument that indicates multiple Argument types are going to be supported.
|
URL
Argument that represents a URL object
|
USER
Argument that represents a Discord's user.
|
VOICE_CHANNEL
Argument that represents a Discord Voice Channel.
|
| Modifier and Type | Method and Description |
|---|---|
net.dv8tion.jda.api.interactions.commands.OptionType |
asOptionType()
Get the argument representation as an
OptionType object. |
@NotNull String |
toString()
Get a readable version of the argument type for final users
|
@NotNull String |
toString(net.dv8tion.jda.api.events.Event event)
Get a readable version of the argument type for final users.
|
@NotNull String |
toString(Locale locale)
Get a readable version of the argument type for final users.
|
@NotNull String |
toString(net.dv8tion.jda.api.events.message.MessageReceivedEvent event)
Get a readable version of the argument type for final users.
|
@NotNull String |
toString(net.dv8tion.jda.api.events.interaction.command.SlashCommandInteractionEvent event)
Get a readable version of the argument type for final users.
|
static ArgumentTypes |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ArgumentTypes[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ArgumentTypes ANNOUNCEMENT_CHANNEL
NewsChannelpublic static final ArgumentTypes ATTACHMENT
AttachedFilepublic static final ArgumentTypes AUDIO_CHANNEL
AudioChannelpublic static final ArgumentTypes BOOLEAN
Booleanpublic static final ArgumentTypes CATEGORY_CHANNEL
Categorypublic static final ArgumentTypes CHANNEL
Channelpublic static final ArgumentTypes COMMAND
ICommand,
ICommandEnginepublic static final ArgumentTypes CUSTOM_EMOJI
Emojipublic static final ArgumentTypes FLOAT
Doublepublic static final ArgumentTypes GUILD
Guildpublic static final ArgumentTypes INTEGER
Longpublic static final ArgumentTypes MEMBER
Memberpublic static final ArgumentTypes MESSAGE
Messagepublic static final ArgumentTypes MESSAGE_CHANNEL
MessageChannelpublic static final ArgumentTypes ROLE
Rolepublic static final ArgumentTypes STAGE_CHANNEL
StageChannelpublic static final ArgumentTypes STRING
Stringpublic static final ArgumentTypes TEXT_CHANNEL
TextChannelpublic static final ArgumentTypes THREAD_CHANNEL
ThreadChannelpublic static final ArgumentTypes UNION
UnionArgumentpublic static final ArgumentTypes USER
Userpublic static final ArgumentTypes VOICE_CHANNEL
VoiceChannelpublic static final ArgumentTypes DATE
public static final ArgumentTypes TIME
LocalTimepublic static final ArgumentTypes DATETIME
LocalDateTime,
Datepublic static final ArgumentTypes URL
URLpublic static ArgumentTypes[] values()
for (ArgumentTypes c : ArgumentTypes.values()) System.out.println(c);
public static ArgumentTypes valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is null@NotNull public @NotNull String toString()
toString in class Enum<ArgumentTypes>@NotNull public @NotNull String toString(net.dv8tion.jda.api.events.message.MessageReceivedEvent event)
event - Discord event that triggered this function call.@NotNull public @NotNull String toString(net.dv8tion.jda.api.events.interaction.command.SlashCommandInteractionEvent event)
event - Discord event that triggered this function call.@NotNull public @NotNull String toString(net.dv8tion.jda.api.events.Event event)
event - Discord event that triggered this function call.@NotNull public @NotNull String toString(Locale locale)
locale - desired locale.