c

ackcord.interactions.commands

MessageCommandBuilder

class MessageCommandBuilder[Interaction[_]] extends CommandBuilder[Interaction, InteractionPartialMessage]

A builder for message commands.

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

Instance Constructors

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

Value Members

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

    Use a new transformer on the current transformer.

    Use a new transformer on the current transformer.

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

    Extra info to associate with the command.

    Extra info to associate with the command.

    Definition Classes
    MessageCommandBuilderCommandBuilder
  5. def handle(name: String)(handler: (Interaction[InteractionPartialMessage]) => InteractionResponse): MessageCommand[Interaction]

    Create a new message command.

    Create a new message 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
    MessageCommandBuilderCommandBuilder
  7. def withExtra(extra: Map[String, String]): MessageCommandBuilder[Interaction]

    Sets the extra info associated with the command.

    Sets the extra info associated with the command.

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

    Sets the transformer to process the interaction first.

    Sets the transformer to process the interaction first.

    Definition Classes
    MessageCommandBuilderCommandBuilder