Carbon
Plugins/Gateway/Interfaces

GatewayPluginOptions

Extended by

Properties

PropertyTypeDescription
eventFilter?(event) => booleanThis is a custom function you can provide that will filter events. If this function is present, the plugin will only process events that return true.
intentsnumberThe intents to use for the client
reconnect?objectThe reconnect options
reconnect.baseDelay?numberThe base delay between reconnect attempts
reconnect.maxAttempts?numberThe maximum number of reconnect attempts
reconnect.maxDelay?numberThe maximum delay between reconnect attempts after it scales exponentially
shard?[number, number]The shard to connect to [shard_id, num_shards]
url?stringThe URL of the gateway to connect to

On this page