c

ackcord.gateway

GatewaySettings

case class GatewaySettings(token: String, largeThreshold: Int = 50, shardNum: Int = 0, shardTotal: Int = 1, idleSince: Option[Instant] = None, activities: Seq[RawActivity] = Nil, status: PresenceStatus = PresenceStatus.Online, afk: Boolean = false, intents: GatewayIntents = GatewayIntents.AllNonPrivileged, compress: Compress = Compress.ZLibStreamCompress, eventDecoders: EventDecoders = GatewayProtocol.ackcordEventDecoders, restartBackoff: () => FiniteDuration = () => 5.minutes) extends Product with Serializable

All the settings used by AckCord when connecting and similar

token

The token for the bot

largeThreshold

The large threshold

shardNum

The shard index of this

shardTotal

The amount of shards

idleSince

If the bot has been idle, set the time since

activities

Send an activity when connecting

status

The status to use when connecting

afk

If the bot should be afk when connecting

intents

Sets which events the gateway should send to the bot.

Source
GatewaySettings.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. GatewaySettings
  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 GatewaySettings(token: String, largeThreshold: Int = 50, shardNum: Int = 0, shardTotal: Int = 1, idleSince: Option[Instant] = None, activities: Seq[RawActivity] = Nil, status: PresenceStatus = PresenceStatus.Online, afk: Boolean = false, intents: GatewayIntents = GatewayIntents.AllNonPrivileged, compress: Compress = Compress.ZLibStreamCompress, eventDecoders: EventDecoders = GatewayProtocol.ackcordEventDecoders, restartBackoff: () => FiniteDuration = () => 5.minutes)

    token

    The token for the bot

    largeThreshold

    The large threshold

    shardNum

    The shard index of this

    shardTotal

    The amount of shards

    idleSince

    If the bot has been idle, set the time since

    activities

    Send an activity when connecting

    status

    The status to use when connecting

    afk

    If the bot should be afk when connecting

    intents

    Sets which events the gateway should send to the bot.

Value Members

  1. val activities: Seq[RawActivity]
  2. val afk: Boolean
  3. val compress: Compress
  4. val eventDecoders: EventDecoders
  5. val idleSince: Option[Instant]
  6. val intents: GatewayIntents
  7. val largeThreshold: Int
  8. def productElementNames: Iterator[String]
    Definition Classes
    Product
  9. val restartBackoff: () => FiniteDuration
  10. val shardNum: Int
  11. val shardTotal: Int
  12. val status: PresenceStatus
  13. val token: String