message: fix: support intents in ws
diff: @@ -31,6 +31,15 @@ export async function startBot(config: BotConfig) {
  if (config.eventHandlers) eventHandlers = config.eventHandlers;
  authorization = `Bot ${config.token}`;
  ws.identifyPayload.token = `Bot ${config.token}`;
  + ws.identifyPayload.intents = config.intents.reduce(
  + (
  + bits,
  + next,
  + ) => (bits |= typeof next === "string"
  + ? DiscordGatewayIntents[next]
  + : next),
  + 0,
  + );
  // Initial API connection to get info about bots connection
  botGatewayData = await getGatewayBot();
  