oceanic.js 1.0.0-dev.5de1d4e → 1.0.0-dev.65b4872
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/.github/workflows/docs.yml +2 -6
- package/README.md +4 -2
- package/dist/lib/Client.d.ts +21 -10
- package/dist/lib/Client.js +58 -24
- package/dist/lib/Constants.js +2 -1
- package/dist/lib/gateway/GatewayError.d.ts +1 -0
- package/dist/lib/gateway/GatewayError.js +2 -1
- package/dist/lib/gateway/Shard.d.ts +1 -1
- package/dist/lib/gateway/Shard.js +44 -57
- package/dist/lib/gateway/ShardManager.d.ts +1 -0
- package/dist/lib/gateway/ShardManager.js +2 -1
- package/dist/lib/rest/Bucket.d.ts +1 -0
- package/dist/lib/rest/Bucket.js +2 -1
- package/dist/lib/rest/DiscordHTTPError.d.ts +1 -0
- package/dist/lib/rest/DiscordHTTPError.js +1 -1
- package/dist/lib/rest/DiscordRESTError.d.ts +1 -0
- package/dist/lib/rest/DiscordRESTError.js +1 -1
- package/dist/lib/rest/RESTManager.d.ts +2 -2
- package/dist/lib/rest/RESTManager.js +4 -3
- package/dist/lib/rest/RequestHandler.d.ts +1 -0
- package/dist/lib/rest/RequestHandler.js +2 -1
- package/dist/lib/rest/SequentialBucket.d.ts +1 -0
- package/dist/lib/rest/SequentialBucket.js +2 -1
- package/dist/lib/routes/ApplicationCommands.js +2 -1
- package/dist/lib/routes/Channels.d.ts +1 -0
- package/dist/lib/routes/Channels.js +8 -8
- package/dist/lib/routes/Guilds.d.ts +2 -1
- package/dist/lib/routes/Guilds.js +18 -20
- package/dist/lib/routes/Interactions.d.ts +1 -0
- package/dist/lib/routes/Interactions.js +1 -1
- package/dist/lib/routes/OAuth.d.ts +1 -0
- package/dist/lib/routes/OAuth.js +1 -1
- package/dist/lib/routes/Users.d.ts +1 -0
- package/dist/lib/routes/Users.js +1 -1
- package/dist/lib/routes/Webhooks.d.ts +1 -0
- package/dist/lib/routes/Webhooks.js +1 -1
- package/dist/lib/structures/AnnouncementChannel.d.ts +1 -0
- package/dist/lib/structures/AnnouncementChannel.js +2 -1
- package/dist/lib/structures/AnnouncementThreadChannel.d.ts +1 -0
- package/dist/lib/structures/AnnouncementThreadChannel.js +2 -1
- package/dist/lib/structures/Application.d.ts +1 -0
- package/dist/lib/structures/Application.js +1 -1
- package/dist/lib/structures/ApplicationCommand.d.ts +1 -0
- package/dist/lib/structures/ApplicationCommand.js +2 -1
- package/dist/lib/structures/Attachment.d.ts +1 -0
- package/dist/lib/structures/Attachment.js +2 -1
- package/dist/lib/structures/AuditLogEntry.d.ts +1 -0
- package/dist/lib/structures/AuditLogEntry.js +2 -1
- package/dist/lib/structures/AutoModerationRule.d.ts +1 -0
- package/dist/lib/structures/AutoModerationRule.js +3 -2
- package/dist/lib/structures/AutocompleteInteraction.d.ts +6 -0
- package/dist/lib/structures/AutocompleteInteraction.js +12 -2
- package/dist/lib/structures/Base.d.ts +1 -0
- package/dist/lib/structures/Base.js +1 -1
- package/dist/lib/structures/CategoryChannel.d.ts +1 -0
- package/dist/lib/structures/CategoryChannel.js +3 -2
- package/dist/lib/structures/Channel.d.ts +1 -0
- package/dist/lib/structures/Channel.js +2 -1
- package/dist/lib/structures/ClientApplication.d.ts +1 -0
- package/dist/lib/structures/ClientApplication.js +2 -1
- package/dist/lib/structures/CommandInteraction.d.ts +6 -0
- package/dist/lib/structures/CommandInteraction.js +12 -2
- package/dist/lib/structures/ComponentInteraction.d.ts +6 -0
- package/dist/lib/structures/ComponentInteraction.js +12 -2
- package/dist/lib/structures/ExtendedUser.d.ts +1 -0
- package/dist/lib/structures/ExtendedUser.js +2 -1
- package/dist/lib/structures/ForumChannel.d.ts +1 -0
- package/dist/lib/structures/ForumChannel.js +3 -2
- package/dist/lib/structures/GroupChannel.d.ts +1 -0
- package/dist/lib/structures/GroupChannel.js +2 -1
- package/dist/lib/structures/Guild.d.ts +14 -2
- package/dist/lib/structures/Guild.js +53 -7
- package/dist/lib/structures/GuildChannel.d.ts +1 -0
- package/dist/lib/structures/GuildChannel.js +3 -2
- package/dist/lib/structures/GuildPreview.d.ts +1 -0
- package/dist/lib/structures/GuildPreview.js +2 -1
- package/dist/lib/structures/GuildScheduledEvent.d.ts +1 -0
- package/dist/lib/structures/GuildScheduledEvent.js +3 -2
- package/dist/lib/structures/GuildTemplate.d.ts +1 -0
- package/dist/lib/structures/GuildTemplate.js +2 -2
- package/dist/lib/structures/Integration.d.ts +1 -0
- package/dist/lib/structures/Integration.js +2 -1
- package/dist/lib/structures/Interaction.d.ts +1 -0
- package/dist/lib/structures/Interaction.js +2 -1
- package/dist/lib/structures/Invite.js +2 -1
- package/dist/lib/structures/Member.d.ts +2 -1
- package/dist/lib/structures/Member.js +6 -4
- package/dist/lib/structures/Message.d.ts +7 -0
- package/dist/lib/structures/Message.js +13 -7
- package/dist/lib/structures/ModalSubmitInteraction.d.ts +6 -0
- package/dist/lib/structures/ModalSubmitInteraction.js +12 -2
- package/dist/lib/structures/PartialApplication.d.ts +1 -0
- package/dist/lib/structures/PartialApplication.js +2 -1
- package/dist/lib/structures/Permission.d.ts +2 -1
- package/dist/lib/structures/Permission.js +7 -2
- package/dist/lib/structures/PermissionOverwrite.d.ts +2 -1
- package/dist/lib/structures/PermissionOverwrite.js +2 -1
- package/dist/lib/structures/PingInteraction.d.ts +1 -0
- package/dist/lib/structures/PingInteraction.js +2 -1
- package/dist/lib/structures/PrivateChannel.d.ts +1 -0
- package/dist/lib/structures/PrivateChannel.js +2 -1
- package/dist/lib/structures/PrivateThreadChannel.d.ts +1 -0
- package/dist/lib/structures/PrivateThreadChannel.js +2 -1
- package/dist/lib/structures/PublicThreadChannel.d.ts +1 -0
- package/dist/lib/structures/PublicThreadChannel.js +2 -1
- package/dist/lib/structures/Role.d.ts +1 -0
- package/dist/lib/structures/Role.js +3 -2
- package/dist/lib/structures/StageChannel.d.ts +6 -2
- package/dist/lib/structures/StageChannel.js +19 -4
- package/dist/lib/structures/StageInstance.d.ts +1 -0
- package/dist/lib/structures/StageInstance.js +3 -2
- package/dist/lib/structures/Team.d.ts +1 -0
- package/dist/lib/structures/Team.js +2 -1
- package/dist/lib/structures/TextChannel.d.ts +1 -0
- package/dist/lib/structures/TextChannel.js +2 -1
- package/dist/lib/structures/TextableChannel.d.ts +1 -0
- package/dist/lib/structures/TextableChannel.js +3 -2
- package/dist/lib/structures/ThreadChannel.d.ts +1 -0
- package/dist/lib/structures/ThreadChannel.js +3 -2
- package/dist/lib/structures/UnavailableGuild.d.ts +1 -0
- package/dist/lib/structures/UnavailableGuild.js +2 -1
- package/dist/lib/structures/User.d.ts +1 -0
- package/dist/lib/structures/User.js +2 -1
- package/dist/lib/structures/VoiceChannel.d.ts +7 -3
- package/dist/lib/structures/VoiceChannel.js +19 -4
- package/dist/lib/structures/VoiceState.d.ts +1 -0
- package/dist/lib/structures/VoiceState.js +2 -1
- package/dist/lib/structures/Webhook.d.ts +1 -0
- package/dist/lib/structures/Webhook.js +2 -1
- package/dist/lib/types/application-commands.d.ts +1 -0
- package/dist/lib/types/audit-log.d.ts +1 -0
- package/dist/lib/types/auto-moderation.d.ts +1 -0
- package/dist/lib/types/channels.d.ts +2 -0
- package/dist/lib/types/client.d.ts +1 -7
- package/dist/lib/types/events.d.ts +1 -3
- package/dist/lib/types/gateway-raw.d.ts +1 -0
- package/dist/lib/types/gateway.d.ts +1 -0
- package/dist/lib/types/guild-template.d.ts +1 -0
- package/dist/lib/types/guilds.d.ts +1 -0
- package/dist/lib/types/index.d.ts +1 -0
- package/dist/lib/types/interactions.d.ts +1 -0
- package/dist/lib/types/json.d.ts +1 -0
- package/dist/lib/types/oauth.d.ts +1 -0
- package/dist/lib/types/request-handler.d.ts +1 -0
- package/dist/lib/types/scheduled-events.d.ts +1 -0
- package/dist/lib/types/shared.d.ts +2 -2
- package/dist/lib/types/stage-instances.d.ts +1 -0
- package/dist/lib/types/users.d.ts +1 -0
- package/dist/lib/types/voice.d.ts +20 -0
- package/dist/lib/types/webhooks.d.ts +1 -0
- package/dist/lib/util/Collection.d.ts +1 -0
- package/dist/lib/util/Collection.js +2 -1
- package/dist/lib/util/InteractionOptionsWrapper.js +2 -1
- package/dist/lib/util/Properties.d.ts +1 -0
- package/dist/lib/util/Properties.js +2 -1
- package/dist/lib/util/Routes.d.ts +1 -0
- package/dist/lib/util/Routes.js +2 -1
- package/dist/lib/util/TypedCollection.d.ts +1 -0
- package/dist/lib/util/TypedCollection.js +2 -1
- package/dist/lib/util/TypedEmitter.d.ts +1 -0
- package/dist/lib/util/TypedEmitter.js +2 -1
- package/dist/lib/util/Util.d.ts +4 -2
- package/dist/lib/util/Util.js +28 -2
- package/dist/package.json +6 -2
- package/examples/applicationCommand.js +11 -11
- package/examples/audio.mp3 +0 -0
- package/examples/components.js +11 -11
- package/examples/embeds.js +17 -16
- package/examples/intents.js +7 -8
- package/examples/voice.js +48 -0
- package/package.json +6 -2
- package/dist/lib/voice/VoiceConnection.d.ts +0 -7
- package/dist/lib/voice/VoiceConnection.js +0 -16
- package/dist/lib/voice/VoiceConnectionManager.d.ts +0 -7
- package/dist/lib/voice/VoiceConnectionManager.js +0 -15
package/examples/embeds.js
CHANGED
|
@@ -10,26 +10,27 @@ const client = new Client({
|
|
|
10
10
|
|
|
11
11
|
client.on("ready", () => console.log("Ready as", client.user.tag));
|
|
12
12
|
|
|
13
|
-
client.on("messageCreate", async(msg) => {
|
|
13
|
+
client.on("messageCreate", async (msg) => {
|
|
14
14
|
if(msg.content.includes("!embed")) {
|
|
15
15
|
await client.rest.channels.createMessage(msg.channel.id, {
|
|
16
16
|
// https://oceanic.owo-whats-this.dev/interfaces/types_channels.EmbedOptions.html
|
|
17
|
-
//
|
|
17
|
+
// Up to 10 in one message
|
|
18
18
|
embeds: [
|
|
19
19
|
{
|
|
20
20
|
// https://oceanic.owo-whats-this.dev/interfaces/types_channels.EmbedAuthorOptions.html
|
|
21
21
|
author: {
|
|
22
22
|
name: "Author Name",
|
|
23
|
-
//
|
|
24
|
-
|
|
25
|
-
url: "https://oceanic.owo-whats-this.dev" //
|
|
23
|
+
// An image url, or attachment://filename.ext
|
|
24
|
+
iconURL: "https://i.furry.cool/DonPride.png", // Optional
|
|
25
|
+
url: "https://oceanic.owo-whats-this.dev" // Optional
|
|
26
26
|
},
|
|
27
|
-
//
|
|
27
|
+
// Array of https://oceanic.owo-whats-this.dev/interfaces/types_channels.EmbedField.html
|
|
28
|
+
// Up to 25 in one message
|
|
28
29
|
fields: [
|
|
29
30
|
{
|
|
30
31
|
name: "Field One",
|
|
31
32
|
value: "Field One Value",
|
|
32
|
-
inline: true //
|
|
33
|
+
inline: true // If this field should be displayed inline (default: to false)
|
|
33
34
|
},
|
|
34
35
|
{
|
|
35
36
|
name: "Field Two",
|
|
@@ -40,23 +41,23 @@ client.on("messageCreate", async(msg) => {
|
|
|
40
41
|
// https://oceanic.owo-whats-this.dev/interfaces/types_channels.EmbedFooterOptions.html
|
|
41
42
|
footer: {
|
|
42
43
|
text: "Footer Text",
|
|
43
|
-
//
|
|
44
|
-
|
|
44
|
+
// An image url, or attachment://filename.ext
|
|
45
|
+
iconURL: "https://i.furry.cool/DonPride.png" // Optional
|
|
45
46
|
},
|
|
46
47
|
// https://oceanic.owo-whats-this.dev/interfaces/types_channels.EmbedImageOptions.html
|
|
47
48
|
image: {
|
|
48
|
-
//
|
|
49
|
+
// An image url, or attachment://filename.ext
|
|
49
50
|
url: "https://i.furry.cool/DonPride.png"
|
|
50
51
|
},
|
|
51
52
|
// https://oceanic.owo-whats-this.dev/interfaces/types_channels.EmbedThumbnailOptions.html
|
|
52
53
|
thumbnail: {
|
|
53
|
-
//
|
|
54
|
+
// An image url, or attachment://filename.ext
|
|
54
55
|
url: "https://i.furry.cool/DonPride.png"
|
|
55
56
|
},
|
|
56
57
|
// https://oceanic.owo-whats-this.dev/interfaces/types_channels.EmbedOptions.html
|
|
57
|
-
color: 0xFFA500, //
|
|
58
|
+
color: 0xFFA500, // Base-10 color (0x prefix can be used for hex codes)
|
|
58
59
|
description: "My Cool Embed",
|
|
59
|
-
timestamp: new Date().toISOString(), //
|
|
60
|
+
timestamp: new Date().toISOString(), // The current time - ISO 8601 format
|
|
60
61
|
title: "My Amazing Embed",
|
|
61
62
|
url: "https://oceanic.owo-whats-this.dev"
|
|
62
63
|
}
|
|
@@ -67,7 +68,7 @@ client.on("messageCreate", async(msg) => {
|
|
|
67
68
|
embeds: [
|
|
68
69
|
{
|
|
69
70
|
image: {
|
|
70
|
-
//
|
|
71
|
+
// This can also be used for author & footer images
|
|
71
72
|
url: "attachment://image.png"
|
|
72
73
|
}
|
|
73
74
|
}
|
|
@@ -82,10 +83,10 @@ client.on("messageCreate", async(msg) => {
|
|
|
82
83
|
}
|
|
83
84
|
});
|
|
84
85
|
|
|
85
|
-
//
|
|
86
|
+
// An error handler
|
|
86
87
|
client.on("error", (error) => {
|
|
87
88
|
console.error("Something went wrong:", error);
|
|
88
89
|
});
|
|
89
90
|
|
|
90
|
-
//
|
|
91
|
+
// Connect to Discord
|
|
91
92
|
client.connect();
|
package/examples/intents.js
CHANGED
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
const { Client } = require("oceanic.js");
|
|
2
|
-
const fs = require("fs");
|
|
3
2
|
|
|
4
3
|
const client = new Client({
|
|
5
4
|
auth: "Bot [TOKEN]",
|
|
6
5
|
gateway: {
|
|
7
|
-
//
|
|
8
|
-
//
|
|
9
|
-
//
|
|
6
|
+
// List of intents: https://discord.com/developers/docs/topics/gateway#list-of-intents
|
|
7
|
+
// They change what events our client receives to lower the amount of computer power needed to run it
|
|
8
|
+
// Most events also list if they require an intent: https://oceanic.owo-whats-this.dev/dev/interfaces/types_events.ClientEvents.html
|
|
10
9
|
intents: ["GUILDS", "GUILD_MESSAGES", "MESSAGE_CONTENT"]
|
|
11
|
-
//
|
|
10
|
+
// If you do not have the MESSAGE_CONTENT intent, various fields like `content`, `components`, `embeds` and more will be empty unless the message belongs to or mentions your client
|
|
12
11
|
}
|
|
13
12
|
});
|
|
14
13
|
|
|
15
14
|
client.on("ready", () => console.log("Ready as", client.user.tag));
|
|
16
15
|
|
|
17
|
-
//
|
|
16
|
+
// An error handler
|
|
18
17
|
client.on("error", (error) => {
|
|
19
18
|
console.error("Something went wrong:", error);
|
|
20
19
|
});
|
|
@@ -34,8 +33,8 @@ bot.on("messageCreate", (msg) => {
|
|
|
34
33
|
// This event will never be seen as neither `GUILD_MESSAGE_TYPING` or `DIRECT_MESSAGE_TYPING` were included in the intents
|
|
35
34
|
// https://oceanic.owo-whats-this.dev/dev/interfaces/types_events.ClientEvents.html#typingStart
|
|
36
35
|
bot.on("typingStart", (channel, user) => { // When a user starts typing
|
|
37
|
-
console.log(`${user.
|
|
36
|
+
console.log(`${user.id} is typing in ${channel.id}`); // User or channel are not necessarily complete (Uncached) to retrieve names
|
|
38
37
|
});
|
|
39
38
|
|
|
40
|
-
//
|
|
39
|
+
// Connect to Discord
|
|
41
40
|
client.connect();
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
const { Client } = require("oceanic.js");
|
|
2
|
+
const { VoiceConnectionStatus, AudioPlayerStatus, createAudioPlayer, createAudioResource } = require("@discordjs/voice");
|
|
3
|
+
const path = require("path");
|
|
4
|
+
|
|
5
|
+
const client = new Client({
|
|
6
|
+
auth: "Bot [TOKEN]",
|
|
7
|
+
gateway: {
|
|
8
|
+
intents: ["GUILDS", "GUILD_VOICE_STATES"] // Voice connections require the GUILDS intent; We specify the GUILD_VOICE_STATES intent to reconnect to the voice channel in case we get disconnected
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
client.on("ready", () => {
|
|
13
|
+
console.log("Ready as", client.user.tag);
|
|
14
|
+
|
|
15
|
+
const guild = client.guilds.get("1005489770278953112"); // We need the guild to get the voiceAdapterCreator
|
|
16
|
+
|
|
17
|
+
const voiceConnection = client.joinVoiceChannel({
|
|
18
|
+
channelID: "1005489770849382443", // The ID of the channel to connect to
|
|
19
|
+
guildID: "1005489770278953112", // The ID of the guild the channel belongs to
|
|
20
|
+
selfDeaf: true, // Whether our client joins defeaned
|
|
21
|
+
selfMute: false, // Whether our client joins muted
|
|
22
|
+
voiceAdapterCreator: guild.voiceAdapterCreator // The voiceAdapterCreator the guild provides
|
|
23
|
+
})
|
|
24
|
+
voiceConnection.on(VoiceConnectionStatus.Disconnected, () => {
|
|
25
|
+
voiceConnection.rejoin(); // In case we get disconnected, rejoin
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
const player = createAudioPlayer(); // Create the player we will use to play audio
|
|
29
|
+
voiceConnection.subscribe(player); // Subscribe the player to the voice connection to the channel we have
|
|
30
|
+
|
|
31
|
+
player.on(AudioPlayerStatus.Playing, () => {
|
|
32
|
+
console.log("Audio started playing");
|
|
33
|
+
});
|
|
34
|
+
player.on(AudioPlayerStatus.Idle, () => {
|
|
35
|
+
console.log("The player is not playing any audio");
|
|
36
|
+
})
|
|
37
|
+
|
|
38
|
+
const audio = createAudioResource(path.join(__dirname, "audio.mp3")); // Create the audio resource from the mp3 we have to play through the player
|
|
39
|
+
player.play(audio); // Play the audio
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
// An error handler
|
|
43
|
+
client.on("error", (error) => {
|
|
44
|
+
console.error("Something went wrong:", error);
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
// Connect to Discord
|
|
48
|
+
client.connect();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oceanic.js",
|
|
3
|
-
"version": "1.0.0-dev.
|
|
3
|
+
"version": "1.0.0-dev.65b4872",
|
|
4
4
|
"description": "A NodeJS library for interfacing with Discord.",
|
|
5
5
|
"main": "./dist/lib/index.js",
|
|
6
6
|
"types": "./dist/lib/index.d.ts",
|
|
@@ -15,7 +15,8 @@
|
|
|
15
15
|
"scripts": {
|
|
16
16
|
"lint": "eslint lib --ext .ts",
|
|
17
17
|
"lint:fix": "eslint lib --ext .ts --fix",
|
|
18
|
-
"prepublishOnly": "node build"
|
|
18
|
+
"prepublishOnly": "node build",
|
|
19
|
+
"test:docs": "npm i --no-save --ignore-scripts typedoc typedoc-plugin-extras typedoc-plugin-rename-defaults && node doc-test.js && npx --yes typedoc"
|
|
19
20
|
},
|
|
20
21
|
"repository": {
|
|
21
22
|
"type": "git",
|
|
@@ -58,5 +59,8 @@
|
|
|
58
59
|
},
|
|
59
60
|
"engines": {
|
|
60
61
|
"node": ">=16.16.0"
|
|
62
|
+
},
|
|
63
|
+
"optionalDependencies": {
|
|
64
|
+
"@discordjs/voice": "^0.11.0"
|
|
61
65
|
}
|
|
62
66
|
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { VoiceEvents } from "../types/events";
|
|
2
|
-
import TypedEmitter from "../util/TypedEmitter";
|
|
3
|
-
/** Represents a voice connection. See {@link types/events~VoiceEvents | Voice Events} for a list of events. */
|
|
4
|
-
export default class VoiceConnection extends TypedEmitter<VoiceEvents> {
|
|
5
|
-
id: string;
|
|
6
|
-
constructor(id: string);
|
|
7
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const TypedEmitter_1 = __importDefault(require("../util/TypedEmitter"));
|
|
7
|
-
/** Represents a voice connection. See {@link types/events~VoiceEvents | Voice Events} for a list of events. */
|
|
8
|
-
class VoiceConnection extends TypedEmitter_1.default {
|
|
9
|
-
id;
|
|
10
|
-
constructor(id) {
|
|
11
|
-
super();
|
|
12
|
-
this.id = id;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
exports.default = VoiceConnection;
|
|
16
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiVm9pY2VDb25uZWN0aW9uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vbGliL3ZvaWNlL1ZvaWNlQ29ubmVjdGlvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUNBLHdFQUFnRDtBQUVoRCwrR0FBK0c7QUFDL0csTUFBcUIsZUFBZ0IsU0FBUSxzQkFBeUI7SUFDbEUsRUFBRSxDQUFTO0lBQ1gsWUFBWSxFQUFVO1FBQ2xCLEtBQUssRUFBRSxDQUFDO1FBQ1IsSUFBSSxDQUFDLEVBQUUsR0FBRyxFQUFFLENBQUM7SUFDakIsQ0FBQztDQUNKO0FBTkQsa0NBTUMifQ==
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type VoiceConnection from "./VoiceConnection";
|
|
2
|
-
import type Client from "../Client";
|
|
3
|
-
import Collection from "../util/Collection";
|
|
4
|
-
export default class VoiceConnectionManager extends Collection<string, VoiceConnection> {
|
|
5
|
-
#private;
|
|
6
|
-
constructor(client: Client);
|
|
7
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const Collection_1 = __importDefault(require("../util/Collection"));
|
|
7
|
-
class VoiceConnectionManager extends Collection_1.default {
|
|
8
|
-
#client;
|
|
9
|
-
constructor(client) {
|
|
10
|
-
super();
|
|
11
|
-
this.#client = client;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
exports.default = VoiceConnectionManager;
|
|
15
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiVm9pY2VDb25uZWN0aW9uTWFuYWdlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi92b2ljZS9Wb2ljZUNvbm5lY3Rpb25NYW5hZ2VyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBRUEsb0VBQTRDO0FBRTVDLE1BQXFCLHNCQUF1QixTQUFRLG9CQUFtQztJQUNuRixPQUFPLENBQVM7SUFDaEIsWUFBWSxNQUFjO1FBQ3RCLEtBQUssRUFBRSxDQUFDO1FBQ1IsSUFBSSxDQUFDLE9BQU8sR0FBRyxNQUFNLENBQUM7SUFDMUIsQ0FBQztDQUNKO0FBTkQseUNBTUMifQ==
|