disgroove 0.0.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.
Files changed (151) hide show
  1. package/dist/class/Client.d.ts +306 -0
  2. package/dist/class/Client.js +771 -0
  3. package/dist/class/Client.js.map +1 -0
  4. package/dist/class/index.d.ts +1 -0
  5. package/dist/class/index.js +18 -0
  6. package/dist/class/index.js.map +1 -0
  7. package/dist/index.d.ts +5 -0
  8. package/dist/index.js +22 -0
  9. package/dist/index.js.map +1 -0
  10. package/dist/rest/Endpoints.d.ts +97 -0
  11. package/dist/rest/Endpoints.js +205 -0
  12. package/dist/rest/Endpoints.js.map +1 -0
  13. package/dist/rest/REST.d.ts +16 -0
  14. package/dist/rest/REST.js +55 -0
  15. package/dist/rest/REST.js.map +1 -0
  16. package/dist/rest/index.d.ts +2 -0
  17. package/dist/rest/index.js +32 -0
  18. package/dist/rest/index.js.map +1 -0
  19. package/dist/structures/Application.d.ts +250 -0
  20. package/dist/structures/Application.js +258 -0
  21. package/dist/structures/Application.js.map +1 -0
  22. package/dist/structures/ApplicationCommand.d.ts +68 -0
  23. package/dist/structures/ApplicationCommand.js +133 -0
  24. package/dist/structures/ApplicationCommand.js.map +1 -0
  25. package/dist/structures/AuditLogEntry.d.ts +16 -0
  26. package/dist/structures/AuditLogEntry.js +54 -0
  27. package/dist/structures/AuditLogEntry.js.map +1 -0
  28. package/dist/structures/AutoModerationRule.d.ts +29 -0
  29. package/dist/structures/AutoModerationRule.js +85 -0
  30. package/dist/structures/AutoModerationRule.js.map +1 -0
  31. package/dist/structures/Channel.d.ts +296 -0
  32. package/dist/structures/Channel.js +579 -0
  33. package/dist/structures/Channel.js.map +1 -0
  34. package/dist/structures/Guild.d.ts +452 -0
  35. package/dist/structures/Guild.js +1161 -0
  36. package/dist/structures/Guild.js.map +1 -0
  37. package/dist/structures/GuildMember.d.ts +46 -0
  38. package/dist/structures/GuildMember.js +126 -0
  39. package/dist/structures/GuildMember.js.map +1 -0
  40. package/dist/structures/GuildScheduledEvent.d.ts +45 -0
  41. package/dist/structures/GuildScheduledEvent.js +115 -0
  42. package/dist/structures/GuildScheduledEvent.js.map +1 -0
  43. package/dist/structures/GuildTemplate.d.ts +25 -0
  44. package/dist/structures/GuildTemplate.js +80 -0
  45. package/dist/structures/GuildTemplate.js.map +1 -0
  46. package/dist/structures/Integration.d.ts +28 -0
  47. package/dist/structures/Integration.js +96 -0
  48. package/dist/structures/Integration.js.map +1 -0
  49. package/dist/structures/Interaction.d.ts +204 -0
  50. package/dist/structures/Interaction.js +368 -0
  51. package/dist/structures/Interaction.js.map +1 -0
  52. package/dist/structures/Invite.d.ts +22 -0
  53. package/dist/structures/Invite.js +108 -0
  54. package/dist/structures/Invite.js.map +1 -0
  55. package/dist/structures/Message.d.ts +97 -0
  56. package/dist/structures/Message.js +327 -0
  57. package/dist/structures/Message.js.map +1 -0
  58. package/dist/structures/Role.d.ts +35 -0
  59. package/dist/structures/Role.js +81 -0
  60. package/dist/structures/Role.js.map +1 -0
  61. package/dist/structures/StageInstance.d.ts +20 -0
  62. package/dist/structures/StageInstance.js +53 -0
  63. package/dist/structures/StageInstance.js.map +1 -0
  64. package/dist/structures/User.d.ts +53 -0
  65. package/dist/structures/User.js +168 -0
  66. package/dist/structures/User.js.map +1 -0
  67. package/dist/structures/Webhook.d.ts +133 -0
  68. package/dist/structures/Webhook.js +189 -0
  69. package/dist/structures/Webhook.js.map +1 -0
  70. package/dist/structures/index.d.ts +17 -0
  71. package/dist/structures/index.js +34 -0
  72. package/dist/structures/index.js.map +1 -0
  73. package/dist/types/application-command.d.ts +97 -0
  74. package/dist/types/application-command.js +3 -0
  75. package/dist/types/application-command.js.map +1 -0
  76. package/dist/types/application-role-connection-metadata.d.ts +17 -0
  77. package/dist/types/application-role-connection-metadata.js +3 -0
  78. package/dist/types/application-role-connection-metadata.js.map +1 -0
  79. package/dist/types/application.d.ts +55 -0
  80. package/dist/types/application.js +3 -0
  81. package/dist/types/application.js.map +1 -0
  82. package/dist/types/audit-log.d.ts +77 -0
  83. package/dist/types/audit-log.js +3 -0
  84. package/dist/types/audit-log.js.map +1 -0
  85. package/dist/types/auto-moderation.d.ts +61 -0
  86. package/dist/types/auto-moderation.js +3 -0
  87. package/dist/types/auto-moderation.js.map +1 -0
  88. package/dist/types/channel.d.ts +411 -0
  89. package/dist/types/channel.js +3 -0
  90. package/dist/types/channel.js.map +1 -0
  91. package/dist/types/emoji.d.ts +22 -0
  92. package/dist/types/emoji.js +3 -0
  93. package/dist/types/emoji.js.map +1 -0
  94. package/dist/types/gateway-events.d.ts +53 -0
  95. package/dist/types/gateway-events.js +3 -0
  96. package/dist/types/gateway-events.js.map +1 -0
  97. package/dist/types/guild-scheduled-event.d.ts +55 -0
  98. package/dist/types/guild-scheduled-event.js +3 -0
  99. package/dist/types/guild-scheduled-event.js.map +1 -0
  100. package/dist/types/guild-template.d.ts +28 -0
  101. package/dist/types/guild-template.js +3 -0
  102. package/dist/types/guild-template.js.map +1 -0
  103. package/dist/types/guild.d.ts +305 -0
  104. package/dist/types/guild.js +3 -0
  105. package/dist/types/guild.js.map +1 -0
  106. package/dist/types/index.d.ts +22 -0
  107. package/dist/types/index.js +39 -0
  108. package/dist/types/index.js.map +1 -0
  109. package/dist/types/interaction.d.ts +141 -0
  110. package/dist/types/interaction.js +3 -0
  111. package/dist/types/interaction.js.map +1 -0
  112. package/dist/types/invite.d.ts +56 -0
  113. package/dist/types/invite.js +3 -0
  114. package/dist/types/invite.js.map +1 -0
  115. package/dist/types/message-components.d.ts +76 -0
  116. package/dist/types/message-components.js +3 -0
  117. package/dist/types/message-components.js.map +1 -0
  118. package/dist/types/oauth2.d.ts +14 -0
  119. package/dist/types/oauth2.js +3 -0
  120. package/dist/types/oauth2.js.map +1 -0
  121. package/dist/types/role.d.ts +42 -0
  122. package/dist/types/role.js +3 -0
  123. package/dist/types/role.js.map +1 -0
  124. package/dist/types/stage-instance.d.ts +18 -0
  125. package/dist/types/stage-instance.js +3 -0
  126. package/dist/types/stage-instance.js.map +1 -0
  127. package/dist/types/sticker.d.ts +59 -0
  128. package/dist/types/sticker.js +3 -0
  129. package/dist/types/sticker.js.map +1 -0
  130. package/dist/types/team.d.ts +28 -0
  131. package/dist/types/team.js +3 -0
  132. package/dist/types/team.js.map +1 -0
  133. package/dist/types/user.d.ts +73 -0
  134. package/dist/types/user.js +3 -0
  135. package/dist/types/user.js.map +1 -0
  136. package/dist/types/voice.d.ts +46 -0
  137. package/dist/types/voice.js +3 -0
  138. package/dist/types/voice.js.map +1 -0
  139. package/dist/types/webhook.d.ts +31 -0
  140. package/dist/types/webhook.js +3 -0
  141. package/dist/types/webhook.js.map +1 -0
  142. package/dist/utils/constants.d.ts +963 -0
  143. package/dist/utils/constants.js +1147 -0
  144. package/dist/utils/constants.js.map +1 -0
  145. package/dist/utils/index.d.ts +2 -0
  146. package/dist/utils/index.js +19 -0
  147. package/dist/utils/index.js.map +1 -0
  148. package/dist/utils/rawers.d.ts +467 -0
  149. package/dist/utils/rawers.js +295 -0
  150. package/dist/utils/rawers.js.map +1 -0
  151. package/package.json +27 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"oauth2.js","sourceRoot":"","sources":["../../src/types/oauth2.ts"],"names":[],"mappings":""}
