public final class SnowflakeParameterTypes
extends java.lang.Object
ParameterTypes for common types in JDA. These
will search for the snowflake ID first (which is often masked as a @mention),
then it will search by the name.| Modifier and Type | Method and Description |
|---|---|
static <A extends revxrsal.commands.command.CommandActor> |
category()
Returns the
ParameterType for parsing Category objects. |
static <A extends revxrsal.commands.command.CommandActor> |
emoji()
Returns the
ParameterType for parsing Emoji objects. |
static <A extends revxrsal.commands.command.CommandActor> |
member()
Returns the
ParameterType for parsing Member objects. |
static <A extends revxrsal.commands.command.CommandActor> |
newsChannel()
Returns the
ParameterType for parsing NewsChannel objects. |
static <A extends revxrsal.commands.command.CommandActor> |
role()
Returns the
ParameterType for parsing Role objects |
static <A extends revxrsal.commands.command.CommandActor> |
scheduledEvent()
Returns the
ParameterType for parsing ScheduledEvent objects. |
static <A extends revxrsal.commands.command.CommandActor> |
stageChannel()
Returns the
ParameterType for parsing StageChannel objects. |
static <A extends revxrsal.commands.command.CommandActor> |
textChannel()
Returns the
ParameterType for parsing TextChannel objects. |
static <A extends revxrsal.commands.command.CommandActor> |
threadChannel()
Returns the
ParameterType for parsing ThreadChannel objects. |
static <A extends revxrsal.commands.command.CommandActor> |
user()
Returns the
ParameterType for parsing User objects. |
static <A extends revxrsal.commands.command.CommandActor> |
voiceChannel()
Returns the
ParameterType for parsing VoiceChannel objects. |
@NotNull public static <A extends revxrsal.commands.command.CommandActor> @NotNull revxrsal.commands.parameter.ParameterType<A,net.dv8tion.jda.api.entities.Role> role()
ParameterType for parsing Role objectsA - The actor type@NotNull public static <A extends revxrsal.commands.command.CommandActor> @NotNull revxrsal.commands.parameter.ParameterType<A,net.dv8tion.jda.api.entities.Member> member()
ParameterType for parsing Member objects.A - The actor type@NotNull public static <A extends revxrsal.commands.command.CommandActor> @NotNull revxrsal.commands.parameter.ParameterType<A,net.dv8tion.jda.api.entities.User> user()
ParameterType for parsing User objects.A - The actor type@NotNull public static <A extends revxrsal.commands.command.CommandActor> @NotNull revxrsal.commands.parameter.ParameterType<A,net.dv8tion.jda.api.entities.channel.concrete.TextChannel> textChannel()
ParameterType for parsing TextChannel objects.A - The actor type@NotNull public static <A extends revxrsal.commands.command.CommandActor> @NotNull revxrsal.commands.parameter.ParameterType<A,net.dv8tion.jda.api.entities.channel.concrete.NewsChannel> newsChannel()
ParameterType for parsing NewsChannel objects.A - The actor type@NotNull public static <A extends revxrsal.commands.command.CommandActor> @NotNull revxrsal.commands.parameter.ParameterType<A,net.dv8tion.jda.api.entities.channel.concrete.ThreadChannel> threadChannel()
ParameterType for parsing ThreadChannel objects.A - The actor type@NotNull public static <A extends revxrsal.commands.command.CommandActor> @NotNull revxrsal.commands.parameter.ParameterType<A,net.dv8tion.jda.api.entities.channel.concrete.VoiceChannel> voiceChannel()
ParameterType for parsing VoiceChannel objects.A - The actor type@NotNull public static <A extends revxrsal.commands.command.CommandActor> @NotNull revxrsal.commands.parameter.ParameterType<A,net.dv8tion.jda.api.entities.channel.concrete.StageChannel> stageChannel()
ParameterType for parsing StageChannel objects.A - The actor type@NotNull public static <A extends revxrsal.commands.command.CommandActor> @NotNull revxrsal.commands.parameter.ParameterType<A,net.dv8tion.jda.api.entities.emoji.Emoji> emoji()
ParameterType for parsing Emoji objects.A - The actor type@NotNull public static <A extends revxrsal.commands.command.CommandActor> @NotNull revxrsal.commands.parameter.ParameterType<A,net.dv8tion.jda.api.entities.channel.concrete.Category> category()
ParameterType for parsing Category objects.A - The actor type@NotNull public static <A extends revxrsal.commands.command.CommandActor> @NotNull revxrsal.commands.parameter.ParameterType<A,net.dv8tion.jda.api.entities.ScheduledEvent> scheduledEvent()
ParameterType for parsing ScheduledEvent objects.A - The actor type