disgroove 2.2.7-dev.fca4921 → 3.0.0-dev.bc90599

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 (80) hide show
  1. package/dist/lib/Client.d.ts +291 -254
  2. package/dist/lib/Client.js +553 -459
  3. package/dist/lib/constants.d.ts +29 -21
  4. package/dist/lib/constants.js +33 -24
  5. package/dist/lib/gateway/Shard.d.ts +2 -2
  6. package/dist/lib/gateway/Shard.js +98 -82
  7. package/dist/lib/index.d.ts +5 -1
  8. package/dist/lib/index.js +5 -1
  9. package/dist/lib/rest/Endpoints.d.ts +95 -91
  10. package/dist/lib/rest/Endpoints.js +111 -102
  11. package/dist/lib/rest/RequestManager.d.ts +1 -3
  12. package/dist/lib/transformers/ApplicationCommands.js +4 -4
  13. package/dist/lib/transformers/Applications.js +4 -4
  14. package/dist/lib/transformers/AuditLogs.js +10 -10
  15. package/dist/lib/transformers/AutoModeration.js +6 -6
  16. package/dist/lib/transformers/Channels.js +16 -16
  17. package/dist/lib/transformers/Components.d.ts +13 -3
  18. package/dist/lib/transformers/Components.js +283 -156
  19. package/dist/lib/transformers/Entitlements.d.ts +2 -2
  20. package/dist/lib/transformers/Entitlements.js +16 -16
  21. package/dist/lib/transformers/GuildScheduledEvents.js +8 -8
  22. package/dist/lib/transformers/GuildTemplates.js +4 -4
  23. package/dist/lib/transformers/Guilds.js +28 -28
  24. package/dist/lib/transformers/Interactions.js +300 -55
  25. package/dist/lib/transformers/Lobbies.d.ts +7 -0
  26. package/dist/lib/transformers/Lobbies.js +38 -0
  27. package/dist/lib/transformers/Messages.d.ts +4 -3
  28. package/dist/lib/transformers/Messages.js +36 -50
  29. package/dist/lib/transformers/Polls.js +2 -2
  30. package/dist/lib/transformers/Presences.js +6 -6
  31. package/dist/lib/transformers/Roles.js +8 -8
  32. package/dist/lib/transformers/SKUs.js +2 -2
  33. package/dist/lib/transformers/Soundboards.js +6 -6
  34. package/dist/lib/transformers/StageInstances.js +6 -6
  35. package/dist/lib/transformers/Stickers.js +3 -3
  36. package/dist/lib/transformers/Subscriptions.js +8 -8
  37. package/dist/lib/transformers/Teams.js +4 -4
  38. package/dist/lib/transformers/Users.js +6 -6
  39. package/dist/lib/transformers/Voice.js +8 -8
  40. package/dist/lib/transformers/Webhooks.js +6 -6
  41. package/dist/lib/transformers/index.d.ts +2 -1
  42. package/dist/lib/transformers/index.js +2 -1
  43. package/dist/lib/types/application-command.d.ts +9 -4
  44. package/dist/lib/types/application-role-connection-metadata.d.ts +1 -0
  45. package/dist/lib/types/application.d.ts +12 -7
  46. package/dist/lib/types/audit-log.d.ts +9 -5
  47. package/dist/lib/types/auto-moderation.d.ts +7 -3
  48. package/dist/lib/types/channel.d.ts +17 -23
  49. package/dist/lib/types/common.d.ts +2 -0
  50. package/dist/lib/types/components.d.ts +478 -0
  51. package/dist/lib/types/components.js +2 -0
  52. package/dist/lib/types/emoji.d.ts +1 -0
  53. package/dist/lib/types/entitlements.d.ts +5 -4
  54. package/dist/lib/types/gateway-events.d.ts +203 -130
  55. package/dist/lib/types/guild-scheduled-event.d.ts +10 -5
  56. package/dist/lib/types/guild-template.d.ts +3 -2
  57. package/dist/lib/types/guild.d.ts +40 -22
  58. package/dist/lib/types/interaction.d.ts +35 -18
  59. package/dist/lib/types/invite.d.ts +5 -2
  60. package/dist/lib/types/lobby.d.ts +31 -0
  61. package/dist/lib/types/lobby.js +2 -0
  62. package/dist/lib/types/message-components.d.ts +334 -118
  63. package/dist/lib/types/message.d.ts +30 -18
  64. package/dist/lib/types/poll.d.ts +7 -1
  65. package/dist/lib/types/role.d.ts +8 -5
  66. package/dist/lib/types/sku.d.ts +2 -1
  67. package/dist/lib/types/soundboard.d.ts +4 -3
  68. package/dist/lib/types/stage-instance.d.ts +4 -3
  69. package/dist/lib/types/sticker.d.ts +8 -5
  70. package/dist/lib/types/subscription.d.ts +6 -5
  71. package/dist/lib/types/team.d.ts +4 -2
  72. package/dist/lib/types/user.d.ts +10 -3
  73. package/dist/lib/types/voice.d.ts +6 -4
  74. package/dist/lib/types/webhook.d.ts +4 -3
  75. package/dist/lib/utils/CDN.d.ts +22 -22
  76. package/dist/lib/utils/CDN.js +22 -22
  77. package/dist/lib/utils/formatters.d.ts +7 -7
  78. package/dist/lib/utils/formatters.js +19 -19
  79. package/dist/package.json +4 -4
  80. package/package.json +4 -4
@@ -1,10 +1,10 @@
1
1
  import type { MessageTypes, MessageFlags, MessageActivityTypes, InteractionType, ApplicationIntegrationTypes, MessageReferenceTypes, AttachmentFlags, ChannelTypes, AllowedMentionTypes, EmbedTypes } from "../constants";
2
2
  import type { Application, RawApplication } from "./application";
3
- import type { Channel, RawChannel, RawRoleSubscriptionData, RoleSubscriptionData } from "./channel";
3
+ import type { Channel, RawChannel } from "./channel";
4
4
  import type { snowflake, timestamp } from "./common";
5
5
  import type { Emoji, RawEmoji } from "./emoji";
6
6
  import type { MessageInteraction, RawMessageInteraction, RawResolvedData, ResolvedData } from "./interaction";
7
- import type { ActionRow, Container, File, MediaGallery, RawActionRow, RawContainer, RawFile, RawMediaGallery, RawSection, RawSeparator, RawTextDisplay, Section, Separator, TextDisplay } from "./message-components";
7
+ import type { ActionRow, Container, File, MediaGallery, RawActionRow, RawContainer, RawFile, RawMediaGallery, RawSection, RawSeparator, RawTextDisplay, Section, Separator, TextDisplay } from "./components";
8
8
  import type { Poll, RawPoll } from "./poll";
9
9
  import type { RawStickerItem, RawSticker, Sticker, StickerItem } from "./sticker";
10
10
  import type { RawUser, User } from "./user";
