disgroove 1.3.1-dev.71905cd → 1.3.1-dev.84d0e5a

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.
Files changed (209) hide show
  1. package/dist/package.json +30 -0
  2. package/package.json +30 -30
  3. package/dist/Client.d.ts +0 -229
  4. package/dist/Client.js +0 -256
  5. package/dist/Client.js.map +0 -1
  6. package/dist/constants.d.ts +0 -1084
  7. package/dist/constants.js +0 -1163
  8. package/dist/constants.js.map +0 -1
  9. package/dist/gateway/Shard.d.ts +0 -25
  10. package/dist/gateway/Shard.js +0 -498
  11. package/dist/gateway/Shard.js.map +0 -1
  12. package/dist/gateway/ShardsManager.d.ts +0 -5
  13. package/dist/gateway/ShardsManager.js +0 -13
  14. package/dist/gateway/ShardsManager.js.map +0 -1
  15. package/dist/gateway/index.d.ts +0 -2
  16. package/dist/gateway/index.js +0 -19
  17. package/dist/gateway/index.js.map +0 -1
  18. package/dist/index.d.ts +0 -7
  19. package/dist/index.js +0 -24
  20. package/dist/index.js.map +0 -1
  21. package/dist/rest/CDN.d.ts +0 -21
  22. package/dist/rest/CDN.js +0 -46
  23. package/dist/rest/CDN.js.map +0 -1
  24. package/dist/rest/Endpoints.d.ts +0 -94
  25. package/dist/rest/Endpoints.js +0 -211
  26. package/dist/rest/Endpoints.js.map +0 -1
  27. package/dist/rest/REST.d.ts +0 -22
  28. package/dist/rest/REST.js +0 -35
  29. package/dist/rest/REST.js.map +0 -1
  30. package/dist/rest/RequestsManager.d.ts +0 -17
  31. package/dist/rest/RequestsManager.js +0 -100
  32. package/dist/rest/RequestsManager.js.map +0 -1
  33. package/dist/rest/index.d.ts +0 -4
  34. package/dist/rest/index.js +0 -34
  35. package/dist/rest/index.js.map +0 -1
  36. package/dist/structures/Application.d.ts +0 -174
  37. package/dist/structures/Application.js +0 -328
  38. package/dist/structures/Application.js.map +0 -1
  39. package/dist/structures/ApplicationCommand.d.ts +0 -45
  40. package/dist/structures/ApplicationCommand.js +0 -127
  41. package/dist/structures/ApplicationCommand.js.map +0 -1
  42. package/dist/structures/AuditLog.d.ts +0 -20
  43. package/dist/structures/AuditLog.js +0 -76
  44. package/dist/structures/AuditLog.js.map +0 -1
  45. package/dist/structures/AutoModerationRule.d.ts +0 -34
  46. package/dist/structures/AutoModerationRule.js +0 -96
  47. package/dist/structures/AutoModerationRule.js.map +0 -1
  48. package/dist/structures/Base.d.ts +0 -17
  49. package/dist/structures/Base.js +0 -31
  50. package/dist/structures/Base.js.map +0 -1
  51. package/dist/structures/Channel.d.ts +0 -252
  52. package/dist/structures/Channel.js +0 -590
  53. package/dist/structures/Channel.js.map +0 -1
  54. package/dist/structures/ClientApplication.d.ts +0 -150
  55. package/dist/structures/ClientApplication.js +0 -241
  56. package/dist/structures/ClientApplication.js.map +0 -1
  57. package/dist/structures/Emoji.d.ts +0 -28
  58. package/dist/structures/Emoji.js +0 -79
  59. package/dist/structures/Emoji.js.map +0 -1
  60. package/dist/structures/Entitlement.d.ts +0 -24
  61. package/dist/structures/Entitlement.js +0 -68
  62. package/dist/structures/Entitlement.js.map +0 -1
  63. package/dist/structures/Guild.d.ts +0 -462
  64. package/dist/structures/Guild.js +0 -1095
  65. package/dist/structures/Guild.js.map +0 -1
  66. package/dist/structures/GuildMember.d.ts +0 -50
  67. package/dist/structures/GuildMember.js +0 -149
  68. package/dist/structures/GuildMember.js.map +0 -1
  69. package/dist/structures/GuildScheduledEvent.d.ts +0 -49
  70. package/dist/structures/GuildScheduledEvent.js +0 -118
  71. package/dist/structures/GuildScheduledEvent.js.map +0 -1
  72. package/dist/structures/GuildTemplate.d.ts +0 -32
  73. package/dist/structures/GuildTemplate.js +0 -76
  74. package/dist/structures/GuildTemplate.js.map +0 -1
  75. package/dist/structures/Integration.d.ts +0 -30
  76. package/dist/structures/Integration.js +0 -102
  77. package/dist/structures/Integration.js.map +0 -1
  78. package/dist/structures/Interaction.d.ts +0 -76
  79. package/dist/structures/Interaction.js +0 -345
  80. package/dist/structures/Interaction.js.map +0 -1
  81. package/dist/structures/Invite.d.ts +0 -28
  82. package/dist/structures/Invite.js +0 -86
  83. package/dist/structures/Invite.js.map +0 -1
  84. package/dist/structures/Message.d.ts +0 -84
  85. package/dist/structures/Message.js +0 -300
  86. package/dist/structures/Message.js.map +0 -1
  87. package/dist/structures/PartialApplication.d.ts +0 -324
  88. package/dist/structures/PartialApplication.js +0 -241
  89. package/dist/structures/PartialApplication.js.map +0 -1
  90. package/dist/structures/Role.d.ts +0 -37
  91. package/dist/structures/Role.js +0 -90
  92. package/dist/structures/Role.js.map +0 -1
  93. package/dist/structures/SKU.d.ts +0 -23
  94. package/dist/structures/SKU.js +0 -63
  95. package/dist/structures/SKU.js.map +0 -1
  96. package/dist/structures/StageInstance.d.ts +0 -24
  97. package/dist/structures/StageInstance.js +0 -57
  98. package/dist/structures/StageInstance.js.map +0 -1
  99. package/dist/structures/Sticker.d.ts +0 -31
  100. package/dist/structures/Sticker.js +0 -86
  101. package/dist/structures/Sticker.js.map +0 -1
  102. package/dist/structures/Team.d.ts +0 -14
  103. package/dist/structures/Team.js +0 -39
  104. package/dist/structures/Team.js.map +0 -1
  105. package/dist/structures/TestEntitlement.d.ts +0 -23
  106. package/dist/structures/TestEntitlement.js +0 -61
  107. package/dist/structures/TestEntitlement.js.map +0 -1
  108. package/dist/structures/UnavailableGuild.d.ts +0 -11
  109. package/dist/structures/UnavailableGuild.js +0 -25
  110. package/dist/structures/UnavailableGuild.js.map +0 -1
  111. package/dist/structures/User.d.ts +0 -63
  112. package/dist/structures/User.js +0 -177
  113. package/dist/structures/User.js.map +0 -1
  114. package/dist/structures/VoiceState.d.ts +0 -26
  115. package/dist/structures/VoiceState.js +0 -70
  116. package/dist/structures/VoiceState.js.map +0 -1
  117. package/dist/structures/Webhook.d.ts +0 -84
  118. package/dist/structures/Webhook.js +0 -239
  119. package/dist/structures/Webhook.js.map +0 -1
  120. package/dist/structures/index.d.ts +0 -27
  121. package/dist/structures/index.js +0 -44
  122. package/dist/structures/index.js.map +0 -1
  123. package/dist/types/application-command.d.ts +0 -102
  124. package/dist/types/application-command.js +0 -3
  125. package/dist/types/application-command.js.map +0 -1
  126. package/dist/types/application-role-connection-metadata.d.ts +0 -18
  127. package/dist/types/application-role-connection-metadata.js +0 -3
  128. package/dist/types/application-role-connection-metadata.js.map +0 -1
  129. package/dist/types/application.d.ts +0 -66
  130. package/dist/types/application.js +0 -3
  131. package/dist/types/application.js.map +0 -1
  132. package/dist/types/audit-log.d.ts +0 -82
  133. package/dist/types/audit-log.js +0 -3
  134. package/dist/types/audit-log.js.map +0 -1
  135. package/dist/types/auto-moderation.d.ts +0 -65
  136. package/dist/types/auto-moderation.js +0 -3
  137. package/dist/types/auto-moderation.js.map +0 -1
  138. package/dist/types/channel.d.ts +0 -456
  139. package/dist/types/channel.js +0 -3
  140. package/dist/types/channel.js.map +0 -1
  141. package/dist/types/emoji.d.ts +0 -22
  142. package/dist/types/emoji.js +0 -3
  143. package/dist/types/emoji.js.map +0 -1
  144. package/dist/types/entitlements.d.ts +0 -32
  145. package/dist/types/entitlements.js +0 -3
  146. package/dist/types/entitlements.js.map +0 -1
  147. package/dist/types/gateway-events.d.ts +0 -805
  148. package/dist/types/gateway-events.js +0 -3
  149. package/dist/types/gateway-events.js.map +0 -1
  150. package/dist/types/guild-scheduled-event.d.ts +0 -57
  151. package/dist/types/guild-scheduled-event.js +0 -3
  152. package/dist/types/guild-scheduled-event.js.map +0 -1
  153. package/dist/types/guild-template.d.ts +0 -28
  154. package/dist/types/guild-template.js +0 -3
  155. package/dist/types/guild-template.js.map +0 -1
  156. package/dist/types/guild.d.ts +0 -333
  157. package/dist/types/guild.js +0 -3
  158. package/dist/types/guild.js.map +0 -1
  159. package/dist/types/index.d.ts +0 -23
  160. package/dist/types/index.js +0 -40
  161. package/dist/types/index.js.map +0 -1
  162. package/dist/types/interaction.d.ts +0 -170
  163. package/dist/types/interaction.js +0 -3
  164. package/dist/types/interaction.js.map +0 -1
  165. package/dist/types/invite.d.ts +0 -59
  166. package/dist/types/invite.js +0 -3
  167. package/dist/types/invite.js.map +0 -1
  168. package/dist/types/message-components.d.ts +0 -100
  169. package/dist/types/message-components.js +0 -3
  170. package/dist/types/message-components.js.map +0 -1
  171. package/dist/types/role.d.ts +0 -47
  172. package/dist/types/role.js +0 -3
  173. package/dist/types/role.js.map +0 -1
  174. package/dist/types/sku.d.ts +0 -30
  175. package/dist/types/sku.js +0 -3
  176. package/dist/types/sku.js.map +0 -1
  177. package/dist/types/stage-instance.d.ts +0 -20
  178. package/dist/types/stage-instance.js +0 -3
  179. package/dist/types/stage-instance.js.map +0 -1
  180. package/dist/types/sticker.d.ts +0 -61
  181. package/dist/types/sticker.js +0 -3
  182. package/dist/types/sticker.js.map +0 -1
  183. package/dist/types/team.d.ts +0 -30
  184. package/dist/types/team.js +0 -3
  185. package/dist/types/team.js.map +0 -1
  186. package/dist/types/user.d.ts +0 -77
  187. package/dist/types/user.js +0 -3
  188. package/dist/types/user.js.map +0 -1
  189. package/dist/types/voice.d.ts +0 -47
  190. package/dist/types/voice.js +0 -3
  191. package/dist/types/voice.js.map +0 -1
  192. package/dist/types/webhook.d.ts +0 -31
  193. package/dist/types/webhook.js +0 -3
  194. package/dist/types/webhook.js.map +0 -1
  195. package/dist/utils/Collection.d.ts +0 -24
  196. package/dist/utils/Collection.js +0 -64
  197. package/dist/utils/Collection.js.map +0 -1
  198. package/dist/utils/Util.d.ts +0 -15
  199. package/dist/utils/Util.js +0 -543
  200. package/dist/utils/Util.js.map +0 -1
  201. package/dist/utils/errors.d.ts +0 -12
  202. package/dist/utils/errors.js +0 -25
  203. package/dist/utils/errors.js.map +0 -1
  204. package/dist/utils/index.d.ts +0 -2
  205. package/dist/utils/index.js +0 -19
  206. package/dist/utils/index.js.map +0 -1
  207. package/test/index.ts +0 -72
  208. package/test/voice1.ts +0 -67
  209. package/test/voice2.ts +0 -60
