disgroove 1.2.9 → 1.3.0-dev.3af784e

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 (108) hide show
  1. package/dist/Client.d.ts +43 -43
  2. package/dist/Client.js +76 -76
  3. package/dist/Client.js.map +1 -1
  4. package/dist/gateway/Shard.js +32 -36
  5. package/dist/gateway/Shard.js.map +1 -1
  6. package/dist/index.d.ts +1 -0
  7. package/dist/index.js +1 -0
  8. package/dist/index.js.map +1 -1
  9. package/dist/rest/Endpoints.d.ts +1 -1
  10. package/dist/rest/Endpoints.js +3 -3
  11. package/dist/rest/RequestsManager.js +1 -1
  12. package/dist/rest/RequestsManager.js.map +1 -1
  13. package/dist/structures/Application.d.ts +72 -72
  14. package/dist/structures/Application.js +128 -155
  15. package/dist/structures/Application.js.map +1 -1
  16. package/dist/structures/ApplicationCommand.d.ts +4 -4
  17. package/dist/structures/ApplicationCommand.js +19 -19
  18. package/dist/structures/ApplicationCommand.js.map +1 -1
  19. package/dist/structures/AuditLog.d.ts +20 -0
  20. package/dist/structures/AuditLog.js +76 -0
  21. package/dist/structures/AuditLog.js.map +1 -0
  22. package/dist/structures/AutoModerationRule.d.ts +7 -7
  23. package/dist/structures/AutoModerationRule.js +7 -7
  24. package/dist/structures/AutoModerationRule.js.map +1 -1
  25. package/dist/structures/Channel.d.ts +134 -134
  26. package/dist/structures/Channel.js +263 -263
  27. package/dist/structures/Channel.js.map +1 -1
  28. package/dist/structures/ClientApplication.d.ts +324 -0
  29. package/dist/structures/ClientApplication.js +241 -0
  30. package/dist/structures/ClientApplication.js.map +1 -0
  31. package/dist/structures/Emoji.d.ts +2 -2
  32. package/dist/structures/Emoji.js +9 -9
  33. package/dist/structures/Emoji.js.map +1 -1
  34. package/dist/structures/Entitlement.d.ts +24 -0
  35. package/dist/structures/Entitlement.js +68 -0
  36. package/dist/structures/Entitlement.js.map +1 -0
  37. package/dist/structures/Guild.d.ts +311 -311
  38. package/dist/structures/Guild.js +615 -661
  39. package/dist/structures/Guild.js.map +1 -1
  40. package/dist/structures/GuildMember.d.ts +10 -10
  41. package/dist/structures/GuildMember.js +30 -30
  42. package/dist/structures/GuildMember.js.map +1 -1
  43. package/dist/structures/GuildScheduledEvent.d.ts +2 -2
  44. package/dist/structures/GuildScheduledEvent.js +7 -7
  45. package/dist/structures/GuildScheduledEvent.js.map +1 -1
  46. package/dist/structures/GuildTemplate.d.ts +4 -4
  47. package/dist/structures/GuildTemplate.js +7 -9
  48. package/dist/structures/GuildTemplate.js.map +1 -1
  49. package/dist/structures/Integration.d.ts +1 -1
  50. package/dist/structures/Integration.js +2 -2
  51. package/dist/structures/Integration.js.map +1 -1
  52. package/dist/structures/Interaction.d.ts +27 -42
  53. package/dist/structures/Interaction.js +97 -130
  54. package/dist/structures/Interaction.js.map +1 -1
  55. package/dist/structures/Invite.d.ts +2 -1
  56. package/dist/structures/Invite.js +1 -1
  57. package/dist/structures/Invite.js.map +1 -1
  58. package/dist/structures/Message.d.ts +23 -20
  59. package/dist/structures/Message.js +71 -206
  60. package/dist/structures/Message.js.map +1 -1
  61. package/dist/structures/PartialApplication.d.ts +70 -70
  62. package/dist/structures/PartialApplication.js +128 -155
  63. package/dist/structures/PartialApplication.js.map +1 -1
  64. package/dist/structures/Role.d.ts +2 -2
  65. package/dist/structures/Role.js +7 -7
  66. package/dist/structures/Role.js.map +1 -1
  67. package/dist/structures/SKU.d.ts +23 -0
  68. package/dist/structures/SKU.js +63 -0
  69. package/dist/structures/SKU.js.map +1 -0
  70. package/dist/structures/StageInstance.d.ts +3 -3
  71. package/dist/structures/StageInstance.js +7 -7
  72. package/dist/structures/StageInstance.js.map +1 -1
  73. package/dist/structures/Sticker.d.ts +2 -2
  74. package/dist/structures/Sticker.js +9 -9
  75. package/dist/structures/Sticker.js.map +1 -1
  76. package/dist/structures/Team.js +2 -2
  77. package/dist/structures/Team.js.map +1 -1
  78. package/dist/structures/TestEntitlement.d.ts +23 -0
  79. package/dist/structures/TestEntitlement.js +61 -0
  80. package/dist/structures/TestEntitlement.js.map +1 -0
  81. package/dist/structures/UnavailableGuild.d.ts +2 -487
  82. package/dist/structures/UnavailableGuild.js +1 -917
  83. package/dist/structures/UnavailableGuild.js.map +1 -1
  84. package/dist/structures/User.d.ts +13 -13
  85. package/dist/structures/User.js +35 -34
  86. package/dist/structures/User.js.map +1 -1
  87. package/dist/structures/Webhook.d.ts +26 -26
  88. package/dist/structures/Webhook.js +116 -148
  89. package/dist/structures/Webhook.js.map +1 -1
  90. package/dist/structures/index.d.ts +5 -1
  91. package/dist/structures/index.js +5 -1
  92. package/dist/structures/index.js.map +1 -1
  93. package/dist/types/application.d.ts +3 -3
  94. package/dist/types/auto-moderation.d.ts +3 -3
  95. package/dist/types/channel.d.ts +36 -21
  96. package/dist/types/gateway-events.d.ts +12 -12
  97. package/dist/types/guild.d.ts +5 -5
  98. package/dist/types/interaction.d.ts +57 -40
  99. package/dist/types/invite.d.ts +3 -2
  100. package/dist/types/message-components.d.ts +4 -4
  101. package/dist/types/sku.d.ts +1 -1
  102. package/dist/types/stage-instance.d.ts +3 -2
  103. package/dist/types/team.d.ts +1 -1
  104. package/dist/types/user.d.ts +3 -3
  105. package/dist/utils/Util.d.ts +11 -482
  106. package/dist/utils/Util.js +329 -151
  107. package/dist/utils/Util.js.map +1 -1
  108. package/package.json +1 -1