@@ -38,7 +38,7 @@ export interface RawMessage {
38
38
  interaction_metadata?: RawMessageInteractionMetadata;
39
39
  interaction?: RawMessageInteraction;
40
40
  thread?: RawChannel;
41
- components?: Array<RawMessageTopLevelComponent>;
41
+ components?: Array<RawActionRow | RawSection | RawTextDisplay | RawMediaGallery | RawFile | RawSeparator | RawContainer>;
42
42
  sticker_items?: Array<RawStickerItem>;
43
43
  stickers?: Array<RawSticker>;
44
44
  position?: number;
@@ -47,7 +47,6 @@ export interface RawMessage {
47
47
  poll?: RawPoll;
48
48
  call?: RawMessageCall;
49
49
  }
50
- export type RawMessageTopLevelComponent = RawActionRow | RawTextDisplay | RawContainer | RawFile | RawSection | RawSeparator | RawMediaGallery;
51
50
  /** https://discord.com/developers/docs/resources/message#message-object-message-activity-structure */
52
51
  export interface RawMessageActivity {
53
52
  type: MessageActivityTypes;
@@ -197,6 +196,13 @@ export interface RawAllowedMentions {
197
196
  users?: Array<snowflake>;
198
197
  replied_user?: boolean;
199
198
  }
199
+ /** https://discord.com/developers/docs/resources/message#role-subscription-data-object-role-subscription-data-object-structure */
200
+ export interface RawRoleSubscriptionData {
201
+ role_subscription_listing_id: snowflake;
202
+ tier_name: string;
203
+ total_months_subscribed: number;
204
+ is_renewal: boolean;
205
+ }
200
206
  /** https://discord.com/developers/docs/resources/message#message-pin-object-message-pin-structure */
201
207
  export interface RawMessagePin {
202
208
  pinnet_at: timestamp;
@@ -204,7 +210,7 @@ export interface RawMessagePin {
204
210
  }
205
211
  export interface Message {
206
212
  id: snowflake;
207
- channelID: snowflake;
213
+ channelId: snowflake;
208
214
  author: User;
209
215
  content: string;
210
216
  timestamp: timestamp;
@@ -219,11 +225,11 @@ export interface Message {
219
225
  reactions?: Array<Reaction>;
220
226
  nonce?: number | string;
221
227
  pinned: boolean;
222
- webhookID?: snowflake;
228
+ webhookId?: snowflake;
223
229
  type: MessageTypes;
224
230
  activity?: MessageActivity;
225
231
  application?: Application;
226
- applicationID?: snowflake;
232
+ applicationId?: snowflake;
227
233
  flags?: MessageFlags;
228
234
  messageReference?: MessageReference;
229
235
  messageSnapshots?: Array<MessageSnapshot>;
@@ -231,7 +237,7 @@ export interface Message {
231
237
  interactionMetadata?: MessageInteractionMetadata;
232
238
  interaction?: MessageInteraction;
233
239
  thread?: Channel;
234
- components?: Array<MessageTopLevelComponent>;
240
+ components?: Array<ActionRow | Section | TextDisplay | MediaGallery | File | Separator | Container>;
235
241
  stickerItems?: Array<StickerItem>;
236
242
  stickers?: Array<Sticker>;
237
243
  position?: number;
@@ -240,18 +246,17 @@ export interface Message {
240
246
  poll?: Poll;
241
247
  call?: MessageCall;
242
248
  }
243
- export type MessageTopLevelComponent = ActionRow | TextDisplay | Container | File | Section | Separator | MediaGallery;
244
249
  export interface MessageActivity {
245
250
  type: MessageActivityTypes;
246
- partyID?: string;
251
+ partyId?: string;
247
252
  }
248
253
  export interface MessageInteractionMetadata {
249
254
  id: snowflake;
250
255
  type: InteractionType;
251
256
  user: User;
252
257
  authorizingIntegrationOwners: Record<ApplicationIntegrationTypes, string>;
253
- originalResponseMessageID?: snowflake;
254
- interactedMessageID?: snowflake;
258
+ originalResponseMessageId?: snowflake;
259
+ interactedMessageId?: snowflake;
255
260
  triggeringInteractionMetadata?: MessageInteractionMetadata;
256
261
  }
257
262
  export interface MessageCall {
@@ -260,9 +265,9 @@ export interface MessageCall {
260
265
  }
261
266
  export interface MessageReference {
262
267
  type?: MessageReferenceTypes;
263
- messageID?: snowflake;
264
- channelID?: snowflake;
265
- guildID?: snowflake;
268
+ messageId?: snowflake;
269
+ channelId?: snowflake;
270
+ guildId?: snowflake;
266
271
  failIfNotExists?: boolean;
267
272
  }
268
273
  export interface MessageSnapshot {
@@ -337,9 +342,9 @@ export interface PollResultEmbedFields {
337
342
  pollQuestionText: string;
338
343
  victorAnswerVotes: Array<number>;
339
344
  totalVotes: number;
340
- victorAnswerID?: snowflake;
345
+ victorAnswerId?: snowflake;
341
346
  victorAnswerText?: string;
342
- victorAnswerEmojiID?: snowflake;
347
+ victorAnswerEmojiId?: snowflake;
343
348
  victorAnswerEmojiName?: string;
344
349
  victorAnswerEmojiAnimated?: boolean;
345
350
  }
@@ -361,7 +366,7 @@ export interface Attachment {
361
366
  }
362
367
  export interface ChannelMention {
363
368
  id: snowflake;
364
- guildID: snowflake;
369
+ guildId: snowflake;
365
370
  type: ChannelTypes;
366
371
  name: string;
367
372
  }
@@ -371,6 +376,13 @@ export interface AllowedMentions {
371
376
  users?: Array<snowflake>;
372
377
  repliedUser?: boolean;
373
378
  }
379
+ /** https://discord.com/developers/docs/resources/message#role-subscription-data-object-role-subscription-data-object-structure */
380
+ export interface RoleSubscriptionData {
381
+ roleSubscriptionListingId: snowflake;
382
+ tierName: string;
383
+ totalMonthsSubscribed: number;
384
+ isRenewal: boolean;
385
+ }
374
386
  export interface MessagePin {
375
387
  pinnetAt: timestamp;
376
388
  message: Message;
@@ -38,6 +38,7 @@ export interface RawPollAnswerCount {
38
38
  count: number;
39
39
  me_voted: boolean;
40
40
  }
41
+ /** https://discord.com/developers/docs/resources/poll#poll-object-poll-object-structure */
41
42
  export interface Poll {
42
43
  question: PollMedia;
43
44
  answers: Array<PollAnswer>;
@@ -46,6 +47,7 @@ export interface Poll {
46
47
  layoutType: LayoutType;
47
48
  results?: PollResults;
48
49
  }
50
+ /** https://discord.com/developers/docs/resources/poll#poll-create-request-object-poll-create-request-object-structure */
49
51
  export interface PollCreateParams {
50
52
  question: PollMedia;
51
53
  answers: Array<PollAnswer>;
@@ -53,18 +55,22 @@ export interface PollCreateParams {
53
55
  allowMultiselect?: boolean;
54
56
  layoutType?: LayoutType;
55
57
  }
58
+ /** https://discord.com/developers/docs/resources/poll#poll-media-object-poll-media-object-structure */
56
59
  export interface PollMedia {
57
60
  text?: string;
58
61
  emoji?: Pick<Emoji, "id" | "name">;
59
62
  }
63
+ /** https://discord.com/developers/docs/resources/poll#poll-answer-object-poll-answer-object-structure */
60
64
  export interface PollAnswer {
61
- answerID: number;
65
+ answerId: number;
62
66
  pollMedia: PollMedia;
63
67
  }
68
+ /** https://discord.com/developers/docs/resources/poll#poll-results-object-poll-results-object-structure */
64
69
  export interface PollResults {
65
70
  isFinalized: boolean;
66
71
  answerCounts: Array<PollAnswerCount>;
67
72
  }
73
+ /** https://discord.com/developers/docs/resources/poll#poll-results-object-poll-answer-count-object-structure */
68
74
  export interface PollAnswerCount {
69
75
  id: number;
70
76
  count: number;
@@ -29,8 +29,9 @@ export interface RawRoleTags {
29
29
  export interface RawRoleColors {
30
30
  primary_color: number;
31
31
  secondary_color: number | null;
32
- tertiary_colors: number | null;
32
+ tertiary_color: number | null;
33
33
  }
34
+ /** https://discord.com/developers/docs/topics/permissions#role-object-role-structure */
34
35
  export interface Role {
35
36
  id: snowflake;
36
37
  name: string;
@@ -46,16 +47,18 @@ export interface Role {
46
47
  tags?: RoleTags;
47
48
  flags: RoleFlags;
48
49
  }
50
+ /** https://discord.com/developers/docs/topics/permissions#role-object-role-tags-structure */
49
51
  export interface RoleTags {
50
- botID?: snowflake;
51
- integrationID?: snowflake;
52
+ botId?: snowflake;
53
+ integrationId?: snowflake;
52
54
  premiumSubscriber?: null;
53
- subscriptionListingID?: snowflake;
55
+ subscriptionListingId?: snowflake;
54
56
  availableForPurchase?: null;
55
57
  guildConnections?: null;
56
58
  }
59
+ /** https://discord.com/developers/docs/topics/permissions#role-object-role-colors-object */
57
60
  export interface RoleColors {
58
61
  primaryColor: number;
59
62
  secondaryColor: number | null;
60
- tertiaryColors: number | null;
63
+ tertiaryColor: number | null;
61
64
  }
@@ -9,10 +9,11 @@ export interface RawSKU {
9
9
  slug: string;
10
10
  flags: SKUFlags;
11
11
  }
12
+ /** https://discord.com/developers/docs/resources/sku#sku-object-sku-structure */
12
13
  export interface SKU {
13
14
  id: snowflake;
14
15
  type: SKUTypes;
15
- applicationID: snowflake;
16
+ applicationId: snowflake;
16
17
  name: string;
17
18
  slug: string;
18
19
  flags: SKUFlags;
@@ -11,13 +11,14 @@ export interface RawSoundboardSound {
11
11
  available: boolean;
12
12
  user?: RawUser;
13
13
  }
14
+ /** https://discord.com/developers/docs/resources/soundboard#soundboard-sound-structure */
14
15
  export interface SoundboardSound {
15
16
  name: string;
16
- soundID: snowflake;
17
+ soundId: snowflake;
17
18
  volume: number;
18
- emojiID: snowflake | null;
19
+ emojiId: snowflake | null;
19
20
  emojiName: string | null;
20
- guildID?: snowflake;
21
+ guildId?: snowflake;
21
22
  available: boolean;
22
23
  user?: User;
23
24
  }
@@ -10,12 +10,13 @@ export interface RawStageInstance {
10
10
  discoverable_disabled: boolean;
11
11
  guild_scheduled_event_id: snowflake | null;
12
12
  }
13
+ /** https://discord.com/developers/docs/resources/stage-instance#stage-instance-object-stage-instance-structure */
13
14
  export interface StageInstance {
14
15
  id: snowflake;
15
- guildID: snowflake;
16
- channelID: snowflake;
16
+ guildId: snowflake;
17
+ channelId: snowflake;
17
18
  topic: string;
18
19
  privacyLevel: PrivacyLevel;
19
20
  discoverableDisabled: boolean;
20
- guildScheduledEventID: snowflake | null;
21
+ guildScheduledEventId: snowflake | null;
21
22
  }
@@ -31,30 +31,33 @@ export interface RawStickerPack {
31
31
  description: string;
32
32
  banner_asset_id?: snowflake;
33
33
  }
34
+ /** https://discord.com/developers/docs/resources/sticker#sticker-object-sticker-structure */
34
35
  export interface Sticker {
35
36
  id: snowflake;
36
- packID?: snowflake;
37
+ packId?: snowflake;
37
38
  name: string;
38
39
  description: string | null;
39
40
  tags: string;
40
41
  type: StickerTypes;
41
42
  formatType: StickerFormatTypes;
42
43
  available?: boolean;
43
- guildID?: snowflake;
44
+ guildId?: snowflake;
44
45
  user?: User;
45
46
  sortValue?: number;
46
47
  }
48
+ /** https://discord.com/developers/docs/resources/sticker#sticker-item-object-sticker-item-structure */
47
49
  export interface StickerItem {
48
50
  id: snowflake;
49
51
  name: string;
50
52
  formatType: StickerFormatTypes;
51
53
  }
54
+ /** https://discord.com/developers/docs/resources/sticker#sticker-pack-object-sticker-pack-structure */
52
55
  export interface StickerPack {
53
56
  id: snowflake;
54
57
  stickers: Array<Sticker>;
55
58
  name: string;
56
- skuID: snowflake;
57
- coverStickerID?: snowflake;
59
+ skuId: snowflake;
60
+ coverStickerId?: snowflake;
58
61
  description: string;
59
- bannerAssetID?: snowflake;
62
+ bannerAssetId?: snowflake;
60
63
  }
@@ -6,19 +6,20 @@ export interface RawSubscription {
6
6
  user_id: snowflake;
7
7
  sku_ids: Array<snowflake>;
8
8
  entitlement_ids: Array<snowflake>;
9
- renewal_sku_ids: Array<snowflake>;
9
+ renewal_sku_ids: Array<snowflake> | null;
10
10
  current_period_start: timestamp;
11
11
  current_period_end: timestamp;
12
12
  status: SubscriptionStatuses;
13
13
  canceled_at: timestamp | null;
14
14
  country?: string;
15
15
  }
16
+ /** https://discord.com/developers/docs/resources/subscription#subscription-object */
16
17
  export interface Subscription {
17
18
  id: snowflake;
18
- userID: snowflake;
19
- skuIDs: Array<snowflake>;
20
- entitlementIDs: Array<snowflake>;
21
- renewalSKUIDs: Array<snowflake>;
19
+ userId: snowflake;
20
+ skuIds: Array<snowflake>;
21
+ entitlementIds: Array<snowflake>;
22
+ renewalSKUIds: Array<snowflake> | null;
22
23
  currentPeriodStart: timestamp;
23
24
  currentPeriodEnd: timestamp;
24
25
  status: SubscriptionStatuses;
@@ -16,16 +16,18 @@ export interface RawTeamMember {
16
16
  user: RawUser;
17
17
  role: TeamMemberRoleTypes;
18
18
  }
19
+ /** https://discord.com/developers/docs/topics/teams#data-models-team-object */
19
20
  export interface Team {
20
21
  icon: string | null;
21
22
  id: snowflake;
22
23
  members: Array<TeamMember>;
23
24
  name: string;
24
- ownerUserID: snowflake;
25
+ ownerUserId: snowflake;
25
26
  }
27
+ /** https://discord.com/developers/docs/topics/teams#data-models-team-member-object */
26
28
  export interface TeamMember {
27
29
  membershipState: number;
28
- teamID: snowflake;
30
+ teamId: snowflake;
29
31
  user: User;
30
32
  role: TeamMemberRoleTypes;
31
33
  }
@@ -66,6 +66,7 @@ export interface RawApplicationRoleConnection {
66
66
  platform_username: string | null;
67
67
  metadata: RawApplicationRoleConnectionMetadata;
68
68
  }
69
+ /** https://discord.com/developers/docs/resources/user#user-object-user-structure */
69
70
  export interface User {
70
71
  id: snowflake;
71
72
  username: string;
@@ -87,25 +88,30 @@ export interface User {
87
88
  collectibles?: Collectibles | null;
88
89
  primaryGuild?: UserPrimaryGuild | null;
89
90
  }
91
+ /** https://discord.com/developers/docs/resources/user#user-object-user-primary-guild */
90
92
  export interface UserPrimaryGuild {
91
- identityGuildID: snowflake | null;
93
+ identityGuildId: snowflake | null;
92
94
  identityEnabled: boolean | null;
93
95
  tag: string | null;
94
96
  badge: string | null;
95
97
  }
98
+ /** https://discord.com/developers/docs/resources/user#avatar-decoration-data-object-avatar-decoration-data-structure */
96
99
  export interface AvatarDecorationData {
97
100
  asset: string;
98
- skuID: snowflake;
101
+ skuId: snowflake;
99
102
  }
103
+ /** https://discord.com/developers/docs/resources/user#collectibles-object-collectibles-structure */
100
104
  export interface Collectibles {
101
105
  nameplate?: Nameplate;
102
106
  }
107
+ /** https://discord.com/developers/docs/resources/user#nameplate-object-nameplate-structure */
103
108
  export interface Nameplate {
104
- skuID: snowflake;
109
+ skuId: snowflake;
105
110
  asset: string;
106
111
  label: string;
107
112
  palette: string;
108
113
  }
114
+ /** https://discord.com/developers/docs/resources/user#connection-object-connection-structure */
109
115
  export interface Connection {
110
116
  id: snowflake;
111
117
  name: string;
@@ -118,6 +124,7 @@ export interface Connection {
118
124
  twoWayLink: boolean;
119
125
  visibility: VisibilityTypes;
120
126
  }
127
+ /** https://discord.com/developers/docs/resources/user#application-role-connection-object-application-role-connection-structure */
121
128
  export interface ApplicationRoleConnection {
122
129
  platformName: string | null;
123
130
  platformUsername: string | null;
@@ -24,12 +24,13 @@ export interface RawVoiceRegion {
24
24
  deprecated: boolean;
25
25
  custom: boolean;
26
26
  }
27
+ /** https://discord.com/developers/docs/resources/voice#voice-state-object-voice-state-structure */
27
28
  export interface VoiceState {
28
- guildID?: snowflake;
29
- channelID: snowflake | null;
30
- userID: snowflake;
29
+ guildId?: snowflake;
30
+ channelId: snowflake | null;
31
+ userId: snowflake;
31
32
  member?: GuildMember;
32
- sessionID: string;
33
+ sessionId: string;
33
34
  deaf: boolean;
34
35
  mute: boolean;
35
36
  selfDeaf: boolean;
@@ -39,6 +40,7 @@ export interface VoiceState {
39
40
  suppress: boolean;
40
41
  requestToSpeakTimestamp: timestamp | null;
41
42
  }
43
+ /** https://discord.com/developers/docs/resources/voice#voice-region-object-voice-region-structure */
42
44
  export interface VoiceRegion {
43
45
  id: snowflake;
44
46
  name: string;
@@ -18,16 +18,17 @@ export interface RawWebhook {
18
18
  source_channel?: RawChannel;
19
19
  url?: string;
20
20
  }
21
+ /** https://discord.com/developers/docs/resources/webhook#webhook-object-webhook-structure */
21
22
  export interface Webhook {
22
23
  id: snowflake;
23
24
  type: WebhookTypes;
24
- guildID?: snowflake | null;
25
- channelID: snowflake | null;
25
+ guildId?: snowflake | null;
26
+ channelId: snowflake | null;
26
27
  user?: User;
27
28
  name: string | null;
28
29
  avatar: string | null;
29
30
  token?: string;
30
- applicationID: snowflake | null;
31
+ applicationId: snowflake | null;
31
32
  sourceGuild?: Guild;
32
33
  sourceChannel?: Channel;
33
34
  url?: string;
@@ -1,26 +1,26 @@
1
1
  import { ImageFormats } from "../constants";
2
2
  import type { snowflake } from "../types/common";
3
3
  export declare const cdnURL: (cdnEndpoint: string, imageFormat?: ImageFormats) => `https://cdn.discordapp.com/${string}.jpg` | `https://cdn.discordapp.com/${string}.jpeg` | `https://cdn.discordapp.com/${string}.png` | `https://cdn.discordapp.com/${string}.webp` | `https://cdn.discordapp.com/${string}.gif` | `https://cdn.discordapp.com/${string}.avif` | `https://cdn.discordapp.com/${string}.json`;
4
- export declare const achievementIcon: (applicationID: snowflake, achievementID: snowflake, iconHash: string, imageFormat?: ImageFormats.PNG | ImageFormats.JPEG | ImageFormats.JPG | ImageFormats.WebP) => `https://cdn.discordapp.com/${string}.jpg` | `https://cdn.discordapp.com/${string}.jpeg` | `https://cdn.discordapp.com/${string}.png` | `https://cdn.discordapp.com/${string}.webp` | `https://cdn.discordapp.com/${string}.gif` | `https://cdn.discordapp.com/${string}.avif` | `https://cdn.discordapp.com/${string}.json`;
5
- export declare const applicationAsset: (applicationID: snowflake, assetID: snowflake, imageFormat?: ImageFormats.PNG | ImageFormats.JPEG | ImageFormats.JPG | ImageFormats.WebP) => `https://cdn.discordapp.com/${string}.jpg` | `https://cdn.discordapp.com/${string}.jpeg` | `https://cdn.discordapp.com/${string}.png` | `https://cdn.discordapp.com/${string}.webp` | `https://cdn.discordapp.com/${string}.gif` | `https://cdn.discordapp.com/${string}.avif` | `https://cdn.discordapp.com/${string}.json`;
6
- export declare const applicationCover: (applicationID: snowflake, coverImage: string, imageFormat?: ImageFormats.PNG | ImageFormats.JPEG | ImageFormats.JPG | ImageFormats.WebP) => `https://cdn.discordapp.com/${string}.jpg` | `https://cdn.discordapp.com/${string}.jpeg` | `https://cdn.discordapp.com/${string}.png` | `https://cdn.discordapp.com/${string}.webp` | `https://cdn.discordapp.com/${string}.gif` | `https://cdn.discordapp.com/${string}.avif` | `https://cdn.discordapp.com/${string}.json`;
7
- export declare const applicationIcon: (applicationID: snowflake, icon: string, imageFormat?: ImageFormats.PNG | ImageFormats.JPEG | ImageFormats.JPG | ImageFormats.WebP) => `https://cdn.discordapp.com/${string}.jpg` | `https://cdn.discordapp.com/${string}.jpeg` | `https://cdn.discordapp.com/${string}.png` | `https://cdn.discordapp.com/${string}.webp` | `https://cdn.discordapp.com/${string}.gif` | `https://cdn.discordapp.com/${string}.avif` | `https://cdn.discordapp.com/${string}.json`;
8
- export declare const customEmoji: (emojiID: snowflake, imageFormat?: ImageFormats.PNG | ImageFormats.JPEG | ImageFormats.JPG | ImageFormats.WebP | ImageFormats.GIF) => `https://cdn.discordapp.com/${string}.jpg` | `https://cdn.discordapp.com/${string}.jpeg` | `https://cdn.discordapp.com/${string}.png` | `https://cdn.discordapp.com/${string}.webp` | `https://cdn.discordapp.com/${string}.gif` | `https://cdn.discordapp.com/${string}.avif` | `https://cdn.discordapp.com/${string}.json`;
4
+ export declare const achievementIcon: (applicationId: snowflake, achievementId: snowflake, iconHash: string, imageFormat?: ImageFormats.PNG | ImageFormats.JPEG | ImageFormats.JPG | ImageFormats.WebP) => `https://cdn.discordapp.com/${string}.jpg` | `https://cdn.discordapp.com/${string}.jpeg` | `https://cdn.discordapp.com/${string}.png` | `https://cdn.discordapp.com/${string}.webp` | `https://cdn.discordapp.com/${string}.gif` | `https://cdn.discordapp.com/${string}.avif` | `https://cdn.discordapp.com/${string}.json`;
5
+ export declare const applicationAsset: (applicationId: snowflake, assetId: snowflake, imageFormat?: ImageFormats.PNG | ImageFormats.JPEG | ImageFormats.JPG | ImageFormats.WebP) => `https://cdn.discordapp.com/${string}.jpg` | `https://cdn.discordapp.com/${string}.jpeg` | `https://cdn.discordapp.com/${string}.png` | `https://cdn.discordapp.com/${string}.webp` | `https://cdn.discordapp.com/${string}.gif` | `https://cdn.discordapp.com/${string}.avif` | `https://cdn.discordapp.com/${string}.json`;
6
+ export declare const applicationCover: (applicationId: snowflake, coverImage: string, imageFormat?: ImageFormats.PNG | ImageFormats.JPEG | ImageFormats.JPG | ImageFormats.WebP) => `https://cdn.discordapp.com/${string}.jpg` | `https://cdn.discordapp.com/${string}.jpeg` | `https://cdn.discordapp.com/${string}.png` | `https://cdn.discordapp.com/${string}.webp` | `https://cdn.discordapp.com/${string}.gif` | `https://cdn.discordapp.com/${string}.avif` | `https://cdn.discordapp.com/${string}.json`;
7
+ export declare const applicationIcon: (applicationId: snowflake, icon: string, imageFormat?: ImageFormats.PNG | ImageFormats.JPEG | ImageFormats.JPG | ImageFormats.WebP) => `https://cdn.discordapp.com/${string}.jpg` | `https://cdn.discordapp.com/${string}.jpeg` | `https://cdn.discordapp.com/${string}.png` | `https://cdn.discordapp.com/${string}.webp` | `https://cdn.discordapp.com/${string}.gif` | `https://cdn.discordapp.com/${string}.avif` | `https://cdn.discordapp.com/${string}.json`;
8
+ export declare const customEmoji: (emojiId: snowflake, imageFormat?: ImageFormats.PNG | ImageFormats.JPEG | ImageFormats.JPG | ImageFormats.WebP | ImageFormats.GIF) => `https://cdn.discordapp.com/${string}.jpg` | `https://cdn.discordapp.com/${string}.jpeg` | `https://cdn.discordapp.com/${string}.png` | `https://cdn.discordapp.com/${string}.webp` | `https://cdn.discordapp.com/${string}.gif` | `https://cdn.discordapp.com/${string}.avif` | `https://cdn.discordapp.com/${string}.json`;
9
9
  export declare const defaultUserAvatar: (index: string) => `https://cdn.discordapp.com/${string}.jpg` | `https://cdn.discordapp.com/${string}.jpeg` | `https://cdn.discordapp.com/${string}.png` | `https://cdn.discordapp.com/${string}.webp` | `https://cdn.discordapp.com/${string}.gif` | `https://cdn.discordapp.com/${string}.avif` | `https://cdn.discordapp.com/${string}.json`;
10
- export declare const guildBanner: (guildID: snowflake, banner: string, imageFormat?: ImageFormats.PNG | ImageFormats.JPEG | ImageFormats.JPG | ImageFormats.WebP | ImageFormats.GIF) => `https://cdn.discordapp.com/${string}.jpg` | `https://cdn.discordapp.com/${string}.jpeg` | `https://cdn.discordapp.com/${string}.png` | `https://cdn.discordapp.com/${string}.webp` | `https://cdn.discordapp.com/${string}.gif` | `https://cdn.discordapp.com/${string}.avif` | `https://cdn.discordapp.com/${string}.json`;
11
- export declare const guildDiscoverySplash: (guildID: snowflake, splash: string, imageFormat?: ImageFormats.PNG | ImageFormats.JPEG | ImageFormats.JPG | ImageFormats.WebP) => `https://cdn.discordapp.com/${string}.jpg` | `https://cdn.discordapp.com/${string}.jpeg` | `https://cdn.discordapp.com/${string}.png` | `https://cdn.discordapp.com/${string}.webp` | `https://cdn.discordapp.com/${string}.gif` | `https://cdn.discordapp.com/${string}.avif` | `https://cdn.discordapp.com/${string}.json`;
12
- export declare const guildIcon: (guildID: snowflake, icon: string, imageFormat?: ImageFormats.PNG | ImageFormats.JPEG | ImageFormats.JPG | ImageFormats.WebP | ImageFormats.GIF) => `https://cdn.discordapp.com/${string}.jpg` | `https://cdn.discordapp.com/${string}.jpeg` | `https://cdn.discordapp.com/${string}.png` | `https://cdn.discordapp.com/${string}.webp` | `https://cdn.discordapp.com/${string}.gif` | `https://cdn.discordapp.com/${string}.avif` | `https://cdn.discordapp.com/${string}.json`;
13
- export declare const guildMemberAvatar: (guildID: snowflake, userID: snowflake, avatar: string, imageFormat?: ImageFormats.PNG | ImageFormats.JPEG | ImageFormats.JPG | ImageFormats.WebP | ImageFormats.GIF) => `https://cdn.discordapp.com/${string}.jpg` | `https://cdn.discordapp.com/${string}.jpeg` | `https://cdn.discordapp.com/${string}.png` | `https://cdn.discordapp.com/${string}.webp` | `https://cdn.discordapp.com/${string}.gif` | `https://cdn.discordapp.com/${string}.avif` | `https://cdn.discordapp.com/${string}.json`;
14
- export declare const guildMemberBanner: (guildID: snowflake, userID: snowflake, banner: string, imageFormat?: ImageFormats.PNG | ImageFormats.JPEG | ImageFormats.JPG | ImageFormats.WebP | ImageFormats.GIF) => `https://cdn.discordapp.com/${string}.jpg` | `https://cdn.discordapp.com/${string}.jpeg` | `https://cdn.discordapp.com/${string}.png` | `https://cdn.discordapp.com/${string}.webp` | `https://cdn.discordapp.com/${string}.gif` | `https://cdn.discordapp.com/${string}.avif` | `https://cdn.discordapp.com/${string}.json`;
15
- export declare const guildScheduledEventCover: (scheduledEventID: snowflake, coverImage: string, imageFormat?: ImageFormats.PNG | ImageFormats.JPEG | ImageFormats.JPG | ImageFormats.WebP) => `https://cdn.discordapp.com/${string}.jpg` | `https://cdn.discordapp.com/${string}.jpeg` | `https://cdn.discordapp.com/${string}.png` | `https://cdn.discordapp.com/${string}.webp` | `https://cdn.discordapp.com/${string}.gif` | `https://cdn.discordapp.com/${string}.avif` | `https://cdn.discordapp.com/${string}.json`;
16
- export declare const guildSplash: (guildID: snowflake, splash: string, imageFormat?: ImageFormats.PNG | ImageFormats.JPEG | ImageFormats.JPG | ImageFormats.WebP) => `https://cdn.discordapp.com/${string}.jpg` | `https://cdn.discordapp.com/${string}.jpeg` | `https://cdn.discordapp.com/${string}.png` | `https://cdn.discordapp.com/${string}.webp` | `https://cdn.discordapp.com/${string}.gif` | `https://cdn.discordapp.com/${string}.avif` | `https://cdn.discordapp.com/${string}.json`;
17
- export declare const guildTagBadge: (guildID: snowflake, hash: string, imageFormat?: ImageFormats.PNG | ImageFormats.JPEG | ImageFormats.JPG | ImageFormats.WebP) => `https://cdn.discordapp.com/${string}.jpg` | `https://cdn.discordapp.com/${string}.jpeg` | `https://cdn.discordapp.com/${string}.png` | `https://cdn.discordapp.com/${string}.webp` | `https://cdn.discordapp.com/${string}.gif` | `https://cdn.discordapp.com/${string}.avif` | `https://cdn.discordapp.com/${string}.json`;
18
- export declare const roleIcon: (roleID: snowflake, icon: string, imageFormat?: ImageFormats.PNG | ImageFormats.JPEG | ImageFormats.JPG | ImageFormats.WebP) => `https://cdn.discordapp.com/${string}.jpg` | `https://cdn.discordapp.com/${string}.jpeg` | `https://cdn.discordapp.com/${string}.png` | `https://cdn.discordapp.com/${string}.webp` | `https://cdn.discordapp.com/${string}.gif` | `https://cdn.discordapp.com/${string}.avif` | `https://cdn.discordapp.com/${string}.json`;
19
- export declare const stickerPackBanner: (assetID: snowflake, imageFormat?: ImageFormats.PNG | ImageFormats.JPEG | ImageFormats.JPG | ImageFormats.WebP) => `https://cdn.discordapp.com/${string}.jpg` | `https://cdn.discordapp.com/${string}.jpeg` | `https://cdn.discordapp.com/${string}.png` | `https://cdn.discordapp.com/${string}.webp` | `https://cdn.discordapp.com/${string}.gif` | `https://cdn.discordapp.com/${string}.avif` | `https://cdn.discordapp.com/${string}.json`;
20
- export declare const sticker: (stickerID: snowflake, imageFormat?: ImageFormats.PNG | ImageFormats.Lottie | ImageFormats.GIF) => `https://cdn.discordapp.com/${string}.jpg` | `https://cdn.discordapp.com/${string}.jpeg` | `https://cdn.discordapp.com/${string}.png` | `https://cdn.discordapp.com/${string}.webp` | `https://cdn.discordapp.com/${string}.gif` | `https://cdn.discordapp.com/${string}.avif` | `https://cdn.discordapp.com/${string}.json`;
21
- export declare const storePageAsset: (applicationID: snowflake, assetID: snowflake, imageFormat?: ImageFormats.PNG | ImageFormats.JPEG | ImageFormats.JPG | ImageFormats.WebP) => `https://cdn.discordapp.com/${string}.jpg` | `https://cdn.discordapp.com/${string}.jpeg` | `https://cdn.discordapp.com/${string}.png` | `https://cdn.discordapp.com/${string}.webp` | `https://cdn.discordapp.com/${string}.gif` | `https://cdn.discordapp.com/${string}.avif` | `https://cdn.discordapp.com/${string}.json`;
22
- export declare const soundboardSound: (soundID: snowflake) => `https://cdn.discordapp.com/${string}.jpg` | `https://cdn.discordapp.com/${string}.jpeg` | `https://cdn.discordapp.com/${string}.png` | `https://cdn.discordapp.com/${string}.webp` | `https://cdn.discordapp.com/${string}.gif` | `https://cdn.discordapp.com/${string}.avif` | `https://cdn.discordapp.com/${string}.json`;
23
- export declare const teamIcon: (teamID: snowflake, icon: string, imageFormat?: ImageFormats.PNG | ImageFormats.JPEG | ImageFormats.JPG | ImageFormats.WebP) => `https://cdn.discordapp.com/${string}.jpg` | `https://cdn.discordapp.com/${string}.jpeg` | `https://cdn.discordapp.com/${string}.png` | `https://cdn.discordapp.com/${string}.webp` | `https://cdn.discordapp.com/${string}.gif` | `https://cdn.discordapp.com/${string}.avif` | `https://cdn.discordapp.com/${string}.json`;
24
- export declare const userAvatar: (userID: snowflake, avatar: string, imageFormat?: ImageFormats.PNG | ImageFormats.JPEG | ImageFormats.JPG | ImageFormats.WebP | ImageFormats.GIF) => `https://cdn.discordapp.com/${string}.jpg` | `https://cdn.discordapp.com/${string}.jpeg` | `https://cdn.discordapp.com/${string}.png` | `https://cdn.discordapp.com/${string}.webp` | `https://cdn.discordapp.com/${string}.gif` | `https://cdn.discordapp.com/${string}.avif` | `https://cdn.discordapp.com/${string}.json`;
25
- export declare const userAvatarDecoration: (userID: snowflake, avatarDecoration: string) => `https://cdn.discordapp.com/${string}.jpg` | `https://cdn.discordapp.com/${string}.jpeg` | `https://cdn.discordapp.com/${string}.png` | `https://cdn.discordapp.com/${string}.webp` | `https://cdn.discordapp.com/${string}.gif` | `https://cdn.discordapp.com/${string}.avif` | `https://cdn.discordapp.com/${string}.json`;
26
- export declare const userBanner: (userID: snowflake, banner: string, imageFormat?: ImageFormats.PNG | ImageFormats.JPEG | ImageFormats.JPG | ImageFormats.WebP | ImageFormats.GIF) => `https://cdn.discordapp.com/${string}.jpg` | `https://cdn.discordapp.com/${string}.jpeg` | `https://cdn.discordapp.com/${string}.png` | `https://cdn.discordapp.com/${string}.webp` | `https://cdn.discordapp.com/${string}.gif` | `https://cdn.discordapp.com/${string}.avif` | `https://cdn.discordapp.com/${string}.json`;
10
+ export declare const guildBanner: (guildId: snowflake, banner: string, imageFormat?: ImageFormats.PNG | ImageFormats.JPEG | ImageFormats.JPG | ImageFormats.WebP | ImageFormats.GIF) => `https://cdn.discordapp.com/${string}.jpg` | `https://cdn.discordapp.com/${string}.jpeg` | `https://cdn.discordapp.com/${string}.png` | `https://cdn.discordapp.com/${string}.webp` | `https://cdn.discordapp.com/${string}.gif` | `https://cdn.discordapp.com/${string}.avif` | `https://cdn.discordapp.com/${string}.json`;
11
+ export declare const guildDiscoverySplash: (guildId: snowflake, splash: string, imageFormat?: ImageFormats.PNG | ImageFormats.JPEG | ImageFormats.JPG | ImageFormats.WebP) => `https://cdn.discordapp.com/${string}.jpg` | `https://cdn.discordapp.com/${string}.jpeg` | `https://cdn.discordapp.com/${string}.png` | `https://cdn.discordapp.com/${string}.webp` | `https://cdn.discordapp.com/${string}.gif` | `https://cdn.discordapp.com/${string}.avif` | `https://cdn.discordapp.com/${string}.json`;
12
+ export declare const guildIcon: (guildId: snowflake, icon: string, imageFormat?: ImageFormats.PNG | ImageFormats.JPEG | ImageFormats.JPG | ImageFormats.WebP | ImageFormats.GIF) => `https://cdn.discordapp.com/${string}.jpg` | `https://cdn.discordapp.com/${string}.jpeg` | `https://cdn.discordapp.com/${string}.png` | `https://cdn.discordapp.com/${string}.webp` | `https://cdn.discordapp.com/${string}.gif` | `https://cdn.discordapp.com/${string}.avif` | `https://cdn.discordapp.com/${string}.json`;
13
+ export declare const guildMemberAvatar: (guildId: snowflake, userId: snowflake, avatar: string, imageFormat?: ImageFormats.PNG | ImageFormats.JPEG | ImageFormats.JPG | ImageFormats.WebP | ImageFormats.GIF) => `https://cdn.discordapp.com/${string}.jpg` | `https://cdn.discordapp.com/${string}.jpeg` | `https://cdn.discordapp.com/${string}.png` | `https://cdn.discordapp.com/${string}.webp` | `https://cdn.discordapp.com/${string}.gif` | `https://cdn.discordapp.com/${string}.avif` | `https://cdn.discordapp.com/${string}.json`;
14
+ export declare const guildMemberBanner: (guildId: snowflake, userId: snowflake, banner: string, imageFormat?: ImageFormats.PNG | ImageFormats.JPEG | ImageFormats.JPG | ImageFormats.WebP | ImageFormats.GIF) => `https://cdn.discordapp.com/${string}.jpg` | `https://cdn.discordapp.com/${string}.jpeg` | `https://cdn.discordapp.com/${string}.png` | `https://cdn.discordapp.com/${string}.webp` | `https://cdn.discordapp.com/${string}.gif` | `https://cdn.discordapp.com/${string}.avif` | `https://cdn.discordapp.com/${string}.json`;
15
+ export declare const guildScheduledEventCover: (scheduledEventId: snowflake, coverImage: string, imageFormat?: ImageFormats.PNG | ImageFormats.JPEG | ImageFormats.JPG | ImageFormats.WebP) => `https://cdn.discordapp.com/${string}.jpg` | `https://cdn.discordapp.com/${string}.jpeg` | `https://cdn.discordapp.com/${string}.png` | `https://cdn.discordapp.com/${string}.webp` | `https://cdn.discordapp.com/${string}.gif` | `https://cdn.discordapp.com/${string}.avif` | `https://cdn.discordapp.com/${string}.json`;
16
+ export declare const guildSplash: (guildId: snowflake, splash: string, imageFormat?: ImageFormats.PNG | ImageFormats.JPEG | ImageFormats.JPG | ImageFormats.WebP) => `https://cdn.discordapp.com/${string}.jpg` | `https://cdn.discordapp.com/${string}.jpeg` | `https://cdn.discordapp.com/${string}.png` | `https://cdn.discordapp.com/${string}.webp` | `https://cdn.discordapp.com/${string}.gif` | `https://cdn.discordapp.com/${string}.avif` | `https://cdn.discordapp.com/${string}.json`;
17
+ export declare const guildTagBadge: (guildId: snowflake, hash: string, imageFormat?: ImageFormats.PNG | ImageFormats.JPEG | ImageFormats.JPG | ImageFormats.WebP) => `https://cdn.discordapp.com/${string}.jpg` | `https://cdn.discordapp.com/${string}.jpeg` | `https://cdn.discordapp.com/${string}.png` | `https://cdn.discordapp.com/${string}.webp` | `https://cdn.discordapp.com/${string}.gif` | `https://cdn.discordapp.com/${string}.avif` | `https://cdn.discordapp.com/${string}.json`;
18
+ export declare const roleIcon: (roleId: snowflake, icon: string, imageFormat?: ImageFormats.PNG | ImageFormats.JPEG | ImageFormats.JPG | ImageFormats.WebP) => `https://cdn.discordapp.com/${string}.jpg` | `https://cdn.discordapp.com/${string}.jpeg` | `https://cdn.discordapp.com/${string}.png` | `https://cdn.discordapp.com/${string}.webp` | `https://cdn.discordapp.com/${string}.gif` | `https://cdn.discordapp.com/${string}.avif` | `https://cdn.discordapp.com/${string}.json`;
19
+ export declare const stickerPackBanner: (assetId: snowflake, imageFormat?: ImageFormats.PNG | ImageFormats.JPEG | ImageFormats.JPG | ImageFormats.WebP) => `https://cdn.discordapp.com/${string}.jpg` | `https://cdn.discordapp.com/${string}.jpeg` | `https://cdn.discordapp.com/${string}.png` | `https://cdn.discordapp.com/${string}.webp` | `https://cdn.discordapp.com/${string}.gif` | `https://cdn.discordapp.com/${string}.avif` | `https://cdn.discordapp.com/${string}.json`;
20
+ export declare const sticker: (stickerId: snowflake, imageFormat?: ImageFormats.PNG | ImageFormats.Lottie | ImageFormats.GIF) => `https://cdn.discordapp.com/${string}.jpg` | `https://cdn.discordapp.com/${string}.jpeg` | `https://cdn.discordapp.com/${string}.png` | `https://cdn.discordapp.com/${string}.webp` | `https://cdn.discordapp.com/${string}.gif` | `https://cdn.discordapp.com/${string}.avif` | `https://cdn.discordapp.com/${string}.json`;
21
+ export declare const storePageAsset: (applicationId: snowflake, assetId: snowflake, imageFormat?: ImageFormats.PNG | ImageFormats.JPEG | ImageFormats.JPG | ImageFormats.WebP) => `https://cdn.discordapp.com/${string}.jpg` | `https://cdn.discordapp.com/${string}.jpeg` | `https://cdn.discordapp.com/${string}.png` | `https://cdn.discordapp.com/${string}.webp` | `https://cdn.discordapp.com/${string}.gif` | `https://cdn.discordapp.com/${string}.avif` | `https://cdn.discordapp.com/${string}.json`;
22
+ export declare const soundboardSound: (soundId: snowflake) => `https://cdn.discordapp.com/${string}.jpg` | `https://cdn.discordapp.com/${string}.jpeg` | `https://cdn.discordapp.com/${string}.png` | `https://cdn.discordapp.com/${string}.webp` | `https://cdn.discordapp.com/${string}.gif` | `https://cdn.discordapp.com/${string}.avif` | `https://cdn.discordapp.com/${string}.json`;
23
+ export declare const teamIcon: (teamId: snowflake, icon: string, imageFormat?: ImageFormats.PNG | ImageFormats.JPEG | ImageFormats.JPG | ImageFormats.WebP) => `https://cdn.discordapp.com/${string}.jpg` | `https://cdn.discordapp.com/${string}.jpeg` | `https://cdn.discordapp.com/${string}.png` | `https://cdn.discordapp.com/${string}.webp` | `https://cdn.discordapp.com/${string}.gif` | `https://cdn.discordapp.com/${string}.avif` | `https://cdn.discordapp.com/${string}.json`;
24
+ export declare const userAvatar: (userId: snowflake, avatar: string, imageFormat?: ImageFormats.PNG | ImageFormats.JPEG | ImageFormats.JPG | ImageFormats.WebP | ImageFormats.GIF) => `https://cdn.discordapp.com/${string}.jpg` | `https://cdn.discordapp.com/${string}.jpeg` | `https://cdn.discordapp.com/${string}.png` | `https://cdn.discordapp.com/${string}.webp` | `https://cdn.discordapp.com/${string}.gif` | `https://cdn.discordapp.com/${string}.avif` | `https://cdn.discordapp.com/${string}.json`;
25
+ export declare const userAvatarDecoration: (userId: snowflake, avatarDecoration: string) => `https://cdn.discordapp.com/${string}.jpg` | `https://cdn.discordapp.com/${string}.jpeg` | `https://cdn.discordapp.com/${string}.png` | `https://cdn.discordapp.com/${string}.webp` | `https://cdn.discordapp.com/${string}.gif` | `https://cdn.discordapp.com/${string}.avif` | `https://cdn.discordapp.com/${string}.json`;
26
+ export declare const userBanner: (userId: snowflake, banner: string, imageFormat?: ImageFormats.PNG | ImageFormats.JPEG | ImageFormats.JPG | ImageFormats.WebP | ImageFormats.GIF) => `https://cdn.discordapp.com/${string}.jpg` | `https://cdn.discordapp.com/${string}.jpeg` | `https://cdn.discordapp.com/${string}.png` | `https://cdn.discordapp.com/${string}.webp` | `https://cdn.discordapp.com/${string}.gif` | `https://cdn.discordapp.com/${string}.avif` | `https://cdn.discordapp.com/${string}.json`;
@@ -5,49 +5,49 @@ exports.userBanner = exports.userAvatarDecoration = exports.userAvatar = exports
5
5
  const constants_1 = require("../constants");
6
6
  const cdnURL = (cdnEndpoint, imageFormat = constants_1.ImageFormats.PNG) => `https://cdn.discordapp.com/${cdnEndpoint}.${imageFormat}`;
7
7
  exports.cdnURL = cdnURL;
8
- const achievementIcon = (applicationID, achievementID, iconHash, imageFormat = constants_1.ImageFormats.PNG) => (0, exports.cdnURL)(`app-assets/${applicationID}/achievements/${achievementID}/icons/${iconHash}`, imageFormat);
8
+ const achievementIcon = (applicationId, achievementId, iconHash, imageFormat = constants_1.ImageFormats.PNG) => (0, exports.cdnURL)(`app-assets/${applicationId}/achievements/${achievementId}/icons/${iconHash}`, imageFormat);
9
9
  exports.achievementIcon = achievementIcon;
10
- const applicationAsset = (applicationID, assetID, imageFormat = constants_1.ImageFormats.PNG) => (0, exports.cdnURL)(`app-assets/${applicationID}/${assetID}`, imageFormat);
10
+ const applicationAsset = (applicationId, assetId, imageFormat = constants_1.ImageFormats.PNG) => (0, exports.cdnURL)(`app-assets/${applicationId}/${assetId}`, imageFormat);
11
11
  exports.applicationAsset = applicationAsset;
12
- const applicationCover = (applicationID, coverImage, imageFormat = constants_1.ImageFormats.PNG) => (0, exports.cdnURL)(`app-icons/${applicationID}/${coverImage}`, imageFormat);
12
+ const applicationCover = (applicationId, coverImage, imageFormat = constants_1.ImageFormats.PNG) => (0, exports.cdnURL)(`app-icons/${applicationId}/${coverImage}`, imageFormat);
13
13
  exports.applicationCover = applicationCover;
14
- const applicationIcon = (applicationID, icon, imageFormat = constants_1.ImageFormats.PNG) => (0, exports.cdnURL)(`app-icons/${applicationID}/${icon}`, imageFormat);
14
+ const applicationIcon = (applicationId, icon, imageFormat = constants_1.ImageFormats.PNG) => (0, exports.cdnURL)(`app-icons/${applicationId}/${icon}`, imageFormat);
15
15
  exports.applicationIcon = applicationIcon;
16
- const customEmoji = (emojiID, imageFormat = constants_1.ImageFormats.PNG) => (0, exports.cdnURL)(`emojis/${emojiID}`, imageFormat);
16
+ const customEmoji = (emojiId, imageFormat = constants_1.ImageFormats.PNG) => (0, exports.cdnURL)(`emojis/${emojiId}`, imageFormat);
17
17
  exports.customEmoji = customEmoji;
18
18
  const defaultUserAvatar = (index) => (0, exports.cdnURL)(`embed/avatars/${index}`);
19
19
  exports.defaultUserAvatar = defaultUserAvatar;
20
- const guildBanner = (guildID, banner, imageFormat = constants_1.ImageFormats.PNG) => (0, exports.cdnURL)(`banners/${guildID}/${banner}`, imageFormat);
20
+ const guildBanner = (guildId, banner, imageFormat = constants_1.ImageFormats.PNG) => (0, exports.cdnURL)(`banners/${guildId}/${banner}`, imageFormat);
21
21
  exports.guildBanner = guildBanner;
22
- const guildDiscoverySplash = (guildID, splash, imageFormat = constants_1.ImageFormats.PNG) => (0, exports.cdnURL)(`discovery-splashes/${guildID}/${splash}`, imageFormat);
22
+ const guildDiscoverySplash = (guildId, splash, imageFormat = constants_1.ImageFormats.PNG) => (0, exports.cdnURL)(`discovery-splashes/${guildId}/${splash}`, imageFormat);
23
23
  exports.guildDiscoverySplash = guildDiscoverySplash;
24
- const guildIcon = (guildID, icon, imageFormat = constants_1.ImageFormats.PNG) => (0, exports.cdnURL)(`icons/${guildID}/${icon}`, imageFormat);
24
+ const guildIcon = (guildId, icon, imageFormat = constants_1.ImageFormats.PNG) => (0, exports.cdnURL)(`icons/${guildId}/${icon}`, imageFormat);
25
25
  exports.guildIcon = guildIcon;
26
- const guildMemberAvatar = (guildID, userID, avatar, imageFormat = constants_1.ImageFormats.PNG) => (0, exports.cdnURL)(`guilds/${guildID}/users/${userID}/avatars/${avatar}`, imageFormat);
26
+ const guildMemberAvatar = (guildId, userId, avatar, imageFormat = constants_1.ImageFormats.PNG) => (0, exports.cdnURL)(`guilds/${guildId}/users/${userId}/avatars/${avatar}`, imageFormat);
27
27
  exports.guildMemberAvatar = guildMemberAvatar;
28
- const guildMemberBanner = (guildID, userID, banner, imageFormat = constants_1.ImageFormats.PNG) => (0, exports.cdnURL)(`guilds/${guildID}/users/${userID}/banners/${banner}`, imageFormat);
28
+ const guildMemberBanner = (guildId, userId, banner, imageFormat = constants_1.ImageFormats.PNG) => (0, exports.cdnURL)(`guilds/${guildId}/users/${userId}/banners/${banner}`, imageFormat);
29
29
  exports.guildMemberBanner = guildMemberBanner;
30
- const guildScheduledEventCover = (scheduledEventID, coverImage, imageFormat = constants_1.ImageFormats.PNG) => (0, exports.cdnURL)(`guild-events/${scheduledEventID}/${coverImage}`, imageFormat);
30
+ const guildScheduledEventCover = (scheduledEventId, coverImage, imageFormat = constants_1.ImageFormats.PNG) => (0, exports.cdnURL)(`guild-events/${scheduledEventId}/${coverImage}`, imageFormat);
31
31
  exports.guildScheduledEventCover = guildScheduledEventCover;
32
- const guildSplash = (guildID, splash, imageFormat = constants_1.ImageFormats.PNG) => (0, exports.cdnURL)(`splashes/${guildID}/${splash}`, imageFormat);
32
+ const guildSplash = (guildId, splash, imageFormat = constants_1.ImageFormats.PNG) => (0, exports.cdnURL)(`splashes/${guildId}/${splash}`, imageFormat);
33
33
  exports.guildSplash = guildSplash;
34
- const guildTagBadge = (guildID, hash, imageFormat = constants_1.ImageFormats.PNG) => (0, exports.cdnURL)(`guild-tag-badges/${guildID}/${hash}`, imageFormat);
34
+ const guildTagBadge = (guildId, hash, imageFormat = constants_1.ImageFormats.PNG) => (0, exports.cdnURL)(`guild-tag-badges/${guildId}/${hash}`, imageFormat);
35
35
  exports.guildTagBadge = guildTagBadge;
36
- const roleIcon = (roleID, icon, imageFormat = constants_1.ImageFormats.PNG) => (0, exports.cdnURL)(`role-icons/${roleID}/${icon}`, imageFormat);
36
+ const roleIcon = (roleId, icon, imageFormat = constants_1.ImageFormats.PNG) => (0, exports.cdnURL)(`role-icons/${roleId}/${icon}`, imageFormat);
37
37
  exports.roleIcon = roleIcon;
38
- const stickerPackBanner = (assetID, imageFormat = constants_1.ImageFormats.PNG) => (0, exports.cdnURL)(`app-assets/710982414301790216/store/${assetID}`, imageFormat);
38
+ const stickerPackBanner = (assetId, imageFormat = constants_1.ImageFormats.PNG) => (0, exports.cdnURL)(`app-assets/710982414301790216/store/${assetId}`, imageFormat);
39
39
  exports.stickerPackBanner = stickerPackBanner;
40
- const sticker = (stickerID, imageFormat = constants_1.ImageFormats.PNG) => (0, exports.cdnURL)(`stickers/${stickerID}`, imageFormat);
40
+ const sticker = (stickerId, imageFormat = constants_1.ImageFormats.PNG) => (0, exports.cdnURL)(`stickers/${stickerId}`, imageFormat);
41
41
  exports.sticker = sticker;
42
- const storePageAsset = (applicationID, assetID, imageFormat = constants_1.ImageFormats.PNG) => (0, exports.cdnURL)(`app-assets/${applicationID}/store/${assetID}`, imageFormat);
42
+ const storePageAsset = (applicationId, assetId, imageFormat = constants_1.ImageFormats.PNG) => (0, exports.cdnURL)(`app-assets/${applicationId}/store/${assetId}`, imageFormat);
43
43
  exports.storePageAsset = storePageAsset;
44
- const soundboardSound = (soundID) => (0, exports.cdnURL)(`soundboard-sounds/${soundID}`);
44
+ const soundboardSound = (soundId) => (0, exports.cdnURL)(`soundboard-sounds/${soundId}`);
45
45
  exports.soundboardSound = soundboardSound;
46
- const teamIcon = (teamID, icon, imageFormat = constants_1.ImageFormats.PNG) => (0, exports.cdnURL)(`team-icons/${teamID}/${icon}`, imageFormat);
46
+ const teamIcon = (teamId, icon, imageFormat = constants_1.ImageFormats.PNG) => (0, exports.cdnURL)(`team-icons/${teamId}/${icon}`, imageFormat);
47
47
  exports.teamIcon = teamIcon;
48
- const userAvatar = (userID, avatar, imageFormat = constants_1.ImageFormats.PNG) => (0, exports.cdnURL)(`avatars/${userID}/${avatar}`, imageFormat);
48
+ const userAvatar = (userId, avatar, imageFormat = constants_1.ImageFormats.PNG) => (0, exports.cdnURL)(`avatars/${userId}/${avatar}`, imageFormat);
49
49
  exports.userAvatar = userAvatar;
50
- const userAvatarDecoration = (userID, avatarDecoration) => (0, exports.cdnURL)(`avatar-decorations/${userID}/${avatarDecoration}`);
50
+ const userAvatarDecoration = (userId, avatarDecoration) => (0, exports.cdnURL)(`avatar-decorations/${userId}/${avatarDecoration}`);
51
51
  exports.userAvatarDecoration = userAvatarDecoration;
52
- const userBanner = (userID, banner, imageFormat = constants_1.ImageFormats.PNG) => (0, exports.cdnURL)(`banners/${userID}/${banner}`, imageFormat);
52
+ const userBanner = (userId, banner, imageFormat = constants_1.ImageFormats.PNG) => (0, exports.cdnURL)(`banners/${userId}/${banner}`, imageFormat);
53
53
  exports.userBanner = userBanner;