disgroove 1.3.3 → 1.3.4-dev.9e27a4b

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 (73) hide show
  1. package/dist/lib/Client.d.ts +11 -3
  2. package/dist/lib/Client.js +4 -4
  3. package/dist/lib/Client.js.map +1 -1
  4. package/dist/lib/gateway/Shard.js +2 -2
  5. package/dist/lib/structures/Guild.d.ts +7 -7
  6. package/dist/package.json +1 -1
  7. package/package.json +1 -1
  8. package/lib/Client.ts +0 -616
  9. package/lib/constants.ts +0 -1173
  10. package/lib/gateway/Shard.ts +0 -704
  11. package/lib/gateway/ShardsManager.ts +0 -11
  12. package/lib/gateway/index.ts +0 -2
  13. package/lib/index.ts +0 -7
  14. package/lib/rest/CDN.ts +0 -56
  15. package/lib/rest/Endpoints.ts +0 -241
  16. package/lib/rest/REST.ts +0 -45
  17. package/lib/rest/RequestsManager.ts +0 -134
  18. package/lib/rest/index.ts +0 -4
  19. package/lib/structures/Application.ts +0 -599
  20. package/lib/structures/ApplicationCommand.ts +0 -187
  21. package/lib/structures/AuditLog.ts +0 -112
  22. package/lib/structures/AutoModerationRule.ts +0 -127
  23. package/lib/structures/Base.ts +0 -39
  24. package/lib/structures/Channel.ts +0 -921
  25. package/lib/structures/ClientApplication.ts +0 -515
  26. package/lib/structures/Emoji.ts +0 -95
  27. package/lib/structures/Entitlement.ts +0 -65
  28. package/lib/structures/Guild.ts +0 -1842
  29. package/lib/structures/GuildMember.ts +0 -193
  30. package/lib/structures/GuildScheduledEvent.ts +0 -164
  31. package/lib/structures/GuildTemplate.ts +0 -103
  32. package/lib/structures/Integration.ts +0 -136
  33. package/lib/structures/Interaction.ts +0 -506
  34. package/lib/structures/Invite.ts +0 -108
  35. package/lib/structures/Message.ts +0 -421
  36. package/lib/structures/Role.ts +0 -116
  37. package/lib/structures/SKU.ts +0 -63
  38. package/lib/structures/StageInstance.ts +0 -74
  39. package/lib/structures/Sticker.ts +0 -100
  40. package/lib/structures/Team.ts +0 -41
  41. package/lib/structures/TestEntitlement.ts +0 -78
  42. package/lib/structures/UnavailableGuild.ts +0 -27
  43. package/lib/structures/User.ts +0 -233
  44. package/lib/structures/VoiceState.ts +0 -72
  45. package/lib/structures/Webhook.ts +0 -341
  46. package/lib/structures/index.ts +0 -27
  47. package/lib/types/application-command.ts +0 -118
  48. package/lib/types/application-role-connection-metadata.ts +0 -23
  49. package/lib/types/application.ts +0 -77
  50. package/lib/types/audit-log.ts +0 -105
  51. package/lib/types/auto-moderation.ts +0 -78
  52. package/lib/types/channel.ts +0 -534
  53. package/lib/types/emoji.ts +0 -24
  54. package/lib/types/entitlements.ts +0 -34
  55. package/lib/types/gateway-events.ts +0 -970
  56. package/lib/types/guild-scheduled-event.ts +0 -67
  57. package/lib/types/guild-template.ts +0 -30
  58. package/lib/types/guild.ts +0 -388
  59. package/lib/types/index.ts +0 -23
  60. package/lib/types/interaction.ts +0 -224
  61. package/lib/types/invite.ts +0 -78
  62. package/lib/types/message-components.ts +0 -127
  63. package/lib/types/role.ts +0 -51
  64. package/lib/types/sku.ts +0 -32
  65. package/lib/types/stage-instance.ts +0 -22
  66. package/lib/types/sticker.ts +0 -67
  67. package/lib/types/team.ts +0 -34
  68. package/lib/types/user.ts +0 -93
  69. package/lib/types/voice.ts +0 -51
  70. package/lib/types/webhook.ts +0 -40
  71. package/lib/utils/Util.ts +0 -600
  72. package/lib/utils/errors.ts +0 -23
  73. package/lib/utils/index.ts +0 -2
