@discordjs/core 3.0.0-dev.1788912206-a4116036b → 3.0.0-dev.1789948999-5b4ffe60f
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 +3 -2
- package/dist/http-only.js +1 -1
- package/dist/http-only.js.map +1 -1
- package/dist/http-only.mjs +1 -1
- package/dist/http-only.mjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
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.
|
|
3254
|
+
var version = "3.0.0-dev.1789948999-5b4ffe60f";
|
|
3255
3255
|
// Annotate the CommonJS export names for ESM import in node:
|
|
3256
3256
|
0 && (module.exports = {
|
|
3257
3257
|
API,
|