public enum JDASenderResolver extends java.lang.Enum<JDASenderResolver> implements revxrsal.commands.process.SenderResolver<SlashCommandActor>
| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
@NotNull java.lang.Object |
getSender(@NotNull java.lang.Class<?> type,
@NotNull SlashCommandActor actor,
@NotNull revxrsal.commands.command.ExecutableCommand<SlashCommandActor> command) |
boolean |
isSenderType(@NotNull revxrsal.commands.command.CommandParameter parameter) |
static JDASenderResolver |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static JDASenderResolver[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JDASenderResolver INSTANCE
public static JDASenderResolver[] values()
for (JDASenderResolver c : JDASenderResolver.values()) System.out.println(c);
public static JDASenderResolver valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic boolean isSenderType(@NotNull
@NotNull revxrsal.commands.command.CommandParameter parameter)
isSenderType in interface revxrsal.commands.process.SenderResolver<SlashCommandActor>@NotNull
public @NotNull java.lang.Object getSender(@NotNull
@NotNull java.lang.Class<?> type,
@NotNull
@NotNull SlashCommandActor actor,
@NotNull
@NotNull revxrsal.commands.command.ExecutableCommand<SlashCommandActor> command)
getSender in interface revxrsal.commands.process.SenderResolver<SlashCommandActor>