case class Events(publish: Sink[CacheEvent, NotUsed], subscribe: Source[(CacheEvent, CacheState), NotUsed], toGatewayPublish: Sink[GatewayMessage[Any], NotUsed], toGatewaySubscribe: Source[GatewayMessage[Any], NotUsed], fromGatewayPublish: Sink[GatewayMessage[Any], NotUsed], fromGatewaySubscribe: Source[GatewayMessage[Any], NotUsed], parallelism: Int)(implicit system: ActorSystem[Nothing]) extends Product with Serializable

Houses streams to interact with events and messages sent to and from Discord.

publish

A sink used for publishing. Any elements connected to this sink is published to the cache.

subscribe

A source to subscribe to. All updates are pushed here.

parallelism

How many cache updates to construct at the same time.

Source
Events.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Events
  2. Serializable
  3. Product
  4. Equals
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Events(publish: Sink[CacheEvent, NotUsed], subscribe: Source[(CacheEvent, CacheState), NotUsed], toGatewayPublish: Sink[GatewayMessage[Any], NotUsed], toGatewaySubscribe: Source[GatewayMessage[Any], NotUsed], fromGatewayPublish: Sink[GatewayMessage[Any], NotUsed], fromGatewaySubscribe: Source[GatewayMessage[Any], NotUsed], parallelism: Int)(implicit system: ActorSystem[Nothing])

    publish

    A sink used for publishing. Any elements connected to this sink is published to the cache.

    subscribe

    A source to subscribe to. All updates are pushed here.

    parallelism

    How many cache updates to construct at the same time.

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[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. val fromGatewayPublish: Sink[GatewayMessage[Any], NotUsed]
  8. val fromGatewaySubscribe: Source[GatewayMessage[Any], NotUsed]
  9. def gatewayClientConnection: Flow[GatewayMessage[_], GatewayMessage[_], NotUsed]

    Messages sent to this flow will be sent to the gateway.

    Messages sent to this flow will be sent to the gateway. Messages coming out of this flow are received from the gateway.

  10. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  11. def interactions: Source[(RawInteraction, Option[CacheSnapshot]), NotUsed]

    Exposes the command interactions sent to this bot.

  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  15. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  16. val parallelism: Int
  17. def productElementNames: Iterator[String]
    Definition Classes
    Product
  18. val publish: Sink[CacheEvent, NotUsed]
  19. def publishCacheEvent(elem: CacheEvent): Unit

    Publish a single cache event.

  20. val subscribe: Source[(CacheEvent, CacheState), NotUsed]
  21. def subscribeAPI: Source[APIMessage, NotUsed]

    A source used to subscribe to APIMessages sent to this cache.

  22. def subscribeAPIActor(actor: ActorRef, completeMessage: Any, onFailureMessage: (Throwable) => Any)(specificEvent: Class[_ <: APIMessage]*): Unit

    Subscribe an actor to this cache using Sink.actorRef.

  23. def subscribeAPIActorWithAck(actor: ActorRef, initMessage: Any, ackMessage: Any, completeMessage: Any, failureMessage: (Throwable) => Any = classic.Status.Failure)(specificEvent: Class[_ <: APIMessage]*): Unit

    Subscribe an actor to this cache using Sink.actorRefWithAck.

  24. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  25. val toGatewayPublish: Sink[GatewayMessage[Any], NotUsed]
  26. val toGatewaySubscribe: Source[GatewayMessage[Any], NotUsed]
  27. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  28. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  29. 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
  2. def receiveGatewayPublish: Sink[GatewayMessage[Any], NotUsed]
    Annotations
    @deprecated
    Deprecated

    (Since version 0.18.0) Use fromGatewayPublish instead

  3. def receiveGatewaySubscribe: Source[GatewayMessage[Any], NotUsed]
    Annotations
    @deprecated
    Deprecated

    (Since version 0.18.0) Use fromGatewaySubscribe instead

  4. def sendGatewayPublish: Sink[GatewayMessage[Any], NotUsed]
    Annotations
    @deprecated
    Deprecated

    (Since version 0.18.0) Use toGatewayPublish instead

  5. def sendGatewaySubscribe: Source[GatewayMessage[Any], NotUsed]
    Annotations
    @deprecated
    Deprecated

    (Since version 0.18.0) Use toGatewaySubscribe instead

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped