A - The actor typepublic interface SlashActorFactory<A extends SlashCommandActor>
| Modifier and Type | Method and Description |
|---|---|
A |
create(@NotNull net.dv8tion.jda.api.events.interaction.command.CommandAutoCompleteInteractionEvent event,
@NotNull revxrsal.commands.Lamp<A> lamp)
Creates a new actor based on a user auto-completing a slash command.
|
A |
create(@NotNull net.dv8tion.jda.api.events.interaction.command.SlashCommandInteractionEvent event,
@NotNull revxrsal.commands.Lamp<A> lamp)
Creates a new actor based on a user executing a slash command.
|
static @NotNull SlashActorFactory<SlashCommandActor> |
defaultFactory()
Returns the default
SlashActorFactory that returns a simple
SlashCommandActor implementation |
@NotNull static @NotNull SlashActorFactory<SlashCommandActor> defaultFactory()
SlashActorFactory that returns a simple
SlashCommandActor implementationSlashActorFactory.@NotNull A create(@NotNull @NotNull net.dv8tion.jda.api.events.interaction.command.SlashCommandInteractionEvent event, @NotNull @NotNull revxrsal.commands.Lamp<A> lamp)
event - The eventlamp - The Lamp instance@NotNull A create(@NotNull @NotNull net.dv8tion.jda.api.events.interaction.command.CommandAutoCompleteInteractionEvent event, @NotNull @NotNull revxrsal.commands.Lamp<A> lamp)
event - The eventlamp - The Lamp instance