Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface BotOptions

Hierarchy

Index

Properties

Optional cache

cache?: DeepPartial<false | CacheOptions>

Cache options, decide what to cache

Optional cacheControl

cacheControl?: DeepPartial<CacheControlOptions>

Cache control option, to control what properties are cached

Optional clusterStartRetention

clusterStartRetention?: number

Amount of time to try asking the cluster to start before giving up and respawning

default

3

Optional intents

intents?: DeepPartial<number | true | ("GUILDS" | "GUILD_MEMBERS" | "GUILD_BANS" | "GUILD_EMOJIS" | "GUILD_INTEGRATIONS" | "GUILD_WEBHOOKS" | "GUILD_INVITES" | "GUILD_VOICE_STATES" | "GUILD_PRESENCES" | "GUILD_MESSAGES" | "GUILD_MESSAGE_REACTIONS" | "GUILD_MESSAGE_TYPING" | "DIRECT_MESSAGES" | "DIRECT_MESSAGE_REACTIONS" | "DIRECT_MESSAGE_TYPING")[]>

Array of intents to enable if true, enables all, if undefined enables all non-priveleged intents.

Optional shardOffset

shardOffset?: number

Amount of shards to add after requesting shards

Optional shards

shards?: DeepPartial<number | "auto">

Amount of shards to spawn, leave to auto to let Discord decide.

Optional shardsPerCluster

shardsPerCluster?: number

Amount of shards per cluster worker.

default

5

Optional spawnTimeout

spawnTimeout?: number

Amount of time between when shards are spawned (don't change unless you know what you're doing)

default

5100

token

token: string

Optional warnings

warnings?: DeepPartial<{ cachedIntents: boolean }>

Whether or not to log warnings for certain things

Optional ws

ws?: string

URL for Discord Gateway (leave null for auto)

Methods

Optional log

  • log(msg: string, cluster: Cluster): void
  • Custom logging function (false to disable)

    default

    console.log

    Parameters

    Returns void

Generated using TypeDoc