c

ackcord.interactions.commands

UserCommandBuilder

class UserCommandBuilder[Interaction[_]] extends CommandBuilder[Interaction, (User, Option[InteractionRawGuildMember])]

A builder for user commands.

Source
UserCommandBuilder.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. UserCommandBuilder
  2. CommandBuilder
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new UserCommandBuilder(defaultPermission: Boolean, transformer: DataInteractionTransformer[CommandInteraction, Interaction], extra: Map[String, String])

Value Members

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

    Use a new transformer on the current transformer.

    Use a new transformer on the current transformer.

    Definition Classes
    UserCommandBuilderCommandBuilder
  2. def defaultPermission(permission: Boolean): UserCommandBuilder[Interaction]
    Definition Classes
    UserCommandBuilderCommandBuilder
  3. val defaultPermission: Boolean
    Definition Classes
    UserCommandBuilderCommandBuilder
  4. val extra: Map[String, String]

    Extra info to associate with the command.

    Extra info to associate with the command.

    Definition Classes
    UserCommandBuilderCommandBuilder
  5. def handle(name: String)(handler: (Interaction[(User, Option[InteractionRawGuildMember])]) => InteractionResponse): UserCommand[Interaction]

    Create a new user command.

    Create a new user command.

    name

    The name of the command.

    handler

    The handler for the command.

  6. 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
    UserCommandBuilderCommandBuilder
  7. def withExtra(extra: Map[String, String]): UserCommandBuilder[Interaction]

    Sets the extra info associated with the command.

    Sets the extra info associated with the command.

    Definition Classes
    UserCommandBuilderCommandBuilder
  8. def withTransformer[NewTo[_]](transformer: DataInteractionTransformer[CommandInteraction, NewTo]): UserCommandBuilder[NewTo]

    Sets the transformer to process the interaction first.

    Sets the transformer to process the interaction first.

    Definition Classes
    UserCommandBuilderCommandBuilder