Class

ackcord.newcommands

CommandConnector

Related Doc: package newcommands

Permalink

class CommandConnector[F[_]] extends AnyRef

F

The cache effect type

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. All

Instance Constructors

  1. new CommandConnector(messages: Source[(Message, CacheSnapshot[F]), NotUsed], requests: RequestHelper)(implicit arg0: Streamable[F], arg1: Monad[F])

    Permalink

    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

Type Members

  1. type PrefixParser = (CacheSnapshot[F], Message) ⇒ F[MessageParser[Unit]]

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  10. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  11. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. def newCommand[A, Mat](prefix: PrefixParser, command: Command[F, A, Mat]): RunnableGraph[(Mat, Future[Done])]

    Permalink

    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

  14. def newCommandWithErrors[A, Mat](prefix: PrefixParser, command: Command[F, A, Mat]): Source[CommandError[F], (Mat, Future[Done])]

    Permalink

    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.

  15. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  16. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  17. def prefix(symbol: String, aliases: Seq[String], mustMention: Boolean): PrefixParser

    Permalink

    Creates a prefix parser for a command.

    Creates a prefix parser for a command.

    symbol

    The symbol to parse before the command.

    aliases

    A list of aliases for this command.

    mustMention

    If the command must need a mention before the prefix and alias.

  18. def runNewCommand[A, Mat](prefix: PrefixParser, command: Command[F, A, Mat]): (Mat, Future[Done])

    Permalink

    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.

  19. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  20. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  21. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped