Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ClientOptions

The options passed to the client constructor. Includes Eris options.

Hierarchy

Implemented by

Index

Properties

Optional agent

agent: undefined | Agent
deprecated

Optional allowMention

allowMention: undefined | boolean

If true, the bot's mention can be used as an additional prefix.

Optional allowedMentions

allowedMentions: undefined | AllowedMentions

Optional autoreconnect

autoreconnect: undefined | boolean

Optional caseSensitiveCommands

caseSensitiveCommands: undefined | boolean

If true, command names are case-sensitive. For example, users may use !ping and !PING interchangeably (assuming ! is a valid prefix). If false, command names in code must be all lowercase.

Optional caseSensitivePrefix

caseSensitivePrefix: undefined | boolean

If true, prefix matching is case-sensitive.

Optional compress

compress: undefined | boolean

Optional connectionTimeout

connectionTimeout: undefined | number

Optional defaultImageFormat

defaultImageFormat: undefined | string

Optional defaultImageSize

defaultImageSize: undefined | number

Optional disableDefaultMessageListener

disableDefaultMessageListener: undefined | boolean

If true, the client does not respond to commands by default, and the user must register their own messageCreate listener, which can call processCommand to perform command handling at an arbitrary point during the handler's execution

Optional disableEvents

disableEvents: undefined | {}

Optional firstShardID

firstShardID: undefined | number

Optional getAllUsers

getAllUsers: undefined | boolean

Optional globalCommandRequirements

globalCommandRequirements: undefined | CommandRequirements

A set of requirements to check for all commands.

Optional guildCreateTimeout

guildCreateTimeout: undefined | number

Optional guildSubscriptions

guildSubscriptions: undefined | boolean

Optional ignoreBots

ignoreBots: undefined | boolean

If true, messages from other bot accounts will not trigger commands.

Optional ignoreGlobalRequirements

ignoreGlobalRequirements: undefined | boolean

If true, requirements set via the globalCommandRequirements option will be ignored.

deprecated

Pass no globalCommandRequirements client option instead.

Optional intents

intents: undefined | number | ("guilds" | "guildMembers" | "guildBans" | "guildEmojis" | "guildIntegrations" | "guildWebhooks" | "guildInvites" | "guildVoiceStates" | "guildPresences" | "guildMessages" | "guildMessageReactions" | "guildMessageTyping" | "directMessages" | "directMessageReactions" | "directMessageTyping")[]

Optional largeThreshold

largeThreshold: undefined | number

Optional lastShardID

lastShardID: undefined | number

Optional latencyThreshold

latencyThreshold: undefined | number
deprecated

Optional maxReconnectAttempts

maxReconnectAttempts: undefined | number

Optional maxResumeAttempts

maxResumeAttempts: undefined | number

Optional maxShards

maxShards: undefined | number | "auto"

Optional messageLimit

messageLimit: undefined | number

Optional opusOnly

opusOnly: undefined | boolean

prefix

prefix: string

The prefix used to trigger commands.

Optional ratelimiterOffset

ratelimiterOffset: undefined | number
deprecated

Optional reconnectDelay

reconnectDelay: undefined | ReconnectDelayFunction

Optional requestTimeout

requestTimeout: undefined | number

Optional rest

rest: undefined | RequestHandlerOptions

Optional restMode

restMode: undefined | boolean

Optional seedVoiceConnections

seedVoiceConnections: undefined | boolean

token

token: string

The bot's token.

Optional ws

ws: unknown

Generated using TypeDoc