@@ -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
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=voice.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"voice.js","sourceRoot":"","sources":["../../src/types/voice.ts"],"names":[],"mappings":""}
@@ -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
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=webhook.js.map
@@ -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
- }
@@ -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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"}
@@ -1,15 +0,0 @@
1
- import type { JSONActionRow, JSONApplicationCommand, JSONAttachment, JSONChannel, JSONEmbed, JSONEmoji, JSONRole, JSONUser, PresenceUpdateEventFields, RawActionRow, RawApplicationCommand, RawAttachment, RawChannel, RawEmbed, RawEmoji, RawPresenceUpdateEventFields, RawRole, RawUser } from "../types";
2
- import type { Client } from "../Client";
3
- export declare class Util {
4
- applicationCommandToRaw(command: Partial<JSONApplicationCommand>): Partial<RawApplicationCommand>;
5
- attachmentToJSON(attachment: RawAttachment): JSONAttachment;
6
- channelToRaw(channel: JSONChannel): RawChannel;
7
- embedsToJSON(embeds: Array<RawEmbed>): Array<JSONEmbed>;
8
- embedsToRaw(embeds: Array<JSONEmbed>): Array<RawEmbed>;
9
- emojiToRaw(emoji: JSONEmoji): RawEmoji;
10
- messageComponentsToJSON(components: Array<RawActionRow>): Array<JSONActionRow>;
11
- messageComponentsToRaw(components: Array<JSONActionRow>): Array<RawActionRow>;
12
- presenceToREST(presence: RawPresenceUpdateEventFields, client: Client): PresenceUpdateEventFields;
13
- roleToRaw(role: JSONRole): RawRole;
14
- userToRaw(user: JSONUser): RawUser;
15
- }