c

net.katsstuff.ackcord

SeperateCommandsHelper

case class SeperateCommandsHelper[F[_]](commands: Commands[F], requests: RequestHelper) extends CommandsHelper[F] with Product with Serializable

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SeperateCommandsHelper
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. CommandsHelper
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SeperateCommandsHelper(commands: Commands[F], requests: RequestHelper)

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 clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  6. val commands: Commands[F]

    The commands object specific to this command helper.

    The commands object specific to this command helper.

    Definition Classes
    SeperateCommandsHelperCommandsHelper
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  10. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  11. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  13. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  14. def onRawCmd[G[_]](handler: (RawCmd[F]) ⇒ G[Unit])(implicit streamable: Streamable[G]): (UniqueKillSwitch, Future[Done])

    Runs a partial function whenever a raw command object is received.

    Runs a partial function whenever a raw command object is received.

    If you use IntelliJ you might have to specify the execution type. (Normally Id or SourceRequest)

    G

    The execution type

    handler

    The handler function.

    streamable

    A way to convert your execution type to a stream.

    returns

    A kill switch to cancel this listener, and a future representing when it's done.

    Definition Classes
    CommandsHelper
  15. def registerCmd[A, G[_]](refiner: CmdRefiner[F], description: Option[CmdDescription])(handler: (ParsedCmd[F, A]) ⇒ G[Unit])(implicit arg0: MessageParser[A], F: Monad[F], streamableF: Streamable[F], streamable: Streamable[G]): (UniqueKillSwitch, Future[Done])

    Register a command which runs some code.

    Register a command which runs some code.

    G

    The execution type

    handler

    The handler function.

    streamable

    A way to convert your execution type to a stream.

    returns

    A kill switch to cancel this listener, and a future representing when it's done.

    Definition Classes
    CommandsHelper
  16. def registerCmd[A, G[_]](prefix: String, aliases: Seq[String], filters: Seq[CmdFilter] = Nil, description: Option[CmdDescription] = None)(handler: (ParsedCmd[F, A]) ⇒ G[Unit])(implicit arg0: MessageParser[A], F: Monad[F], streamableF: Streamable[F], streamable: Streamable[G]): (UniqueKillSwitch, Future[Done])

    Register a command which runs some code.

    Register a command which runs some code.

    G

    The execution type

    handler

    The handler function.

    streamable

    A way to convert your execution type to a stream.

    returns

    A kill switch to cancel this listener, and a future representing when it's done.

    Definition Classes
    CommandsHelper
  17. def registerHandler[G[_], A](handler: CommandHandler[F, G, A])(implicit arg0: MessageParser[A], streamableG: Streamable[G], F: Monad[F], streamableF: Streamable[F]): (UniqueKillSwitch, Future[Done])

    Registers an CommandHandler that will be called when that command is used.

    Registers an CommandHandler that will be called when that command is used.

    returns

    A kill switch to cancel this listener, and a future representing when it's done.

    Definition Classes
    CommandsHelper
  18. def registerHandler[G[_]](handler: RawCommandHandler[F, G])(implicit streamable: Streamable[G]): (UniqueKillSwitch, Future[Done])

    Registers an CommandHandler that will be called when that command is used.

    Registers an CommandHandler that will be called when that command is used.

    returns

    A kill switch to cancel this listener, and a future representing when it's done.

    Definition Classes
    CommandsHelper
  19. val requests: RequestHelper

    The request helper to use when sending messages from this command helper.

    The request helper to use when sending messages from this command helper.

    Definition Classes
    SeperateCommandsHelperCommandsHelper
  20. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  21. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Deprecated Value Members

  1. def onRawCommand(handler: PartialFunction[RawCmd[F], Unit]): (UniqueKillSwitch, Future[Done])

    Run some code when raw command arrives.

    Run some code when raw command arrives.

    returns

    A kill switch to cancel this listener, and a future representing when it's done.

    Definition Classes
    CommandsHelper
    Annotations
    @deprecated
    Deprecated

    (Since version 0.11) Use the handlers or the new onRawCmd instead

  2. def onRawCommandC(handler: (CacheSnapshot[F]) ⇒ PartialFunction[RawCmd[F], Unit]): (UniqueKillSwitch, Future[Done])

    Run some code with a CacheSnapshot when raw command arrives.

    Run some code with a CacheSnapshot when raw command arrives.

    returns

    A kill switch to cancel this listener, and a future representing when it's done.

    Definition Classes
    CommandsHelper
    Annotations
    @deprecated
    Deprecated

    (Since version 0.11) Use the handlers or the new onRawCmd instead

  3. def onRawCommandDSL(handler: PartialFunction[RawCmd[F], RequestDSL[Unit]]): (UniqueKillSwitch, Future[Done])

    Run a RequestDSL when raw command arrives.

    Run a RequestDSL when raw command arrives.

    returns

    A kill switch to cancel this listener, and a future representing when it's done.

    Definition Classes
    CommandsHelper
    Annotations
    @deprecated
    Deprecated

    (Since version 0.11) Use the handlers or the new onRawCmd instead

  4. def onRawCommandDSLC(handler: (CacheSnapshot[F]) ⇒ PartialFunction[RawCmd[F], RequestDSL[Unit]]): (UniqueKillSwitch, Future[Done])

    Run a RequestDSL with a CacheSnapshot when raw command arrives.

    Run a RequestDSL with a CacheSnapshot when raw command arrives.

    returns

    A kill switch to cancel this listener, and a future representing when it's done.

    Definition Classes
    CommandsHelper
    Annotations
    @deprecated
    Deprecated

    (Since version 0.11) Use the handlers or the new onRawCmd instead

  5. def registerCommand[A](category: CmdCategory, aliases: Seq[String], filters: Seq[CmdFilter] = Nil, description: Option[CmdDescription] = None)(handler: (ParsedCmd[F, A]) ⇒ Unit)(implicit arg0: MessageParser[A], F: Monad[F], streamable: Streamable[F]): (UniqueKillSwitch, Future[Done])

    Register a command which runs some code.

    Register a command which runs some code.

    returns

    A kill switch to cancel this listener, and a future representing when it's done.

    Definition Classes
    CommandsHelper
    Annotations
    @deprecated
    Deprecated

    (Since version 0.11) Use the handlers the new registerCmd instead

  6. def registerCommandC[A](category: CmdCategory, aliases: Seq[String], filters: Seq[CmdFilter] = Nil, description: Option[CmdDescription] = None)(handler: (CacheSnapshot[F]) ⇒ (ParsedCmd[F, A]) ⇒ Unit)(implicit arg0: MessageParser[A], F: Monad[F], streamable: Streamable[F]): (UniqueKillSwitch, Future[Done])

    Register a command which runs some code with a CacheSnapshot.

    Register a command which runs some code with a CacheSnapshot.

    returns

    A kill switch to cancel this listener, and a future representing when it's done.

    Definition Classes
    CommandsHelper
    Annotations
    @deprecated
    Deprecated

    (Since version 0.11) Use the handlers the new registerCmd instead

  7. def registerCommandDSL[A](category: CmdCategory, aliases: Seq[String], filters: Seq[CmdFilter] = Nil, description: Option[CmdDescription] = None)(handler: (ParsedCmd[F, A]) ⇒ RequestDSL[Unit])(implicit arg0: MessageParser[A], F: Monad[F], streamable: Streamable[F]): (UniqueKillSwitch, Future[Done])

    Register a command which runs a RequestDSL.

    Register a command which runs a RequestDSL.

    returns

    A kill switch to cancel this listener, and a future representing when it's done.

    Definition Classes
    CommandsHelper
    Annotations
    @deprecated
    Deprecated

    (Since version 0.11) Use the handlers the new registerCmd instead

  8. def registerCommandDSLC[A](category: CmdCategory, aliases: Seq[String], filters: Seq[CmdFilter] = Nil, description: Option[CmdDescription] = None)(handler: (CacheSnapshot[F]) ⇒ (ParsedCmd[F, A]) ⇒ RequestDSL[Unit])(implicit arg0: MessageParser[A], F: Monad[F], streamable: Streamable[F]): (UniqueKillSwitch, Future[Done])

    Register a command which runs a RequestDSL with a CacheSnapshot.

    Register a command which runs a RequestDSL with a CacheSnapshot.

    returns

    A kill switch to cancel this listener, and a future representing when it's done.

    Definition Classes
    CommandsHelper
    Annotations
    @deprecated
    Deprecated

    (Since version 0.11) Use the handlers or the new registerCmd instead

  9. def registerHandler[A](handler: CommandHandlerDSL[A])(implicit arg0: MessageParser[A], F: Monad[F], streamable: Streamable[F]): (UniqueKillSwitch, Future[Done])

    Registers an CommandHandlerDSL that will be run when that command is used.

    Registers an CommandHandlerDSL that will be run when that command is used.

    returns

    A kill switch to cancel this listener, and a future representing when it's done.

    Definition Classes
    CommandsHelper
    Annotations
    @deprecated
    Deprecated

    (Since version 0.11) Use the handlers the new registerCmd instead

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from CommandsHelper[F]

Inherited from AnyRef

Inherited from Any

Ungrouped