package/lib/types/user.ts DELETED
@@ -1,93 +0,0 @@
1
- import type {
2
- UserFlags,
3
- Services,
4
- VisibilityTypes,
5
- PremiumTypes,
6
- } from "../constants";
7
- import type {
8
- JSONApplicationRoleConnectionMetadata,
9
- JSONIntegration,
10
- RawApplicationRoleConnectionMetadata,
11
- RawIntegration,
12
- } from ".";
13
-
14
- /** https://discord.com/developers/docs/resources/user#user-object-user-structure */
15
- export interface RawUser {
16
- id: string;
17
- username: string;
18
- discriminator: string;
19
- global_name: string | null;
20
- avatar: string;
21
- bot?: boolean;
22
- system?: boolean;
23
- mfa_enabled?: boolean;
24
- banner?: string;
25
- accent_color?: number;
26
- locale?: string;
27
- verified?: boolean;
28
- email?: string;
29
- flags?: UserFlags;
30
- premium_type?: PremiumTypes;
31
- public_flags?: UserFlags;
32
- avatar_decoration?: string | null;
33
- }
34
-
35
- /** https://discord.com/developers/docs/resources/user#connection-object-connection-structure */
36
- export interface RawConnection {
37
- id: string;
38
- name: string;
39
- type: Services;
40
- revoked?: boolean;
41
- integrations?: Array<RawIntegration>;
42
- verified: boolean;
43
- friend_sync: boolean;
44
- show_activity: boolean;
45
- two_way_link: boolean;
46
- visibility: VisibilityTypes;
47
- }
48
-
49
- /** https://discord.com/developers/docs/resources/user#application-role-connection-object-application-role-connection-structure */
50
- export interface RawApplicationRoleConnection {
51
- platform_name: string | null;
52
- platform_username: string | null;
53
- metadata: RawApplicationRoleConnectionMetadata;
54
- }
55
-
56
- export interface JSONUser {
57
- id: string;
58
- username: string;
59
- discriminator: string;
60
- globalName: string | null;
61
- avatar: string;
62
- bot?: boolean;
63
- system?: boolean;
64
- mfaEnabled?: boolean;
65
- banner?: string;
66
- accentColor?: number;
67
- locale?: string;
68
- verified?: boolean;
69
- email?: string;
70
- flags?: UserFlags;
71
- premiumType?: PremiumTypes;
72
- publicFlags?: UserFlags;
73
- avatarDecoration?: string | null;
74
- }
75
-
76
- export interface JSONConnection {
77
- id: string;
78
- name: string;
79
- type: Services;
80
- revoked?: boolean;
81
- integrations?: Array<JSONIntegration>;
82
- verified: boolean;
83
- friendSync: boolean;
84
- showActivity: boolean;
85
- twoWayLink: boolean;
86
- visibility: VisibilityTypes;
87
- }
88
-
89
- export interface JSONApplicationRoleConnection {
90
- platformName: string | null;
91
- platformUsername: string | null;
92
- metadata: JSONApplicationRoleConnectionMetadata;
93
- }
@@ -1,51 +0,0 @@
1
- import type { JSONGuildMember, RawGuildMember } from ".";
2
-
3
- /** https://discord.com/developers/docs/resources/voice#voice-state-object-voice-state-structure */
4
- export interface RawVoiceState {
5
- guild_id?: string;
6
- channel_id: string | null;
7
- user_id: string;
8
- member?: RawGuildMember;
9
- session_id: string;
10
- deaf: boolean;
11
- mute: boolean;
12
- self_deaf: boolean;
13
- self_mute: boolean;
14
- self_stream?: boolean;
15
- self_video: boolean;
16
- suppress: boolean;
17
- request_to_speak_timestamp: string | null;
18
- }
19
-
20
- /** https://discord.com/developers/docs/resources/voice#voice-region-object-voice-region-structure */
21
- export interface RawVoiceRegion {
22
- id: string;
23
- name: string;
24
- optimal: boolean;
25
- deprecated: boolean;
26
- custom: boolean;
27
- }
28
-
29
- export interface JSONVoiceState {
30
- guildId?: string;
31
- channelId: string | null;
32
- userId: string;
33
- member?: JSONGuildMember;
34
- sessionId: string;
35
- deaf: boolean;
36
- mute: boolean;
37
- selfDeaf: boolean;
38
- selfMute: boolean;
39
- selfStream?: boolean;
40
- selfVideo: boolean;
41
- suppress: boolean;
42
- requestToSpeakTimestamp: string | null;
43
- }
44
-
45
- export interface JSONVoiceRegion {
46
- id: string;
47
- name: string;
48
- optimal: boolean;
49
- deprecated: boolean;
50
- custom: boolean;
51
- }
@@ -1,40 +0,0 @@
1
- import type { WebhookTypes } from "../constants";
2
- import type {
3
- JSONChannel,
4
- JSONGuild,
5
- JSONUser,
6
- RawChannel,
7
- RawGuild,
8
- RawUser,
9
- } from ".";
10
-
11
- /** https://discord.com/developers/docs/resources/webhook#webhook-object-webhook-structure */
12
- export interface RawWebhook {
13
- id: string;
14
- type: WebhookTypes;
15
- guild_id?: string | null;
16
- channel_id: string | null;
17
- user?: RawUser;
18
- name: string | null;
19
- avatar: string | null;
20
- token?: string;
21
- application_id: string | null;
22
- source_guild?: RawGuild;
23
- source_channel?: RawChannel;
24
- url?: string;
25
- }
26
-
27
- export interface JSONWebhook {
28
- id: string;
29
- type: WebhookTypes;
30
- guildId?: string | null;
31
- channelId: string | null;
32
- user?: JSONUser;
33
- name: string | null;
34
- avatar: string | null;
35
- token?: string;
36
- applicationId: string | null;
37
- sourceGuild?: JSONGuild;
38
- sourceChannel?: JSONChannel;
39
- url?: string;
40
- }