@discordjs/core 0.6.0-dev.1682597051-2e09cb4.0 → 0.6.0-dev.1682640585-78fe247.0

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
@@ -39,14 +39,15 @@ import { GatewayDispatchEvents, GatewayIntentBits, InteractionType, MessageFlags
39
39
 
40
40
  // Create REST and WebSocket managers directly
41
41
  const rest = new REST({ version: '10' }).setToken(token);
42
- const ws = new WebSocketManager({
42
+
43
+ const gateway = new WebSocketManager({
43
44
  token,
44
45
  intents: GatewayIntentBits.GuildMessages | GatewayIntentBits.MessageContent,
45
46
  rest,
46
47
  });
47
48
 
48
49
  // Create a client to emit relevant events.
49
- const client = new Client({ rest, ws });
50
+ const client = new Client({ rest, gateway });
50
51
 
51
52
  // Listen for interactions
52
53
  // Each event contains an `api` prop along with the event data that allows you to interface with the Discord REST API
@@ -62,7 +63,7 @@ client.on(GatewayDispatchEvents.InteractionCreate, async ({ data: interaction, a
62
63
  client.once(GatewayDispatchEvents.Ready, () => console.log('Ready!'));
63
64
 
64
65
  // Start the WebSocket connection.
65
- ws.connect();
66
+ gateway.connect();
66
67
  ```
67
68
 
68
69
  ## Independent REST API Usage
package/dist/http-only.js CHANGED
@@ -2328,7 +2328,7 @@ __name(withFiles, "withFiles");
2328
2328
 
2329
2329
  // src/http-only/index.ts
2330
2330
  __reExport(http_only_exports, require("discord-api-types/v10"), module.exports);
2331
- var version = "0.6.0-dev.1682597051-2e09cb4.0";
2331
+ var version = "0.6.0-dev.1682640585-78fe247.0";
2332
2332
  // Annotate the CommonJS export names for ESM import in node:
2333
2333
  0 && (module.exports = {
2334
2334
  API,