@@ -39,7 +39,7 @@ export interface RawChannelPinsUpdateEventFields {
39
39
  }
40
40
  /** https://discord.com/developers/docs/topics/gateway-events#guild-create-guild-create-extra-fields */
41
41
  export interface RawGuildCreateEventExtraFields {
42
- joined_at?: number;
42
+ joined_at?: string;
43
43
  large?: boolean;
44
44
  unavailable?: boolean;
45
45
  member_count?: number;
@@ -91,7 +91,7 @@ export interface RawGuildMemberUpdateEventFields {
91
91
  user: RawUser;
92
92
  nick?: string | null;
93
93
  avatar: string | null;
94
- joined_at?: number | null;
94
+ joined_at?: string | null;
95
95
  premium_since?: number | null;
96
96
  deaf?: boolean;
97
97
  mute?: boolean;
@@ -153,7 +153,7 @@ export interface RawIntegrationDeleteEventFields {
153
153
  export interface RawInviteCreateEventFields {
154
154
  channel_id: string;
155
155
  code: string;
156
- created_at: number;
156
+ created_at: string;
157
157
  guild_id?: string;
158
158
  inviter?: RawUser;
159
159
  max_age: number;
@@ -238,7 +238,7 @@ export interface RawActivity {
238
238
  name: string;
239
239
  type: ActivityType;
240
240
  url?: string | null;
241
- created_at: number;
241
+ created_at: string;
242
242
  timestamps?: RawActivityTimestamps;
243
243
  application_id?: string;
244
244
  details?: string | null;
@@ -329,7 +329,7 @@ export interface JSONChannelPinsUpdateEventFields {
329
329
  lastPinTimestamp?: string | null;
330
330
  }
331
331
  export interface JSONGuildCreateEventExtraFields {
332
- joinedAt?: number;
332
+ joinedAt?: string;
333
333
  large?: boolean;
334
334
  unavailable?: boolean;
335
335
  memberCount?: number;
@@ -373,7 +373,7 @@ export interface JSONGuildMemberUpdateEventFields {
373
373
  user: JSONUser;
374
374
  nick?: string | null;
375
375
  avatar: string | null;
376
- joinedAt?: number | null;
376
+ joinedAt?: string | null;
377
377
  premiumSince?: number | null;
378
378
  deaf?: boolean;
379
379
  mute?: boolean;
@@ -425,7 +425,7 @@ export interface JSONIntegrationDeleteEventFields {
425
425
  export interface JSONInviteCreateEventFields {
426
426
  channelId: string;
427
427
  code: string;
428
- createdAt: number;
428
+ createdAt: string;
429
429
  guildId?: string;
430
430
  inviter?: JSONUser;
431
431
  maxAge: number;
@@ -499,7 +499,7 @@ export interface JSONActivity {
499
499
  name: string;
500
500
  type: ActivityType;
501
501
  url?: string | null;
502
- createdAt: number;
502
+ createdAt: string;
503
503
  timestamps?: JSONActivityTimestamps;
504
504
  applicationId?: string;
505
505
  details?: string | null;
@@ -582,7 +582,7 @@ export interface ChannelPinsUpdateEventFields {
582
582
  lastPinTimestamp?: string | null;
583
583
  }
584
584
  export interface GuildCreateEventExtraFields {
585
- joinedAt?: number;
585
+ joinedAt?: string;
586
586
  large?: boolean;
587
587
  unavailable?: boolean;
588
588
  memberCount?: number;
@@ -626,7 +626,7 @@ export interface GuildMemberUpdateEventFields {
626
626
  user: User;
627
627
  nick?: string | null;
628
628
  avatar: string | null;
629
- joinedAt?: number | null;
629
+ joinedAt?: string | null;
630
630
  premiumSince?: number | null;
631
631
  deaf?: boolean;
632
632
  mute?: boolean;
@@ -678,7 +678,7 @@ export interface IntegrationDeleteEventFields {
678
678
  export interface InviteCreateEventFields {
679
679
  channelId: string;
680
680
  code: string;
681
- createdAt: number;
681
+ createdAt: string;
682
682
  guildId?: string;
683
683
  inviter?: User;
684
684
  maxAge: number;
@@ -752,7 +752,7 @@ export interface Activity {
752
752
  name: string;
753
753
  type: ActivityType;
754
754
  url?: string | null;
755
- createdAt: number;
755
+ createdAt: string;
756
756
  timestamps?: ActivityTimestamps;
757
757
  applicationId?: string;
758
758
  details?: string | null;
@@ -25,7 +25,7 @@ export interface RawGuild {
25
25
  mfa_level: MFALevel;
26
26
  application_id: string | null;
27
27
  system_channel_id: string | null;
28
- system_channel_flags: number;
28
+ system_channel_flags: SystemChannelFlags;
29
29
  rules_channel_id: string | null;
30
30
  max_presences?: number | null;
31
31
  max_members?: number;
@@ -85,7 +85,7 @@ export interface RawGuildMember {
85
85
  nick?: string | null;
86
86
  avatar?: string | null;
87
87
  roles: Array<string>;
88
- joined_at: number;
88
+ joined_at: string;
89
89
  premium_since?: number | null;
90
90
  deaf: boolean;
91
91
  mute: boolean;
@@ -107,7 +107,7 @@ export interface RawIntegration {
107
107
  expire_grace_period?: number;
108
108
  user?: RawUser;
109
109
  account: RawIntegrationAccount;
110
- synced_at?: number;
110
+ synced_at?: string;
111
111
  subscriber_count?: number;
112
112
  revoked?: boolean;
113
113
  application?: RawIntegrationApplication;
@@ -252,7 +252,7 @@ export interface JSONGuildMember {
252
252
  nick?: string | null;
253
253
  avatar?: string | null;
254
254
  roles: Array<string>;
255
- joinedAt: number;
255
+ joinedAt: string;
256
256
  premiumSince?: number | null;
257
257
  deaf: boolean;
258
258
  mute: boolean;
@@ -273,7 +273,7 @@ export interface JSONIntegration {
273
273
  expireGracePeriod?: number;
274
274
  user?: JSONUser;
275
275
  account: JSONIntegrationAccount;
276
- syncedAt?: number;
276
+ syncedAt?: string;
277
277
  subscriberCount?: number;
278
278
  revoked?: boolean;
279
279
  application?: JSONIntegrationApplication;
@@ -1,5 +1,6 @@
1
- import type { RawAttachment, RawChannel, RawGuildMember, RawMessage, RawUser, RawRole, JSONAttachment, JSONUser, JSONGuildMember, JSONMessage, JSONRole, JSONChannel, JSONEntitlement, RawEntitlement } from ".";
2
- import type { ApplicationCommandTypes, ComponentTypes, InteractionType } from "../constants";
1
+ import type { RawAttachment, RawChannel, RawGuildMember, RawMessage, RawUser, RawRole, JSONAttachment, JSONUser, JSONGuildMember, JSONMessage, JSONRole, JSONChannel, JSONEntitlement, RawEntitlement, RawEmbed, RawAllowedMentions, RawActionRow, RawApplicationCommandOptionChoice, JSONEmbed, JSONAllowedMentions, JSONActionRow, JSONApplicationCommandOptionChoice, RawTextInput, JSONTextInput } from ".";
2
+ import type { ApplicationCommandOptionType, ApplicationCommandTypes, ComponentTypes, InteractionCallbackType, InteractionType, MessageFlags } from "../constants";
3
+ import type { File } from "../rest";
3
4
  /** https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-interaction-structure */
4
5
  export interface RawInteraction {
5
6
  id: string;
@@ -32,7 +33,7 @@ export interface RawApplicationCommandData {
32
33
  /** https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-message-component-data-structure */
33
34
  export interface RawMessageComponentData {
34
35
  custom_id: string;
35
- component_type: number;
36
+ component_type: ComponentTypes;
36
37
  values?: Array<string>;
37
38
  resolved?: RawResolvedData;
38
39
  }
@@ -41,32 +42,22 @@ export interface RawModalSubmitData {
41
42
  custom_id: string;
42
43
  components: Array<{
43
44
  type: ComponentTypes.ActionRow;
44
- components: Array<{
45
- type: ComponentTypes.TextInput;
46
- custom_id: string;
47
- style: number;
48
- label: string;
49
- min_length?: number;
50
- max_length?: number;
51
- required?: boolean;
52
- value?: string;
53
- placeholder?: string;
54
- }>;
45
+ components: Array<RawTextInput>;
55
46
  }>;
56
47
  }
57
48
  /** https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-resolved-data-structure */
58
49
  export interface RawResolvedData {
59
- users?: Map<string, RawUser>;
60
- members?: Map<string, RawGuildMember>;
61
- roles?: Map<string, RawRole>;
62
- channels?: Map<string, RawChannel>;
63
- messages?: Map<string, RawMessage>;
64
- attachments?: Map<string, RawAttachment>;
50
+ users?: Record<string, RawUser>;
51
+ members?: Record<string, RawGuildMember>;
52
+ roles?: Record<string, RawRole>;
53
+ channels?: Record<string, RawChannel>;
54
+ messages?: Record<string, RawMessage>;
55
+ attachments?: Record<string, RawAttachment>;
65
56
  }
66
57
  /** https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-application-command-interaction-data-option-structure */
67
58
  export interface RawApplicationCommandInteractionDataOption {
68
59
  name: string;
69
- type: number;
60
+ type: ApplicationCommandOptionType;
70
61
  value?: string | number | boolean;
71
62
  options?: Array<RawApplicationCommandInteractionDataOption>;
72
63
  focused?: boolean;
@@ -79,6 +70,25 @@ export interface RawMessageInteraction {
79
70
  user: RawUser;
80
71
  member?: RawGuildMember;
81
72
  }
73
+ /** https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-response-object-interaction-response-structure */
74
+ export interface RawInteractionResponse {
75
+ type: InteractionCallbackType;
76
+ data?: RawInteractionCallbackData;
77
+ }
78
+ /** https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-response-object-interaction-callback-data-structure */
79
+ export interface RawInteractionCallbackData {
80
+ tts?: boolean;
81
+ content?: string;
82
+ embeds?: Array<RawEmbed>;
83
+ allowed_mentions?: RawAllowedMentions;
84
+ flags?: MessageFlags;
85
+ components?: Array<RawActionRow>;
86
+ attachments?: Array<RawAttachment>;
87
+ files?: Array<File>;
88
+ choices?: Array<RawApplicationCommandOptionChoice>;
89
+ custom_id?: string;
90
+ title?: string;
91
+ }
82
92
  export interface JSONInteraction {
83
93
  id: string;
84
94
  applicationId: string;
@@ -108,7 +118,7 @@ export interface JSONApplicationCommandData {
108
118
  }
109
119
  export interface JSONMessageComponentData {
110
120
  customId: string;
111
- componentType: number;
121
+ componentType: ComponentTypes;
112
122
  values?: Array<string>;
113
123
  resolved?: JSONResolvedData;
114
124
  }
@@ -116,30 +126,20 @@ export interface JSONModalSubmitData {
116
126
  customId: string;
117
127
  components: Array<{
118
128
  type: ComponentTypes.ActionRow;
119
- components: Array<{
120
- type: ComponentTypes.TextInput;
121
- customId: string;
122
- style: number;
123
- label: string;
124
- minLength?: number;
125
- maxLength?: number;
126
- required?: boolean;
127
- value?: string;
128
- placeholder?: string;
129
- }>;
129
+ components: Array<JSONTextInput>;
130
130
  }>;
131
131
  }
132
132
  export interface JSONResolvedData {
133
- users?: Array<JSONUser>;
134
- members?: Array<JSONGuildMember>;
135
- roles?: Array<JSONRole>;
136
- channels?: Array<JSONChannel>;
137
- messages?: Array<JSONMessage>;
138
- attachments?: Array<JSONAttachment>;
133
+ users?: Map<string, JSONUser>;
134
+ members?: Map<string, JSONGuildMember>;
135
+ roles?: Map<string, JSONRole>;
136
+ channels?: Map<string, JSONChannel>;
137
+ messages?: Map<string, JSONMessage>;
138
+ attachments?: Map<string, JSONAttachment>;
139
139
  }
140
140
  export interface JSONApplicationCommandInteractionDataOption {
141
141
  name: string;
142
- type: number;
142
+ type: ApplicationCommandOptionType;
143
143
  value?: string | number | boolean;
144
144
  options?: Array<JSONApplicationCommandInteractionDataOption>;
145
145
  focused?: boolean;
@@ -151,3 +151,20 @@ export interface JSONMessageInteraction {
151
151
  user: JSONUser;
152
152
  member?: JSONGuildMember;
153
153
  }
154
+ export interface JSONInteractionResponse {
155
+ type: InteractionCallbackType;
156
+ data?: JSONInteractionCallbackData;
157
+ }
158
+ export interface JSONInteractionCallbackData {
159
+ tts?: boolean;
160
+ content?: string;
161
+ embeds?: Array<JSONEmbed>;
162
+ allowedMentions?: JSONAllowedMentions;
163
+ flags?: MessageFlags;
164
+ components?: Array<JSONActionRow>;
165
+ attachments?: Array<JSONAttachment>;
166
+ files?: Array<File>;
167
+ choices?: Array<JSONApplicationCommandOptionChoice>;
168
+ customId?: string;
169
+ title?: string;
170
+ }
@@ -1,11 +1,12 @@
1
1
  import type { JSONApplication, JSONChannel, JSONGuild, JSONGuildMember, JSONGuildScheduledEvent, JSONUser, RawApplication, RawChannel, RawGuild, RawGuildMember, RawGuildScheduledEvent, RawUser } from ".";
2
+ import type { InviteTargetTypes } from "../constants";
2
3
  /** https://discord.com/developers/docs/resources/invite#invite-object-invite-structure */
3
4
  export interface RawInvite {
4
5
  code: string;
5
6
  guild?: RawGuild;
6
7
  channel: RawChannel;
7
8
  inviter?: RawUser;
8
- target_type?: number;
9
+ target_type?: InviteTargetTypes;
9
10
  target_user?: RawUser;
10
11
  target_application?: RawApplication;
11
12
  approximate_presence_count?: number;
@@ -34,7 +35,7 @@ export interface JSONInvite {
34
35
  guild?: JSONGuild;
35
36
  channel: JSONChannel;
36
37
  inviter?: JSONUser;
37
- targetType?: number;
38
+ targetType?: InviteTargetTypes;
38
39
  targetUser?: JSONUser;
39
40
  targetApplication?: JSONApplication;
40
41
  approximatePresenceCount?: number;
@@ -5,7 +5,7 @@ export interface RawButton {
5
5
  type: ComponentTypes.Button;
6
6
  style: ButtonStyles;
7
7
  label?: string;
8
- emoji?: Partial<Pick<RawEmoji, "name" | "id" | "animated">>;
8
+ emoji?: Pick<RawEmoji, "name" | "id" | "animated">;
9
9
  custom_id?: string;
10
10
  url?: string;
11
11
  disabled?: boolean;
@@ -27,7 +27,7 @@ export interface RawSelectOption {
27
27
  label: string;
28
28
  value: string;
29
29
  description?: string;
30
- emoji?: Partial<Pick<RawEmoji, "name" | "id" | "animated">>;
30
+ emoji?: Pick<RawEmoji, "name" | "id" | "animated">;
31
31
  default?: boolean;
32
32
  }
33
33
  /** https://discord.com/developers/docs/interactions/message-components#select-menu-object-select-default-value-structure */
@@ -56,7 +56,7 @@ export interface JSONButton {
56
56
  type: ComponentTypes.Button;
57
57
  style: ButtonStyles;
58
58
  label?: string;
59
- emoji?: Partial<Pick<JSONEmoji, "name" | "id" | "animated">>;
59
+ emoji?: Pick<JSONEmoji, "name" | "id" | "animated">;
60
60
  customId?: string;
61
61
  url?: string;
62
62
  disabled?: boolean;
@@ -76,7 +76,7 @@ export interface JSONSelectOption {
76
76
  label: string;
77
77
  value: string;
78
78
  description?: string;
79
- emoji?: Partial<Pick<JSONEmoji, "name" | "id" | "animated">>;
79
+ emoji?: Pick<JSONEmoji, "name" | "id" | "animated">;
80
80
  default?: boolean;
81
81
  }
82
82
  export interface JSONDefaultValue {
@@ -17,7 +17,7 @@ export interface RawSKU {
17
17
  export interface JSONSKU {
18
18
  id: string;
19
19
  type: SKUTypes;
20
- dependentSkuId?: string | null;
20
+ dependentSKUId?: string | null;
21
21
  applicationId: string;
22
22
  manifestLabels?: null;
23
23
  accessType?: number;
@@ -1,10 +1,11 @@
1
+ import { PrivacyLevel } from "../constants";
1
2
  /** https://discord.com/developers/docs/resources/stage-instance#stage-instance-object-stage-instance-structure */
2
3
  export interface RawStageInstance {
3
4
  id: string;
4
5
  guild_id: string;
5
6
  channel_id: string;
6
7
  topic: string;
7
- privacy_level: number;
8
+ privacy_level: PrivacyLevel;
8
9
  discoverable_disabled: boolean;
9
10
  guild_scheduled_event_id: string | null;
10
11
  }
@@ -13,7 +14,7 @@ export interface JSONStageInstance {
13
14
  guildId: string;
14
15
  channelId: string;
15
16
  topic: string;
16
- privacyLevel: number;
17
+ privacyLevel: PrivacyLevel;
17
18
  discoverableDisabled: boolean;
18
19
  guildScheduledEventId: string | null;
19
20
  }
@@ -1,5 +1,5 @@
1
1
  import type { JSONUser, RawUser } from ".";
2
- import { TeamMemberRoleTypes } from "../constants";
2
+ import type { TeamMemberRoleTypes } from "../constants";
3
3
  /** https://discord.com/developers/docs/topics/teams#data-models-team-object */
4
4
  export interface RawTeam {
5
5
  icon: string | null;
@@ -1,4 +1,4 @@
1
- import type { UserFlags, Services, VisibilityTypes } from "../constants";
1
+ import type { UserFlags, Services, VisibilityTypes, PremiumTypes } from "../constants";
2
2
  import type { JSONApplicationRoleConnectionMetadata, JSONIntegration, RawApplicationRoleConnectionMetadata, RawIntegration } from ".";
3
3
  /** https://discord.com/developers/docs/resources/user#user-object-user-structure */
4
4
  export interface RawUser {
@@ -16,7 +16,7 @@ export interface RawUser {
16
16
  verified?: boolean;
17
17
  email?: string;
18
18
  flags?: UserFlags;
19
- premium_type?: number;
19
+ premium_type?: PremiumTypes;
20
20
  public_flags?: UserFlags;
21
21
  avatar_decoration?: string | null;
22
22
  }
@@ -54,7 +54,7 @@ export interface JSONUser {
54
54
  verified?: boolean;
55
55
  email?: string;
56
56
  flags?: UserFlags;
57
- premiumType?: number;
57
+ premiumType?: PremiumTypes;
58
58
  publicFlags?: UserFlags;
59
59
  avatarDecoration?: string | null;
60
60
  }