@discordjs/core 3.0.0-dev.1788696123-5f6cbf111 → 3.0.0-dev.1789257813-c626815bf

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -55,7 +55,6 @@ const rest = new REST({ version: '10' }).setToken(process.env.DISCORD_TOKEN);
55
55
  const gateway = new WebSocketManager({
56
56
  token: process.env.DISCORD_TOKEN,
57
57
  intents: GatewayIntentBits.GuildMessages | GatewayIntentBits.MessageContent,
58
- fetchGatewayInformation: () => rest.get('/gateway/bot') as Promise<RESTGetAPIGatewayBotResult>,
59
58
  });
60
59
 
61
60
  // Create a client to emit relevant events.
@@ -75,7 +74,9 @@ client.on(GatewayDispatchEvents.InteractionCreate, async ({ data: interaction, a
75
74
  client.once(GatewayDispatchEvents.Ready, () => console.log('Ready!'));
76
75
 
77
76
  // Start the WebSocket connection.
78
- gateway.connect();
77
+ await gateway.connect({
78
+ gatewayInformation: (await rest.get('/gateway/bot')) as RESTGetAPIGatewayBotResult,
79
+ });
79
80
  ```
80
81
 
81
82
  ## Independent REST API Usage
package/dist/http-only.js CHANGED
@@ -3251,7 +3251,7 @@ __name(withFiles, "withFiles");
3251
3251
 
3252
3252
  // src/http-only/index.ts
3253
3253
  __reExport(http_only_exports, require("discord-api-types/v10"), module.exports);
3254
- var version = "3.0.0-dev.1788696123-5f6cbf111";
3254
+ var version = "3.0.0-dev.1789257813-c626815bf";
3255
3255
  // Annotate the CommonJS export names for ESM import in node:
3256
3256
  0 && (module.exports = {
3257
3257
  API,