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
NewsChannel
public static final ArgumentTypes ATTACHMENT
AttachedFile
public static final ArgumentTypes AUDIO_CHANNEL
AudioChannel
public static final ArgumentTypes BOOLEAN
Boolean
public static final ArgumentTypes CATEGORY_CHANNEL
Category
public static final ArgumentTypes CHANNEL
Channel
public static final ArgumentTypes COMMAND
ICommand
,
ICommandEngine
public static final ArgumentTypes CUSTOM_EMOJI
Emoji
public static final ArgumentTypes FLOAT
Double
public static final ArgumentTypes GUILD
Guild
public static final ArgumentTypes INTEGER
Long
public static final ArgumentTypes MEMBER
Member
public static final ArgumentTypes MESSAGE
Message
public static final ArgumentTypes MESSAGE_CHANNEL
MessageChannel
public static final ArgumentTypes ROLE
Role
public static final ArgumentTypes STAGE_CHANNEL
StageChannel
public static final ArgumentTypes STRING
String
public static final ArgumentTypes TEXT_CHANNEL
TextChannel
public static final ArgumentTypes THREAD_CHANNEL
ThreadChannel
public static final ArgumentTypes UNION
UnionArgument
public static final ArgumentTypes USER
User
public static final ArgumentTypes VOICE_CHANNEL
VoiceChannel
public static final ArgumentTypes DATE
public static final ArgumentTypes TIME
LocalTime
public static final ArgumentTypes DATETIME
LocalDateTime
,
Date
public static final ArgumentTypes URL
URL
public 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.