disgroove 1.3.1-dev.f29c081 → 1.3.1
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/LICENSE +5 -18
- package/dist/package.json +30 -0
- package/package.json +30 -30
- package/dist/Client.d.ts +0 -229
- package/dist/Client.js +0 -256
- package/dist/Client.js.map +0 -1
- package/dist/constants.d.ts +0 -1083
- package/dist/constants.js +0 -1162
- package/dist/constants.js.map +0 -1
- package/dist/gateway/Shard.d.ts +0 -25
- package/dist/gateway/Shard.js +0 -557
- package/dist/gateway/Shard.js.map +0 -1
- package/dist/gateway/ShardsManager.d.ts +0 -5
- package/dist/gateway/ShardsManager.js +0 -13
- package/dist/gateway/ShardsManager.js.map +0 -1
- package/dist/gateway/index.d.ts +0 -2
- package/dist/gateway/index.js +0 -19
- package/dist/gateway/index.js.map +0 -1
- package/dist/index.d.ts +0 -7
- package/dist/index.js +0 -24
- package/dist/index.js.map +0 -1
- package/dist/rest/CDN.d.ts +0 -21
- package/dist/rest/CDN.js +0 -46
- package/dist/rest/CDN.js.map +0 -1
- package/dist/rest/Endpoints.d.ts +0 -94
- package/dist/rest/Endpoints.js +0 -211
- package/dist/rest/Endpoints.js.map +0 -1
- package/dist/rest/REST.d.ts +0 -22
- package/dist/rest/REST.js +0 -35
- package/dist/rest/REST.js.map +0 -1
- package/dist/rest/RequestsManager.d.ts +0 -17
- package/dist/rest/RequestsManager.js +0 -100
- package/dist/rest/RequestsManager.js.map +0 -1
- package/dist/rest/index.d.ts +0 -4
- package/dist/rest/index.js +0 -34
- package/dist/rest/index.js.map +0 -1
- package/dist/structures/Application.d.ts +0 -348
- package/dist/structures/Application.js +0 -328
- package/dist/structures/Application.js.map +0 -1
- package/dist/structures/ApplicationCommand.d.ts +0 -74
- package/dist/structures/ApplicationCommand.js +0 -127
- package/dist/structures/ApplicationCommand.js.map +0 -1
- package/dist/structures/AuditLog.d.ts +0 -20
- package/dist/structures/AuditLog.js +0 -76
- package/dist/structures/AuditLog.js.map +0 -1
- package/dist/structures/AutoModerationRule.d.ts +0 -34
- package/dist/structures/AutoModerationRule.js +0 -96
- package/dist/structures/AutoModerationRule.js.map +0 -1
- package/dist/structures/Base.d.ts +0 -17
- package/dist/structures/Base.js +0 -31
- package/dist/structures/Base.js.map +0 -1
- package/dist/structures/Channel.d.ts +0 -252
- package/dist/structures/Channel.js +0 -590
- package/dist/structures/Channel.js.map +0 -1
- package/dist/structures/ClientApplication.d.ts +0 -324
- package/dist/structures/ClientApplication.js +0 -241
- package/dist/structures/ClientApplication.js.map +0 -1
- package/dist/structures/Emoji.d.ts +0 -28
- package/dist/structures/Emoji.js +0 -79
- package/dist/structures/Emoji.js.map +0 -1
- package/dist/structures/Entitlement.d.ts +0 -24
- package/dist/structures/Entitlement.js +0 -68
- package/dist/structures/Entitlement.js.map +0 -1
- package/dist/structures/Guild.d.ts +0 -549
- package/dist/structures/Guild.js +0 -1121
- package/dist/structures/Guild.js.map +0 -1
- package/dist/structures/GuildMember.d.ts +0 -50
- package/dist/structures/GuildMember.js +0 -149
- package/dist/structures/GuildMember.js.map +0 -1
- package/dist/structures/GuildScheduledEvent.d.ts +0 -49
- package/dist/structures/GuildScheduledEvent.js +0 -118
- package/dist/structures/GuildScheduledEvent.js.map +0 -1
- package/dist/structures/GuildTemplate.d.ts +0 -32
- package/dist/structures/GuildTemplate.js +0 -76
- package/dist/structures/GuildTemplate.js.map +0 -1
- package/dist/structures/Integration.d.ts +0 -30
- package/dist/structures/Integration.js +0 -102
- package/dist/structures/Integration.js.map +0 -1
- package/dist/structures/Interaction.d.ts +0 -76
- package/dist/structures/Interaction.js +0 -345
- package/dist/structures/Interaction.js.map +0 -1
- package/dist/structures/Invite.d.ts +0 -28
- package/dist/structures/Invite.js +0 -86
- package/dist/structures/Invite.js.map +0 -1
- package/dist/structures/Message.d.ts +0 -84
- package/dist/structures/Message.js +0 -300
- package/dist/structures/Message.js.map +0 -1
- package/dist/structures/PartialApplication.d.ts +0 -324
- package/dist/structures/PartialApplication.js +0 -241
- package/dist/structures/PartialApplication.js.map +0 -1
- package/dist/structures/Role.d.ts +0 -37
- package/dist/structures/Role.js +0 -90
- package/dist/structures/Role.js.map +0 -1
- package/dist/structures/SKU.d.ts +0 -23
- package/dist/structures/SKU.js +0 -63
- package/dist/structures/SKU.js.map +0 -1
- package/dist/structures/StageInstance.d.ts +0 -24
- package/dist/structures/StageInstance.js +0 -57
- package/dist/structures/StageInstance.js.map +0 -1
- package/dist/structures/Sticker.d.ts +0 -31
- package/dist/structures/Sticker.js +0 -86
- package/dist/structures/Sticker.js.map +0 -1
- package/dist/structures/Team.d.ts +0 -14
- package/dist/structures/Team.js +0 -39
- package/dist/structures/Team.js.map +0 -1
- package/dist/structures/TestEntitlement.d.ts +0 -23
- package/dist/structures/TestEntitlement.js +0 -61
- package/dist/structures/TestEntitlement.js.map +0 -1
- package/dist/structures/UnavailableGuild.d.ts +0 -11
- package/dist/structures/UnavailableGuild.js +0 -25
- package/dist/structures/UnavailableGuild.js.map +0 -1
- package/dist/structures/User.d.ts +0 -63
- package/dist/structures/User.js +0 -177
- package/dist/structures/User.js.map +0 -1
- package/dist/structures/VoiceState.d.ts +0 -26
- package/dist/structures/VoiceState.js +0 -70
- package/dist/structures/VoiceState.js.map +0 -1
- package/dist/structures/Webhook.d.ts +0 -84
- package/dist/structures/Webhook.js +0 -239
- package/dist/structures/Webhook.js.map +0 -1
- package/dist/structures/index.d.ts +0 -27
- package/dist/structures/index.js +0 -44
- package/dist/structures/index.js.map +0 -1
- package/dist/types/application-command.d.ts +0 -102
- package/dist/types/application-command.js +0 -3
- package/dist/types/application-command.js.map +0 -1
- package/dist/types/application-role-connection-metadata.d.ts +0 -18
- package/dist/types/application-role-connection-metadata.js +0 -3
- package/dist/types/application-role-connection-metadata.js.map +0 -1
- package/dist/types/application.d.ts +0 -66
- package/dist/types/application.js +0 -3
- package/dist/types/application.js.map +0 -1
- package/dist/types/audit-log.d.ts +0 -82
- package/dist/types/audit-log.js +0 -3
- package/dist/types/audit-log.js.map +0 -1
- package/dist/types/auto-moderation.d.ts +0 -65
- package/dist/types/auto-moderation.js +0 -3
- package/dist/types/auto-moderation.js.map +0 -1
- package/dist/types/channel.d.ts +0 -456
- package/dist/types/channel.js +0 -3
- package/dist/types/channel.js.map +0 -1
- package/dist/types/emoji.d.ts +0 -22
- package/dist/types/emoji.js +0 -3
- package/dist/types/emoji.js.map +0 -1
- package/dist/types/entitlements.d.ts +0 -32
- package/dist/types/entitlements.js +0 -3
- package/dist/types/entitlements.js.map +0 -1
- package/dist/types/gateway-events.d.ts +0 -805
- package/dist/types/gateway-events.js +0 -3
- package/dist/types/gateway-events.js.map +0 -1
- package/dist/types/guild-scheduled-event.d.ts +0 -57
- package/dist/types/guild-scheduled-event.js +0 -3
- package/dist/types/guild-scheduled-event.js.map +0 -1
- package/dist/types/guild-template.d.ts +0 -28
- package/dist/types/guild-template.js +0 -3
- package/dist/types/guild-template.js.map +0 -1
- package/dist/types/guild.d.ts +0 -333
- package/dist/types/guild.js +0 -3
- package/dist/types/guild.js.map +0 -1
- package/dist/types/index.d.ts +0 -23
- package/dist/types/index.js +0 -40
- package/dist/types/index.js.map +0 -1
- package/dist/types/interaction.d.ts +0 -170
- package/dist/types/interaction.js +0 -3
- package/dist/types/interaction.js.map +0 -1
- package/dist/types/invite.d.ts +0 -59
- package/dist/types/invite.js +0 -3
- package/dist/types/invite.js.map +0 -1
- package/dist/types/message-components.d.ts +0 -100
- package/dist/types/message-components.js +0 -3
- package/dist/types/message-components.js.map +0 -1
- package/dist/types/role.d.ts +0 -47
- package/dist/types/role.js +0 -3
- package/dist/types/role.js.map +0 -1
- package/dist/types/sku.d.ts +0 -30
- package/dist/types/sku.js +0 -3
- package/dist/types/sku.js.map +0 -1
- package/dist/types/stage-instance.d.ts +0 -20
- package/dist/types/stage-instance.js +0 -3
- package/dist/types/stage-instance.js.map +0 -1
- package/dist/types/sticker.d.ts +0 -61
- package/dist/types/sticker.js +0 -3
- package/dist/types/sticker.js.map +0 -1
- package/dist/types/team.d.ts +0 -30
- package/dist/types/team.js +0 -3
- package/dist/types/team.js.map +0 -1
- package/dist/types/user.d.ts +0 -77
- package/dist/types/user.js +0 -3
- package/dist/types/user.js.map +0 -1
- package/dist/types/voice.d.ts +0 -47
- package/dist/types/voice.js +0 -3
- package/dist/types/voice.js.map +0 -1
- package/dist/types/webhook.d.ts +0 -31
- package/dist/types/webhook.js +0 -3
- package/dist/types/webhook.js.map +0 -1
- package/dist/utils/Collection.d.ts +0 -24
- package/dist/utils/Collection.js +0 -64
- package/dist/utils/Collection.js.map +0 -1
- package/dist/utils/Util.d.ts +0 -13
- package/dist/utils/Util.js +0 -513
- package/dist/utils/Util.js.map +0 -1
- package/dist/utils/errors.d.ts +0 -12
- package/dist/utils/errors.js +0 -25
- package/dist/utils/errors.js.map +0 -1
- package/dist/utils/index.d.ts +0 -2
- package/dist/utils/index.js +0 -19
- package/dist/utils/index.js.map +0 -1
package/dist/types/voice.d.ts
DELETED
@@ -1,47 +0,0 @@
|
|
1
|
-
import type { JSONGuildMember, RawGuildMember } from ".";
|
2
|
-
/** https://discord.com/developers/docs/resources/voice#voice-state-object-voice-state-structure */
|
3
|
-
export interface RawVoiceState {
|
4
|
-
guild_id?: string;
|
5
|
-
channel_id: string | null;
|
6
|
-
user_id: string;
|
7
|
-
member?: RawGuildMember;
|
8
|
-
session_id: string;
|
9
|
-
deaf: boolean;
|
10
|
-
mute: boolean;
|
11
|
-
self_deaf: boolean;
|
12
|
-
self_mute: boolean;
|
13
|
-
self_stream?: boolean;
|
14
|
-
self_video: boolean;
|
15
|
-
suppress: boolean;
|
16
|
-
request_to_speak_timestamp: string | null;
|
17
|
-
}
|
18
|
-
/** https://discord.com/developers/docs/resources/voice#voice-region-object-voice-region-structure */
|
19
|
-
export interface RawVoiceRegion {
|
20
|
-
id: string;
|
21
|
-
name: string;
|
22
|
-
optimal: boolean;
|
23
|
-
deprecated: boolean;
|
24
|
-
custom: boolean;
|
25
|
-
}
|
26
|
-
export interface JSONVoiceState {
|
27
|
-
guildId?: string;
|
28
|
-
channelId: string | null;
|
29
|
-
userId: string;
|
30
|
-
member?: JSONGuildMember;
|
31
|
-
sessionId: string;
|
32
|
-
deaf: boolean;
|
33
|
-
mute: boolean;
|
34
|
-
selfDeaf: boolean;
|
35
|
-
selfMute: boolean;
|
36
|
-
selfStream?: boolean;
|
37
|
-
selfVideo: boolean;
|
38
|
-
suppress: boolean;
|
39
|
-
requestToSpeakTimestamp: string | null;
|
40
|
-
}
|
41
|
-
export interface JSONVoiceRegion {
|
42
|
-
id: string;
|
43
|
-
name: string;
|
44
|
-
optimal: boolean;
|
45
|
-
deprecated: boolean;
|
46
|
-
custom: boolean;
|
47
|
-
}
|
package/dist/types/voice.js
DELETED
package/dist/types/voice.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"voice.js","sourceRoot":"","sources":["../../src/types/voice.ts"],"names":[],"mappings":""}
|
package/dist/types/webhook.d.ts
DELETED
@@ -1,31 +0,0 @@
|
|
1
|
-
import type { WebhookTypes } from "../constants";
|
2
|
-
import type { JSONChannel, JSONGuild, JSONUser, RawChannel, RawGuild, RawUser } from ".";
|
3
|
-
/** https://discord.com/developers/docs/resources/webhook#webhook-object-webhook-structure */
|
4
|
-
export interface RawWebhook {
|
5
|
-
id: string;
|
6
|
-
type: WebhookTypes;
|
7
|
-
guild_id?: string | null;
|
8
|
-
channel_id: string | null;
|
9
|
-
user?: RawUser;
|
10
|
-
name: string | null;
|
11
|
-
avatar: string | null;
|
12
|
-
token?: string;
|
13
|
-
application_id: string | null;
|
14
|
-
source_guild?: RawGuild;
|
15
|
-
source_channel?: RawChannel;
|
16
|
-
url?: string;
|
17
|
-
}
|
18
|
-
export interface JSONWebhook {
|
19
|
-
id: string;
|
20
|
-
type: WebhookTypes;
|
21
|
-
guildId?: string | null;
|
22
|
-
channelId: string | null;
|
23
|
-
user?: JSONUser;
|
24
|
-
name: string | null;
|
25
|
-
avatar: string | null;
|
26
|
-
token?: string;
|
27
|
-
applicationId: string | null;
|
28
|
-
sourceGuild?: JSONGuild;
|
29
|
-
sourceChannel?: JSONChannel;
|
30
|
-
url?: string;
|
31
|
-
}
|
package/dist/types/webhook.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"webhook.js","sourceRoot":"","sources":["../../src/types/webhook.ts"],"names":[],"mappings":""}
|
@@ -1,24 +0,0 @@
|
|
1
|
-
export declare class Collection<K, V> extends Map<K, V> {
|
2
|
-
get empty(): boolean;
|
3
|
-
every<T extends V, ThisArg = Collection<K, V>>(predicate: (value: V, index: number, array: Array<V>) => value is T, thisArg?: ThisArg): this is Array<T>;
|
4
|
-
every<ThisArg = Collection<K, V>>(predicate: (value: V, index: number, array: Array<V>) => unknown, thisArg?: ThisArg): boolean;
|
5
|
-
filter<S extends V, ThisArg = Collection<K, V>>(predicate: (this: ThisArg, value: V, index: number, array: Array<V>) => value is S, thisArg?: ThisArg): Array<S>;
|
6
|
-
filter<ThisArg = Collection<K, V>>(predicate: (this: ThisArg, value: V, index: number, array: Array<V>) => unknown, thisArg?: ThisArg): Array<V>;
|
7
|
-
find<S extends V, ThisArg = Collection<K, V>>(predicate: (this: ThisArg, value: V, index: number, obj: Array<V>) => value is S, thisArg?: ThisArg): S | undefined;
|
8
|
-
find<ThisArg = Collection<K, V>>(predicate: (this: ThisArg, value: V, index: number, obj: Array<V>) => unknown, thisArg?: ThisArg): V | undefined;
|
9
|
-
findIndex(predicate: (value: V, index: number, obj: Array<V>) => unknown, thisArg?: unknown): number;
|
10
|
-
first(): V | undefined;
|
11
|
-
first(amount: number): Array<V>;
|
12
|
-
last(): V | undefined;
|
13
|
-
last(amount: number): Array<V>;
|
14
|
-
map<T>(predicate: (value: V, index: number, obj: Array<V>) => T, thisArg?: unknown): Array<T>;
|
15
|
-
random(): V | undefined;
|
16
|
-
reduce(predicate: (previousValue: V, currentValue: V, currentIndex: number, array: Array<V>) => V): V;
|
17
|
-
reduce(predicate: (previousValue: V, currentValue: V, currentIndex: number, array: Array<V>) => V, initialValue: V): V;
|
18
|
-
reduce<T>(predicate: (previousValue: T, currentValue: V, currentIndex: number, array: Array<V>) => T, initialValue: T): T;
|
19
|
-
reduceRight(predicate: (previousValue: V, currentValue: V, currentIndex: number, array: Array<V>) => V): V;
|
20
|
-
reduceRight(predicate: (previousValue: V, currentValue: V, currentIndex: number, array: Array<V>) => V, initialValue: V): V;
|
21
|
-
reduceRight<T>(predicate: (previousValue: T, currentValue: V, currentIndex: number, array: Array<V>) => T, initialValue: T): T;
|
22
|
-
some<ThisArg = Collection<K, V>>(predicate: (value: V, index: number, array: Array<V>) => unknown, thisArg?: ThisArg): boolean;
|
23
|
-
toArray(): Array<V>;
|
24
|
-
}
|
package/dist/utils/Collection.js
DELETED
@@ -1,64 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.Collection = void 0;
|
4
|
-
class Collection extends Map {
|
5
|
-
get empty() {
|
6
|
-
return this.size === 0;
|
7
|
-
}
|
8
|
-
every(predicate, thisArg) {
|
9
|
-
return this.toArray().every(predicate, thisArg);
|
10
|
-
}
|
11
|
-
filter(predicate, thisArg) {
|
12
|
-
return this.toArray().filter(predicate, thisArg);
|
13
|
-
}
|
14
|
-
find(predicate, thisArg) {
|
15
|
-
return this.toArray().find(predicate, thisArg);
|
16
|
-
}
|
17
|
-
findIndex(predicate, thisArg) {
|
18
|
-
return this.toArray().findIndex(predicate, thisArg);
|
19
|
-
}
|
20
|
-
first(amount) {
|
21
|
-
if (amount === undefined) {
|
22
|
-
const iterable = this.values();
|
23
|
-
return iterable.next().value;
|
24
|
-
}
|
25
|
-
if (amount < 0)
|
26
|
-
return this.last(amount * -1);
|
27
|
-
amount = Math.min(amount, this.size);
|
28
|
-
const iterable = this.values();
|
29
|
-
return Array.from({ length: amount }, () => iterable.next().value);
|
30
|
-
}
|
31
|
-
last(amount) {
|
32
|
-
const iterator = Array.from(this.values());
|
33
|
-
if (amount === undefined)
|
34
|
-
return iterator.at(-1);
|
35
|
-
if (amount < 0)
|
36
|
-
return this.first(amount * -1);
|
37
|
-
if (!amount)
|
38
|
-
return [];
|
39
|
-
return iterator.slice(-amount);
|
40
|
-
}
|
41
|
-
map(predicate, thisArg) {
|
42
|
-
return this.toArray().map(predicate, thisArg);
|
43
|
-
}
|
44
|
-
random() {
|
45
|
-
if (this.empty)
|
46
|
-
return undefined;
|
47
|
-
const iterable = Array.from(this.values());
|
48
|
-
return iterable[Math.floor(Math.random() * iterable.length)];
|
49
|
-
}
|
50
|
-
reduce(predicate, initialValue) {
|
51
|
-
return this.toArray().reduce(predicate, initialValue);
|
52
|
-
}
|
53
|
-
reduceRight(predicate, initialValue) {
|
54
|
-
return this.toArray().reduceRight(predicate, initialValue);
|
55
|
-
}
|
56
|
-
some(predicate, thisArg) {
|
57
|
-
return this.toArray().some(predicate, thisArg);
|
58
|
-
}
|
59
|
-
toArray() {
|
60
|
-
return Array.from(this.values());
|
61
|
-
}
|
62
|
-
}
|
63
|
-
exports.Collection = Collection;
|
64
|
-
//# sourceMappingURL=Collection.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"Collection.js","sourceRoot":"","sources":["../../src/utils/Collection.ts"],"names":[],"mappings":"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"}
|
package/dist/utils/Util.d.ts
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
import type { JSONActionRow, JSONApplicationCommand, JSONAttachment, JSONChannel, JSONEmbed, JSONEmoji, JSONRole, JSONUser, RawActionRow, RawApplicationCommand, RawAttachment, RawChannel, RawEmbed, RawEmoji, RawRole, RawUser } from "../types";
|
2
|
-
export declare class Util {
|
3
|
-
applicationCommandToRaw(command: Partial<JSONApplicationCommand>): Partial<RawApplicationCommand>;
|
4
|
-
attachmentToJSON(attachment: RawAttachment): JSONAttachment;
|
5
|
-
channelToRaw(channel: JSONChannel): RawChannel;
|
6
|
-
embedsToJSON(embeds: Array<RawEmbed>): Array<JSONEmbed>;
|
7
|
-
embedsToRaw(embeds: Array<JSONEmbed>): Array<RawEmbed>;
|
8
|
-
emojiToRaw(emoji: JSONEmoji): RawEmoji;
|
9
|
-
messageComponentsToJSON(components: Array<RawActionRow>): Array<JSONActionRow>;
|
10
|
-
messageComponentsToRaw(components: Array<JSONActionRow>): Array<RawActionRow>;
|
11
|
-
roleToRaw(role: JSONRole): RawRole;
|
12
|
-
userToRaw(user: JSONUser): RawUser;
|
13
|
-
}
|