@@ -0,0 +1,42 @@
1
+ export interface RawRole {
2
+ id: string;
3
+ name: string;
4
+ color: number;
5
+ hoist: boolean;
6
+ icon?: string | null;
7
+ unicode_emoji?: string | null;
8
+ position: number;
9
+ permissions: string;
10
+ managed: boolean;
11
+ mentionable: boolean;
12
+ tags?: RawRoleTags;
13
+ }
14
+ export interface RawRoleTags {
15
+ bot_id?: string;
16
+ integration_id?: string;
17
+ premium_subscriber?: null;
18
+ subscription_listing_id?: string;
19
+ available_for_purchase?: null;
20
+ guild_connections?: null;
21
+ }
22
+ export interface JSONRole {
23
+ id: string;
24
+ name: string;
25
+ color: number;
26
+ hoist: boolean;
27
+ icon?: string | null;
28
+ unicodeEmoji?: string | null;
29
+ position: number;
30
+ permissions: string;
31
+ managed: boolean;
32
+ mentionable: boolean;
33
+ tags?: JSONRoleTags;
34
+ }
35
+ export interface JSONRoleTags {
36
+ botId?: string;
37
+ integrationId?: string;
38
+ premiumSubscriber?: null;
39
+ subscriptionListingId?: string;
40
+ availableForPurchase?: null;
41
+ guildConnections?: null;
42
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=role.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"role.js","sourceRoot":"","sources":["../../src/types/role.ts"],"names":[],"mappings":""}
@@ -0,0 +1,18 @@
1
+ export interface RawStageInstance {
2
+ id: string;
3
+ guild_id: string;
4
+ channel_id: string;
5
+ topic: string;
6
+ privacy_level: number;
7
+ discoverable_disabled: boolean;
8
+ guild_scheduled_event_id: string | null;
9
+ }
10
+ export interface JSONStageInstance {
11
+ id: string;
12
+ guildId: string;
13
+ channelId: string;
14
+ topic: string;
15
+ privacyLevel: number;
16
+ discoverableDisabled: boolean;
17
+ guildScheduledEventId: string | null;
18
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=stage-instance.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stage-instance.js","sourceRoot":"","sources":["../../src/types/stage-instance.ts"],"names":[],"mappings":""}
@@ -0,0 +1,59 @@
1
+ import type { StickerTypes, StickerFormatTypes } from "../utils/constants";
2
+ import type { RawUser } from ".";
3
+ import type { User } from "../structures";
4
+ export interface RawSticker {
5
+ id: string;
6
+ pack_id?: string;
7
+ name: string;
8
+ description: string | null;
9
+ tags: string;
10
+ asset?: string;
11
+ type: StickerTypes;
12
+ format_type: StickerFormatTypes;
13
+ available?: boolean;
14
+ guild_id?: string;
15
+ user?: RawUser;
16
+ sort_value?: number;
17
+ }
18
+ export interface RawStickerItem {
19
+ id: string;
20
+ name: string;
21
+ format_type: StickerFormatTypes;
22
+ }
23
+ export interface RawStickerPack {
24
+ id: string;
25
+ stickers: Array<RawSticker>;
26
+ name: string;
27
+ sku_id: string;
28
+ cover_sticker_id?: string;
29
+ description: string;
30
+ banner_asset_id?: string;
31
+ }
32
+ export interface JSONSticker {
33
+ id: string;
34
+ packId?: string;
35
+ name: string;
36
+ description: string | null;
37
+ tags: string;
38
+ asset?: string;
39
+ type: StickerTypes;
40
+ formatType: StickerFormatTypes;
41
+ available?: boolean;
42
+ guildId?: string;
43
+ user?: User;
44
+ sortValue?: number;
45
+ }
46
+ export interface JSONStickerItem {
47
+ id: string;
48
+ name: string;
49
+ formatType: StickerFormatTypes;
50
+ }
51
+ export interface JSONStickerPack {
52
+ id: string;
53
+ stickers: Array<JSONSticker>;
54
+ name: string;
55
+ skuId: string;
56
+ coverStickerId?: string;
57
+ description: string;
58
+ bannerAssetId?: string;
59
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=sticker.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sticker.js","sourceRoot":"","sources":["../../src/types/sticker.ts"],"names":[],"mappings":""}
@@ -0,0 +1,28 @@
1
+ import type { RawUser } from ".";
2
+ import type { User } from "../structures";
3
+ export interface RawTeam {
4
+ icon: string | null;
5
+ id: string;
6
+ members: Array<RawTeamMember>;
7
+ name: string;
8
+ owner_user_id: string;
9
+ }
10
+ export interface RawTeamMember {
11
+ membership_state: number;
12
+ permissions: Array<string>;
13
+ team_id: string;
14
+ user: RawUser;
15
+ }
16
+ export interface JSONTeam {
17
+ icon: string | null;
18
+ id: string;
19
+ members: Array<JSONTeamMember>;
20
+ name: string;
21
+ ownerUserId: string;
22
+ }
23
+ export interface JSONTeamMember {
24
+ membershipState: number;
25
+ permissions: Array<string>;
26
+ teamId: string;
27
+ user: User;
28
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=team.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"team.js","sourceRoot":"","sources":["../../src/types/team.ts"],"names":[],"mappings":""}
@@ -0,0 +1,73 @@
1
+ import type { Integration } from "../structures";
2
+ import type { UserFlags, Services, VisibilityTypes } from "../utils/constants";
3
+ import type { JSONApplicationRoleConnectionMetadata, RawApplicationRoleConnectionMetadata, RawIntegration } from "./index";
4
+ export interface RawUser {
5
+ id: string;
6
+ username: string;
7
+ discriminator: string;
8
+ global_name: string | null;
9
+ avatar: string;
10
+ bot?: boolean;
11
+ system?: boolean;
12
+ mfa_enabled?: boolean;
13
+ banner?: string;
14
+ accent_color?: number;
15
+ locale?: string;
16
+ verified?: boolean;
17
+ email?: string;
18
+ flags?: UserFlags;
19
+ premium_type?: number;
20
+ public_flags?: UserFlags;
21
+ }
22
+ export interface RawConnection {
23
+ id: string;
24
+ name: string;
25
+ type: Services;
26
+ revoked?: boolean;
27
+ integrations?: Array<RawIntegration>;
28
+ verified: boolean;
29
+ friend_sync: boolean;
30
+ show_activity: boolean;
31
+ two_way_link: boolean;
32
+ visibility: VisibilityTypes;
33
+ }
34
+ export interface RawApplicationRoleConnection {
35
+ platform_name: string | null;
36
+ platform_username: string | null;
37
+ metadata: RawApplicationRoleConnectionMetadata;
38
+ }
39
+ export interface JSONUser {
40
+ id: string;
41
+ username: string;
42
+ discriminator: string;
43
+ globalName: string | null;
44
+ avatar: string;
45
+ bot?: boolean;
46
+ system?: boolean;
47
+ mfaEnabled?: boolean;
48
+ banner?: string;
49
+ accentColor?: number;
50
+ locale?: string;
51
+ verified?: boolean;
52
+ email?: string;
53
+ flags?: UserFlags;
54
+ premiumType?: number;
55
+ publicFlags?: UserFlags;
56
+ }
57
+ export interface JSONConnection {
58
+ id: string;
59
+ name: string;
60
+ type: Services;
61
+ revoked?: boolean;
62
+ integrations?: Array<Integration>;
63
+ verified: boolean;
64
+ friendSync: boolean;
65
+ showActivity: boolean;
66
+ twoWayLink: boolean;
67
+ visibility: VisibilityTypes;
68
+ }
69
+ export interface JSONApplicationRoleConnection {
70
+ platformName: string | null;
71
+ platformUsername: string | null;
72
+ metadata: JSONApplicationRoleConnectionMetadata;
73
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=user.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user.js","sourceRoot":"","sources":["../../src/types/user.ts"],"names":[],"mappings":""}
@@ -0,0 +1,46 @@
1
+ import type { RawGuildMember } from ".";
2
+ import type { GuildMember } from "../structures";
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
+ export interface RawVoiceRegion {
19
+ id: string;
20
+ name: string;
21
+ optimal: boolean;
22
+ deprecated: boolean;
23
+ custom: boolean;
24
+ }
25
+ export interface JSONVoiceState {
26
+ guildId?: string;
27
+ channelId: string | null;
28
+ userId: string;
29
+ member?: GuildMember;
30
+ sessionId: string;
31
+ deaf: boolean;
32
+ mute: boolean;
33
+ selfDeaf: boolean;
34
+ selfMute: boolean;
35
+ selfStream?: boolean;
36
+ selfVideo: boolean;
37
+ suppress: boolean;
38
+ requestToSpeakTimestamp: string | null;
39
+ }
40
+ export interface JSONVoiceRegion {
41
+ id: string;
42
+ name: string;
43
+ optimal: boolean;
44
+ deprecated: boolean;
45
+ custom: boolean;
46
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=voice.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"voice.js","sourceRoot":"","sources":["../../src/types/voice.ts"],"names":[],"mappings":""}
@@ -0,0 +1,31 @@
1
+ import type { WebhookTypes } from "../utils/constants";
2
+ import type { RawChannel, RawGuild, RawUser } from ".";
3
+ import type { Channel, Guild, User } from "../structures";
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?: User;
24
+ name: string | null;
25
+ avatar: string | null;
26
+ token?: string;
27
+ applicationId: string | null;
28
+ sourceGuild?: Guild;
29
+ sourceChannel?: Channel;
30
+ url?: string;
31
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=webhook.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"webhook.js","sourceRoot":"","sources":["../../src/types/webhook.ts"],"names":[],"mappings":""}