object DiscordShard extends FailFastCirceSupport

Source
DiscordShard.scala
Linear Supertypes
FailFastCirceSupport, FailFastUnmarshaller, BaseCirceSupport, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DiscordShard
  2. FailFastCirceSupport
  3. FailFastUnmarshaller
  4. BaseCirceSupport
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

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. def connect(wsUri: Uri, settings: GatewaySettings, cache: Cache, actorName: String)(implicit system: ActorSystem): ActorRef

    Create a shard actor given the needed arguments.

    Create a shard actor given the needed arguments.

    wsUri

    The websocket gateway uri.

    settings

    The settings to use.

    system

    The actor system to use for creating the client actor.

  7. def connect(wsUri: Uri, token: String, cache: Cache, actorName: String)(implicit system: ActorSystem): ActorRef

    Create a shard actor given the needed arguments.

    Create a shard actor given the needed arguments.

    wsUri

    The websocket gateway uri.

    token

    The bot token to use for authentication.

    system

    The actor system to use for creating the client actor.

  8. def connectMultiple(wsUri: Uri, shardTotal: Int, settings: GatewaySettings, cache: Cache, actorName: String)(implicit system: ActorSystem): Seq[ActorRef]

    Create as multiple shard actors, given the needed arguments.

    Create as multiple shard actors, given the needed arguments.

    wsUri

    The websocket gateway uri.

    shardTotal

    The amount of shards to create.

    settings

    The settings to use.

    system

    The actor system to use for creating the client actor.

  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  11. def fetchWsGateway(implicit system: ActorSystem, mat: Materializer): Future[Uri]

    Fetch the websocket gateway.

    Fetch the websocket gateway.

    system

    The actor system to use.

    mat

    The materializer to use.

    returns

    An URI with the websocket gateway uri.

  12. def fetchWsGatewayWithShards(token: String)(implicit system: ActorSystem, mat: Materializer): Future[(Uri, Int)]

    Fetch the websocket gateway with information about how many shards should be used.

    Fetch the websocket gateway with information about how many shards should be used.

    system

    The actor system to use.

    mat

    The materializer to use.

    returns

    An URI with the websocket gateway uri.

  13. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  15. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. implicit final def jsonMarshaller(implicit printer: Printer): ToEntityMarshaller[Json]
    Definition Classes
    BaseCirceSupport
  18. implicit final val jsonUnmarshaller: FromEntityUnmarshaller[Json]
    Definition Classes
    BaseCirceSupport
  19. implicit final def marshaller[A](implicit arg0: Encoder[A], printer: Printer): ToEntityMarshaller[A]
    Definition Classes
    BaseCirceSupport
  20. def mediaTypes: Seq[WithFixedCharset]
    Definition Classes
    BaseCirceSupport
  21. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  22. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  23. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  24. def props(wsUri: Uri, token: String, cache: Cache): Props
  25. def props(wsUri: Uri, settings: GatewaySettings, cache: Cache): Props
  26. def startShards(shards: Seq[ActorRef])(implicit mat: Materializer): Future[Done]

    Sends a login message to all the shards in the sequence, while obeying IDENTIFY ratelimits.

  27. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  28. def toString(): String
    Definition Classes
    AnyRef → Any
  29. implicit final def unmarshaller[A](implicit arg0: Decoder[A]): FromEntityUnmarshaller[A]
    Definition Classes
    FailFastUnmarshaller
  30. def unmarshallerContentTypes: Seq[ContentTypeRange]
    Definition Classes
    BaseCirceSupport
  31. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  34. object RestartShard extends Product with Serializable

    Send this to log out and log in again this shard.

  35. object StartShard extends Product with Serializable

    Send this to the client to log in.

  36. object StopShard extends Product with Serializable

    Send this to the client to log out and stop gracefully.

Inherited from FailFastCirceSupport

Inherited from FailFastUnmarshaller

Inherited from BaseCirceSupport

Inherited from AnyRef

Inherited from Any

Ungrouped