c

ackcord.interactions.commands

NamedSlashCommandBuilder

class NamedSlashCommandBuilder[Interaction[_], A] extends SlashCommandBuilder[[_]Interaction[_], A]

Source
SlashCommandBuilder.scala
Linear Supertypes
SlashCommandBuilder[[_]Interaction[_], A], CommandBuilder[[_]Interaction[_], A], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. NamedSlashCommandBuilder
  2. SlashCommandBuilder
  3. CommandBuilder
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new NamedSlashCommandBuilder(name: String, description: String, defaultPermission: Boolean, transformer: DataInteractionTransformer[CommandInteraction, Interaction], implParamList: Either[=:=[NotUsed, A], ParamList[A]], extra: Map[String, String])

Value Members

  1. def andThen[To2[_]](nextTransformer: DataInteractionTransformer[Interaction, To2]): NamedSlashCommandBuilder[To2, A]

    Use a new transformer on the current transformer.

    Use a new transformer on the current transformer.

    Definition Classes
    NamedSlashCommandBuilderSlashCommandBuilderCommandBuilder
  2. def command(name: String, description: String)(handle: (Interaction[A]) => InteractionResponse): SlashCommand[[_]Interaction[_], A]

    Create a slash command.

    Create a slash command.

    name

    Name of the slash command.

    description

    Description of the slash command.

    handle

    A handler for the slash command.

    Definition Classes
    SlashCommandBuilder
  3. def defaultPermission(permission: Boolean): NamedSlashCommandBuilder[Interaction, A]
  4. val defaultPermission: Boolean
  5. val description: String
  6. val extra: Map[String, String]

    Extra info to associate with the command.

    Extra info to associate with the command.

    Definition Classes
    SlashCommandBuilderCommandBuilder
  7. def group(name: String, description: String)(subcommands: SlashCommandOrGroup*): SlashCommandGroup

    Create a slash command group.

    Create a slash command group.

    name

    Name of the group

    description

    Description of the group.

    subcommands

    Subcommands of the group.

    Definition Classes
    SlashCommandBuilder
  8. def handle(handler: (Interaction[A]) => InteractionResponse): SlashCommand[Interaction, A]

    Create a slash command.

    Create a slash command.

    handler

    A handler for the slash command.

  9. val name: String
  10. def named(name: String, description: String): NamedSlashCommandBuilder[[_]Interaction[_], A]

    Sets the name and description of the created slash command.

    Sets the name and description of the created slash command.

    Definition Classes
    SlashCommandBuilder
  11. def paramList: Option[ParamList[A]]

    The parameter list of this command.

    The parameter list of this command.

    Definition Classes
    SlashCommandBuilder
  12. val transformer: DataInteractionTransformer[CommandInteraction, [_]Interaction[_]]

    A transformer to do base processing of the interaction before handling it.

    A transformer to do base processing of the interaction before handling it.

    Definition Classes
    SlashCommandBuilderCommandBuilder
  13. def withExtra(extra: Map[String, String]): NamedSlashCommandBuilder[Interaction, A]

    Sets the extra info associated with the command.

    Sets the extra info associated with the command.

    Definition Classes
    NamedSlashCommandBuilderSlashCommandBuilderCommandBuilder
  14. def withNoParams: NamedSlashCommandBuilder[Interaction, NotUsed]

    Removes the parameters of the command builder.

    Removes the parameters of the command builder.

    Definition Classes
    NamedSlashCommandBuilderSlashCommandBuilder
  15. def withParams[NewA](paramList: ParamList[NewA]): NamedSlashCommandBuilder[Interaction, NewA]

    Sets the parameters to use for this command.

    Sets the parameters to use for this command.

    Definition Classes
    NamedSlashCommandBuilderSlashCommandBuilder
  16. def withTransformer[NewTo[_]](transformer: DataInteractionTransformer[CommandInteraction, NewTo]): NamedSlashCommandBuilder[NewTo, A]

    Sets the transformer to process the interaction first.

    Sets the transformer to process the interaction first.

    Definition Classes
    NamedSlashCommandBuilderSlashCommandBuilderCommandBuilder