fix: allow presence to be passed into createGatewayManager (#2100)

This commit is contained in:
Andreas Fink
2022-03-13 17:17:18 -04:00
committed by GitHub
parent fc779bf6d0
commit 8fb198f6d5
+1
View File
@@ -62,6 +62,7 @@ export function createGatewayManager(
? options.intents.reduce((bits, next) => (bits |= GatewayIntents[next]), 0)
: options.intents) ?? 0,
shard: options.shard ?? [0, options.shardsRecommended ?? 1],
presence: options.presence,
urlWSS: options.urlWSS ?? "wss://gateway.discord.gg/?v=9&encoding=json",
shardsRecommended: options.shardsRecommended ?? 1,
sessionStartLimitTotal: options.sessionStartLimitTotal ?? 1000,