c

ackcord.commands

CommandConnector

class CommandConnector extends AnyRef

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

Instance Constructors

  1. new CommandConnector(messages: Source[(Message, CacheSnapshot), NotUsed], requests: requests.Requests, parallelism: Int)

    messages

    A source of messages and their cache. All the messages that will be considered for commands.

    requests

    A request helper to send errors and pass to command messages

    parallelism

    How many command messages are constructed at once.

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def bulkRunNamed(commands: NamedCommand[_]*): Seq[(NamedCommand[_], CommandRegistration[_])]

    Starts many named commands at the same time.

    Starts many named commands at the same time. They must all have a materialized value of NotUsed.

    commands

    The commands to run.

    returns

    The commands together with their completions.

  6. def bulkRunNamedWithHelp(helpCommand: HelpCommand, commands: NamedDescribedCommand[_]*): Seq[(NamedDescribedCommand[_], CommandRegistration[_])]

    Starts many named commands at the same time and registers them with the help command.

    Starts many named commands at the same time and registers them with the help command. They must all have a materialized value of NotUsed.

    commands

    The commands to run.

    returns

    The commands together with their completions.

  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  10. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  11. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. def newCommand[A, Mat](prefix: PrefixParser, command: ComplexCommand[A, Mat]): RunnableGraph[CommandRegistration[Mat]]

    Creates a RunnableGraph for a command.

    Creates a RunnableGraph for a command.

    A

    The type of arguments this command uses.

    Mat

    The materialized result of running the command graph.

    prefix

    The prefix to parse before the command.

    command

    The command to use when creating the graph.

    returns

    A runnable graph representing the execution of this command. Errors are sent as messages to the channel the command was used from.

    See also

    newCommandWithErrors

  15. def newCommandWithErrors[A, Mat](prefix: PrefixParser, command: ComplexCommand[A, Mat]): Source[CommandError, CommandRegistration[Mat]]

    Composes a command's flow and the source of messages to consider for commands.

    Composes a command's flow and the source of messages to consider for commands.

    A

    The type of arguments this command uses.

    Mat

    The materialized result of running the command graph.

    prefix

    A prefix parser to use for this command. In most cases create it by calling prefix.

    command

    A command the compose with.

    returns

    A source of command errors that can be used however you want.

  16. def newNamedCommand[A, Mat](command: NamedComplexCommand[A, Mat]): RunnableGraph[CommandRegistration[Mat]]

    Creates a RunnableGraph for a named command.

    Creates a RunnableGraph for a named command.

    A

    The type of arguments this command uses.

    Mat

    The materialized result of running the command graph.

    command

    The named command to use when creating the graph.

    returns

    A runnable graph representing the execution of this command. Errors are sent as messages to the channel the command was used from.

    See also

    newCommandWithErrors

  17. def newNamedCommandWithErrors[A, Mat](command: NamedComplexCommand[A, Mat]): Source[CommandError, CommandRegistration[Mat]]

    Composes a named command's flow and the source of messages to consider for commands.

    Composes a named command's flow and the source of messages to consider for commands.

    A

    The type of arguments this command uses.

    Mat

    The materialized result of running the command graph.

    command

    A named command the compose with.

    returns

    A source of command errors that can be used however you want.

  18. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  19. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  20. def runNewCommand[A, Mat](prefix: PrefixParser, command: ComplexCommand[A, Mat]): CommandRegistration[Mat]

    Starts a command execution.

    Starts a command execution.

    A

    The type of arguments this command uses.

    Mat

    The materialized result of running the command graph.

    prefix

    The prefix to use for the command.

    command

    The command to run.

    returns

    The materialized result of running the command, in addition to a future signaling when the command is done running.

  21. def runNewNamedCommand[A, Mat](command: NamedComplexCommand[A, Mat]): CommandRegistration[Mat]

    Starts a named command execution.

    Starts a named command execution.

    A

    The type of arguments this command uses.

    Mat

    The materialized result of running the command graph.

    command

    The named command to run.

    returns

    The materialized result of running the command, in addition to a future signaling when the command is done running.

  22. def runNewNamedCommandWithHelp[A, Mat](command: NamedDescribedComplexCommand[A, Mat], helpCommand: HelpCommand): CommandRegistration[Mat]

    Starts a named command execution and registers it with the help command.

    Starts a named command execution and registers it with the help command.

    A

    The type of arguments this command uses.

    Mat

    The materialized result of running the command graph.

    command

    The named command to run.

    helpCommand

    The help command to register the commandf with.

    returns

    The materialized result of running the command, in addition to a future signaling when the command is done running.

  23. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  24. def toString(): String
    Definition Classes
    AnyRef → Any
  25. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  26. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  27. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from AnyRef

Inherited from Any

Ungrouped