disgroove 1.3.3 → 1.3.4-dev.7ed5475

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 (88) 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/constants.d.ts +2 -2
  5. package/dist/lib/constants.js +36 -36
  6. package/dist/lib/constants.js.map +1 -1
  7. package/dist/lib/gateway/Shard.js +2 -2
  8. package/dist/lib/rest/RequestsManager.d.ts +1 -1
  9. package/dist/lib/rest/RequestsManager.js +3 -4
  10. package/dist/lib/rest/RequestsManager.js.map +1 -1
  11. package/dist/lib/structures/Application.d.ts +13 -13
  12. package/dist/lib/structures/ApplicationCommand.d.ts +5 -5
  13. package/dist/lib/structures/ApplicationCommand.js.map +1 -1
  14. package/dist/lib/structures/ClientApplication.d.ts +13 -13
  15. package/dist/lib/structures/Guild.d.ts +14 -14
  16. package/dist/lib/structures/Guild.js +2 -3
  17. package/dist/lib/structures/Guild.js.map +1 -1
  18. package/dist/lib/structures/User.d.ts +3 -3
  19. package/dist/lib/types/application-command.d.ts +11 -11
  20. package/dist/lib/types/application-role-connection-metadata.d.ts +5 -5
  21. package/dist/package.json +1 -2
  22. package/package.json +1 -2
  23. package/lib/Client.ts +0 -616
  24. package/lib/constants.ts +0 -1173
  25. package/lib/gateway/Shard.ts +0 -704
  26. package/lib/gateway/ShardsManager.ts +0 -11
  27. package/lib/gateway/index.ts +0 -2
  28. package/lib/index.ts +0 -7
  29. package/lib/rest/CDN.ts +0 -56
  30. package/lib/rest/Endpoints.ts +0 -241
  31. package/lib/rest/REST.ts +0 -45
  32. package/lib/rest/RequestsManager.ts +0 -134
  33. package/lib/rest/index.ts +0 -4
  34. package/lib/structures/Application.ts +0 -599
  35. package/lib/structures/ApplicationCommand.ts +0 -187
  36. package/lib/structures/AuditLog.ts +0 -112
  37. package/lib/structures/AutoModerationRule.ts +0 -127
  38. package/lib/structures/Base.ts +0 -39
  39. package/lib/structures/Channel.ts +0 -921
  40. package/lib/structures/ClientApplication.ts +0 -515
  41. package/lib/structures/Emoji.ts +0 -95
  42. package/lib/structures/Entitlement.ts +0 -65
  43. package/lib/structures/Guild.ts +0 -1842
  44. package/lib/structures/GuildMember.ts +0 -193
  45. package/lib/structures/GuildScheduledEvent.ts +0 -164
  46. package/lib/structures/GuildTemplate.ts +0 -103
  47. package/lib/structures/Integration.ts +0 -136
  48. package/lib/structures/Interaction.ts +0 -506
  49. package/lib/structures/Invite.ts +0 -108
  50. package/lib/structures/Message.ts +0 -421
  51. package/lib/structures/Role.ts +0 -116
  52. package/lib/structures/SKU.ts +0 -63
  53. package/lib/structures/StageInstance.ts +0 -74
  54. package/lib/structures/Sticker.ts +0 -100
  55. package/lib/structures/Team.ts +0 -41
  56. package/lib/structures/TestEntitlement.ts +0 -78
  57. package/lib/structures/UnavailableGuild.ts +0 -27
  58. package/lib/structures/User.ts +0 -233
  59. package/lib/structures/VoiceState.ts +0 -72
  60. package/lib/structures/Webhook.ts +0 -341
  61. package/lib/structures/index.ts +0 -27
  62. package/lib/types/application-command.ts +0 -118
  63. package/lib/types/application-role-connection-metadata.ts +0 -23
  64. package/lib/types/application.ts +0 -77
  65. package/lib/types/audit-log.ts +0 -105
  66. package/lib/types/auto-moderation.ts +0 -78
  67. package/lib/types/channel.ts +0 -534
  68. package/lib/types/emoji.ts +0 -24
  69. package/lib/types/entitlements.ts +0 -34
  70. package/lib/types/gateway-events.ts +0 -970
  71. package/lib/types/guild-scheduled-event.ts +0 -67
  72. package/lib/types/guild-template.ts +0 -30
  73. package/lib/types/guild.ts +0 -388
  74. package/lib/types/index.ts +0 -23
  75. package/lib/types/interaction.ts +0 -224
  76. package/lib/types/invite.ts +0 -78
  77. package/lib/types/message-components.ts +0 -127
  78. package/lib/types/role.ts +0 -51
  79. package/lib/types/sku.ts +0 -32
  80. package/lib/types/stage-instance.ts +0 -22
  81. package/lib/types/sticker.ts +0 -67
  82. package/lib/types/team.ts +0 -34
  83. package/lib/types/user.ts +0 -93
  84. package/lib/types/voice.ts +0 -51
  85. package/lib/types/webhook.ts +0 -40
  86. package/lib/utils/Util.ts +0 -600
  87. package/lib/utils/errors.ts +0 -23
  88. 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
- }