disgroove 2.2.5 → 2.2.6-dev.3f22d60

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.
@@ -2,6 +2,22 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Users = void 0;
4
4
  class Users {
5
+ static nameplateFromRaw(nameplate) {
6
+ return {
7
+ skuID: nameplate.sku_id,
8
+ asset: nameplate.asset,
9
+ label: nameplate.label,
10
+ palette: nameplate.palette,
11
+ };
12
+ }
13
+ static nameplateToRaw(nameplate) {
14
+ return {
15
+ sku_id: nameplate.skuID,
16
+ asset: nameplate.asset,
17
+ label: nameplate.label,
18
+ palette: nameplate.palette,
19
+ };
20
+ }
5
21
  static userFromRaw(user) {
6
22
  return {
7
23
  id: user.id,
@@ -28,6 +44,15 @@ class Users {
28
44
  }
29
45
  : null
30
46
  : undefined,
47
+ collectibles: user.collectibles !== undefined
48
+ ? user.collectibles !== null
49
+ ? {
50
+ nameplate: user.collectibles.nameplate !== undefined
51
+ ? this.nameplateFromRaw(user.collectibles.nameplate)
52
+ : undefined,
53
+ }
54
+ : null
55
+ : undefined,
31
56
  };
32
57
  }
33
58
  static userToRaw(user) {
@@ -56,6 +81,15 @@ class Users {
56
81
  }
57
82
  : null
58
83
  : undefined,
84
+ collectibles: user.collectibles !== undefined
85
+ ? user.collectibles !== null
86
+ ? {
87
+ nameplate: user.collectibles.nameplate !== undefined
88
+ ? this.nameplateToRaw(user.collectibles.nameplate)
89
+ : undefined,
90
+ }
91
+ : null
92
+ : undefined,
59
93
  };
60
94
  }
61
95
  }
@@ -4,6 +4,7 @@ export * from "./Applications";
4
4
  export * from "./AuditLogs";
5
5
  export * from "./AutoModeration";
6
6
  export * from "./Channels";
7
+ export * from "./Components.js";
7
8
  export * from "./Emojis";
8
9
  export * from "./Entitlements";
9
10
  export * from "./Guilds";
@@ -20,6 +20,7 @@ __exportStar(require("./Applications"), exports);
20
20
  __exportStar(require("./AuditLogs"), exports);
21
21
  __exportStar(require("./AutoModeration"), exports);
22
22
  __exportStar(require("./Channels"), exports);
23
+ __exportStar(require("./Components.js"), exports);
23
24
  __exportStar(require("./Emojis"), exports);
24
25
  __exportStar(require("./Entitlements"), exports);
25
26
  __exportStar(require("./Guilds"), exports);
@@ -1,4 +1,4 @@
1
- import type { ActivityLocationKind, ApplicationFlags, ApplicationIntegrationTypes, OAuth2Scopes } from "../constants";
1
+ import type { ActivityLocationKind, ApplicationEventWebhookStatus, ApplicationFlags, ApplicationIntegrationTypes, OAuth2Scopes } from "../constants";
2
2
  import type { snowflake } from "./common";
3
3
  import type { RawGuild, Guild } from "./guild";
4
4
  import type { RawTeam, Team } from "./team";
@@ -25,9 +25,13 @@ export interface RawApplication {
25
25
  flags?: ApplicationFlags;
26
26
  approximate_guild_count?: number;
27
27
  approximate_user_install_count?: number;
28
+ approximate_user_authorization_count?: number;
28
29
  redirect_uris?: Array<string>;
29
30
  interactions_endpoint_url?: string;
30
31
  role_connections_verification_url?: string;
32
+ event_webhooks_url?: string | null;
33
+ event_webhooks_status: ApplicationEventWebhookStatus;
34
+ event_webhooks_types?: Array<string>;
31
35
  tags?: Array<string>;
32
36
  install_params?: RawInstallParams;
33
37
  integration_types_config?: Record<ApplicationIntegrationTypes, RawApplicationIntegrationTypeConfiguration>;
@@ -78,9 +82,13 @@ export interface Application {
78
82
  flags?: ApplicationFlags;
79
83
  approximateGuildCount?: number;
80
84
  approximateUserInstallCount?: number;
85
+ approximateUserAuthorizationCount?: number;
81
86
  redirectURIs?: Array<string>;
82
87
  interactionsEndpointURL?: string;
83
88
  roleConnectionsVerificationURL?: string;
89
+ eventWebhooksURL?: string | null;
90
+ eventWebhooksStatus: ApplicationEventWebhookStatus;
91
+ eventWebhooksTypes?: Array<string>;
84
92
  tags?: Array<string>;
85
93
  installParams?: InstallParams;
86
94
  integrationTypesConfig?: Record<ApplicationIntegrationTypes, ApplicationIntegrationTypeConfiguration>;
@@ -1,12 +1,12 @@
1
1
  import type { ApplicationCommandOptionType, ApplicationCommandTypes, ApplicationIntegrationTypes, ComponentTypes, InteractionCallbackType, InteractionContextTypes, InteractionType, Locales, MessageFlags } from "../constants";
2
- import type { File } from "../rest";
2
+ import type { FileData } from "../rest";
3
3
  import type { RawApplicationCommandOptionChoice, ApplicationCommandOptionChoice } from "./application-command";
4
4
  import type { RawChannel, Channel } from "./channel";
5
5
  import type { snowflake } from "./common";
6
6
  import type { RawEntitlement, Entitlement } from "./entitlements";
7
7
  import type { RawGuildMember, GuildMember, Guild, RawGuild } from "./guild";
8
- import type { RawMessage, RawAttachment, RawEmbed, RawAllowedMentions, Message, Attachment, Embed, AllowedMentions } from "./message";
9
- import type { RawTextInput, RawActionRow, TextInput, ActionRow } from "./message-components";
8
+ import type { RawMessage, RawAttachment, RawEmbed, RawAllowedMentions, Message, Attachment, Embed, AllowedMentions, MessageTopLevelComponent, RawMessageTopLevelComponent } from "./message";
9
+ import type { RawTextInput, TextInput } from "./message-components";
10
10
  import type { RawPollCreateParams, PollCreateParams } from "./poll";
11
11
  import type { RawRole, Role } from "./role";
12
12
  import type { RawUser, User } from "./user";
@@ -96,10 +96,10 @@ export interface RawInteractionCallbackData {
96
96
  embeds?: Array<RawEmbed>;
97
97
  allowed_mentions?: RawAllowedMentions;
98
98
  flags?: MessageFlags;
99
- components?: Array<RawActionRow>;
99
+ components?: Array<RawMessageTopLevelComponent>;
100
100
  attachments?: Array<Pick<RawAttachment, "filename" | "description">>;
101
101
  poll?: RawPollCreateParams;
102
- files?: Array<File>;
102
+ files?: Array<FileData>;
103
103
  choices?: Array<RawApplicationCommandOptionChoice>;
104
104
  custom_id?: string;
105
105
  title?: string;
@@ -205,10 +205,10 @@ export interface InteractionCallbackData {
205
205
  embeds?: Array<Embed>;
206
206
  allowedMentions?: AllowedMentions;
207
207
  flags?: MessageFlags;
208
- components?: Array<ActionRow>;
208
+ components?: Array<MessageTopLevelComponent>;
209
209
  attachments?: Array<Pick<Attachment, "filename" | "description">>;
210
210
  poll?: PollCreateParams;
211
- files?: Array<File>;
211
+ files?: Array<FileData>;
212
212
  choices?: Array<ApplicationCommandOptionChoice>;
213
213
  customID?: string;
214
214
  title?: string;
@@ -1,7 +1,7 @@
1
- import type { ButtonStyles, ChannelTypes, ComponentTypes, TextInputStyles } from "../constants";
1
+ import type { ButtonStyles, ChannelTypes, ComponentTypes, SeparatorSpacing, TextInputStyles } from "../constants";
2
2
  import type { snowflake } from "./common";
3
3
  import type { RawEmoji, Emoji } from "./emoji";
4
- /** https://discord.com/developers/docs/interactions/message-components#button-object-button-structure */
4
+ /** https://discord.com/developers/docs/components/reference#button-button-structure */
5
5
  export interface RawButton {
6
6
  type: ComponentTypes.Button;
7
7
  style: ButtonStyles;
@@ -11,6 +11,43 @@ export interface RawButton {
11
11
  sku_id?: snowflake;
12
12
  url?: string;
13
13
  disabled?: boolean;
14
+ id?: number;
15
+ }
16
+ /** https://discord.com/developers/docs/components/reference#container-container-structure */
17
+ export interface RawContainer {
18
+ type: ComponentTypes.Container;
19
+ id?: number;
20
+ components: Array<RawActionRow | RawTextDisplay | RawSection | RawMediaGallery | RawSeparator | RawFile>;
21
+ accent_color?: number | null;
22
+ spoiler?: boolean;
23
+ }
24
+ /** https://discord.com/developers/docs/components/reference#file-file-structure */
25
+ export interface RawFile {
26
+ type: ComponentTypes.File;
27
+ id?: number;
28
+ file: RawUnfurledMediaItem;
29
+ spoiler?: boolean;
30
+ name: string;
31
+ size: number;
32
+ }
33
+ /** https://discord.com/developers/docs/components/reference#media-gallery-media-gallery-structure */
34
+ export interface RawMediaGallery {
35
+ type: ComponentTypes.MediaGallery;
36
+ id?: number;
37
+ items: Array<RawMediaGalleryItem>;
38
+ }
39
+ /** https://discord.com/developers/docs/components/reference#media-gallery-media-gallery-item-structure */
40
+ export interface RawMediaGalleryItem {
41
+ media: RawUnfurledMediaItem;
42
+ description?: string;
43
+ spoiler?: boolean;
44
+ }
45
+ /** https://discord.com/developers/docs/components/reference#section-section-structure */
46
+ export interface RawSection {
47
+ type: ComponentTypes.Section;
48
+ id?: number;
49
+ components: Array<RawTextDisplay>;
50
+ accessory: RawThumbnail | RawButton;
14
51
  }
15
52
  /** https://discord.com/developers/docs/interactions/message-components#select-menu-object-select-menu-structure */
16
53
  export interface RawSelectMenu {
@@ -23,8 +60,9 @@ export interface RawSelectMenu {
23
60
  min_values?: number;
24
61
  max_values?: number;
25
62
  disabled?: boolean;
63
+ id?: number;
26
64
  }
27
- /** https://discord.com/developers/docs/interactions/message-components#select-menu-object-select-option-structure */
65
+ /** https://discord.com/developers/docs/components/reference#string-select-select-option-structure */
28
66
  export interface RawSelectOption {
29
67
  label: string;
30
68
  value: string;
@@ -32,12 +70,33 @@ export interface RawSelectOption {
32
70
  emoji?: Pick<RawEmoji, "name" | "id" | "animated">;
33
71
  default?: boolean;
34
72
  }
35
- /** https://discord.com/developers/docs/interactions/message-components#select-menu-object-select-default-value-structure */
73
+ /** https://discord.com/developers/docs/components/reference#separator-separator-structure */
74
+ export interface RawSeparator {
75
+ type: ComponentTypes.Separator;
76
+ id?: number;
77
+ divider?: boolean;
78
+ spacing?: SeparatorSpacing;
79
+ }
80
+ /** https://discord.com/developers/docs/components/reference#text-display-text-display-structure */
81
+ export interface RawTextDisplay {
82
+ type: ComponentTypes.TextDisplay;
83
+ id?: number;
84
+ content: string;
85
+ }
86
+ /** https://discord.com/developers/docs/components/reference#thumbnail-thumbnail-structure */
87
+ export interface RawThumbnail {
88
+ type: ComponentTypes.Thumbnail;
89
+ id?: number;
90
+ media: RawUnfurledMediaItem;
91
+ description?: string;
92
+ spoiler?: boolean;
93
+ }
94
+ /** https://discord.com/developers/docs/components/reference#user-select-select-default-value-structure */
36
95
  export interface RawDefaultValue {
37
96
  id: snowflake;
38
97
  type: string;
39
98
  }
40
- /** https://discord.com/developers/docs/interactions/message-components#text-inputs-text-input-structure */
99
+ /** https://discord.com/developers/docs/components/reference#text-input-text-input-structure */
41
100
  export interface RawTextInput {
42
101
  type: ComponentTypes.TextInput;
43
102
  custom_id: string;
@@ -48,11 +107,22 @@ export interface RawTextInput {
48
107
  required?: boolean;
49
108
  value?: string;
50
109
  placeholder?: string;
110
+ id?: number;
51
111
  }
52
- /** https://discord.com/developers/docs/interactions/message-components#action-rows */
112
+ /** https://discord.com/developers/docs/components/reference#action-row-action-row-structure */
53
113
  export interface RawActionRow {
54
114
  type: ComponentTypes.ActionRow;
55
115
  components: Array<RawButton | RawSelectMenu | RawTextInput>;
116
+ id?: number;
117
+ }
118
+ /** https://discord.com/developers/docs/components/reference#unfurled-media-item-structure */
119
+ export interface RawUnfurledMediaItem {
120
+ url: string;
121
+ proxy_url?: string;
122
+ height?: number | null;
123
+ width?: number | null;
124
+ content_type?: string;
125
+ attachment_id?: snowflake;
56
126
  }
57
127
  export interface Button {
58
128
  type: ComponentTypes.Button;
@@ -63,6 +133,38 @@ export interface Button {
63
133
  skuID?: snowflake;
64
134
  url?: string;
65
135
  disabled?: boolean;
136
+ id?: number;
137
+ }
138
+ export interface Container {
139
+ type: ComponentTypes.Container;
140
+ id?: number;
141
+ components: Array<ActionRow | TextDisplay | Section | MediaGallery | Separator | File>;
142
+ accentColor?: number | null;
143
+ spoiler?: boolean;
144
+ }
145
+ export interface File {
146
+ type: ComponentTypes.File;
147
+ id?: number;
148
+ file: UnfurledMediaItem;
149
+ spoiler?: boolean;
150
+ name: string;
151
+ size: number;
152
+ }
153
+ export interface MediaGallery {
154
+ type: ComponentTypes.MediaGallery;
155
+ id?: number;
156
+ items: Array<MediaGalleryItem>;
157
+ }
158
+ export interface MediaGalleryItem {
159
+ media: UnfurledMediaItem;
160
+ description?: string;
161
+ spoiler?: boolean;
162
+ }
163
+ export interface Section {
164
+ type: ComponentTypes.Section;
165
+ id?: number;
166
+ components: Array<TextDisplay>;
167
+ accessory: Thumbnail | Button;
66
168
  }
67
169
  export interface SelectMenu {
68
170
  type: ComponentTypes.ChannelSelect | ComponentTypes.MentionableSelect | ComponentTypes.RoleSelect | ComponentTypes.StringSelect | ComponentTypes.UserSelect;
@@ -74,6 +176,7 @@ export interface SelectMenu {
74
176
  minValues?: number;
75
177
  maxValues?: number;
76
178
  disabled?: boolean;
179
+ id?: number;
77
180
  }
78
181
  export interface SelectOption {
79
182
  label: string;
@@ -82,6 +185,24 @@ export interface SelectOption {
82
185
  emoji?: Pick<Emoji, "name" | "id" | "animated">;
83
186
  default?: boolean;
84
187
  }
188
+ export interface Separator {
189
+ type: ComponentTypes.Separator;
190
+ id?: number;
191
+ divider?: boolean;
192
+ spacing?: SeparatorSpacing;
193
+ }
194
+ export interface TextDisplay {
195
+ type: ComponentTypes.TextDisplay;
196
+ id?: number;
197
+ content: string;
198
+ }
199
+ export interface Thumbnail {
200
+ type: ComponentTypes.Thumbnail;
201
+ id?: number;
202
+ media: UnfurledMediaItem;
203
+ description?: string;
204
+ spoiler?: boolean;
205
+ }
85
206
  export interface DefaultValue {
86
207
  id: snowflake;
87
208
  type: string;
@@ -96,8 +217,18 @@ export interface TextInput {
96
217
  required?: boolean;
97
218
  value?: string;
98
219
  placeholder?: string;
220
+ id?: number;
99
221
  }
100
222
  export interface ActionRow {
101
223
  type: ComponentTypes.ActionRow;
102
224
  components: Array<Button | SelectMenu | TextInput>;
225
+ id?: number;
226
+ }
227
+ export interface UnfurledMediaItem {
228
+ url: string;
229
+ proxyURL?: string;
230
+ height?: number | null;
231
+ width?: number | null;
232
+ contentType?: string;
233
+ attachmentID?: snowflake;
103
234
  }
@@ -4,7 +4,7 @@ import type { Channel, RawChannel, RawRoleSubscriptionData, RoleSubscriptionData
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, RawActionRow } from "./message-components";
7
+ import type { ActionRow, Container, File, MediaGallery, RawActionRow, RawContainer, RawFile, RawMediaGallery, RawSection, RawSeparator, RawTextDisplay, Section, Separator, TextDisplay } from "./message-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<RawActionRow>;
41
+ components?: Array<RawMessageTopLevelComponent>;
42
42
  sticker_items?: Array<RawStickerItem>;
43
43
  stickers?: Array<RawSticker>;
44
44
  position?: number;
@@ -47,6 +47,7 @@ export interface RawMessage {
47
47
  poll?: RawPoll;
48
48
  call?: RawMessageCall;
49
49
  }
50
+ export type RawMessageTopLevelComponent = RawActionRow | RawTextDisplay | RawContainer | RawFile | RawSection | RawSeparator | RawMediaGallery;
50
51
  /** https://discord.com/developers/docs/resources/message#message-object-message-activity-structure */
51
52
  export interface RawMessageActivity {
52
53
  type: MessageActivityTypes;
@@ -225,7 +226,7 @@ export interface Message {
225
226
  interactionMetadata?: MessageInteractionMetadata;
226
227
  interaction?: MessageInteraction;
227
228
  thread?: Channel;
228
- components?: Array<ActionRow>;
229
+ components?: Array<MessageTopLevelComponent>;
229
230
  stickerItems?: Array<StickerItem>;
230
231
  stickers?: Array<Sticker>;
231
232
  position?: number;
@@ -234,6 +235,7 @@ export interface Message {
234
235
  poll?: Poll;
235
236
  call?: MessageCall;
236
237
  }
238
+ export type MessageTopLevelComponent = ActionRow | TextDisplay | Container | File | Section | Separator | MediaGallery;
237
239
  export interface MessageActivity {
238
240
  type: MessageActivityTypes;
239
241
  partyID?: string;
@@ -21,12 +21,24 @@ export interface RawUser {
21
21
  premium_type?: PremiumTypes;
22
22
  public_flags?: UserFlags;
23
23
  avatar_decoration_data?: RawAvatarDecorationData | null;
24
+ collectibles?: RawCollectibles | null;
24
25
  }
25
26
  /** https://discord.com/developers/docs/resources/user#avatar-decoration-data-object-avatar-decoration-data-structure */
26
27
  export interface RawAvatarDecorationData {
27
28
  asset: string;
28
29
  sku_id: snowflake;
29
30
  }
31
+ /** https://discord.com/developers/docs/resources/user#collectibles-object-collectibles-structure */
32
+ export interface RawCollectibles {
33
+ nameplate?: RawNameplate;
34
+ }
35
+ /** https://discord.com/developers/docs/resources/user#nameplate-object-nameplate-structure */
36
+ export interface RawNameplate {
37
+ sku_id: snowflake;
38
+ asset: string;
39
+ label: string;
40
+ palette: string;
41
+ }
30
42
  /** https://discord.com/developers/docs/resources/user#connection-object-connection-structure */
31
43
  export interface RawConnection {
32
44
  id: snowflake;
@@ -64,11 +76,21 @@ export interface User {
64
76
  premiumType?: PremiumTypes;
65
77
  publicFlags?: UserFlags;
66
78
  avatarDecorationData?: AvatarDecorationData | null;
79
+ collectibles?: Collectibles | null;
67
80
  }
68
81
  export interface AvatarDecorationData {
69
82
  asset: string;
70
83
  skuID: snowflake;
71
84
  }
85
+ export interface Collectibles {
86
+ nameplate?: Nameplate;
87
+ }
88
+ export interface Nameplate {
89
+ skuID: snowflake;
90
+ asset: string;
91
+ label: string;
92
+ palette: string;
93
+ }
72
94
  export interface Connection {
73
95
  id: snowflake;
74
96
  name: string;
@@ -1,25 +1,25 @@
1
1
  import { ImageFormats } from "../constants";
2
2
  import type { snowflake } from "../types/common";
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}.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}.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}.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}.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}.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}.json`;
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}.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}.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}.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}.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}.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}.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}.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}.json`;
17
- 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}.json`;
18
- 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}.json`;
19
- 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}.json`;
20
- 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}.json`;
21
- 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}.json`;
22
- 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}.json`;
23
- 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}.json`;
24
- 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}.json`;
25
- 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}.json`;
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`;
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 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`;
18
+ 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`;
19
+ 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`;
20
+ 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`;
21
+ 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`;
22
+ 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`;
23
+ 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`;
24
+ 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`;
25
+ 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`;
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "disgroove",
3
- "version": "2.2.5",
3
+ "version": "2.2.6-dev.3f22d60",
4
4
  "description": "A module to interface with Discord",
5
5
  "main": "./dist/lib/index.js",
6
6
  "types": "./dist/lib/index.d.ts",
@@ -27,7 +27,8 @@
27
27
  "devDependencies": {
28
28
  "@types/node": "^22.13.11",
29
29
  "@types/ws": "^8.18.0",
30
- "typescript": "^5.8.2"
30
+ "typescript": "^5.8.2",
31
+ "undici-types": "^7.9.0"
31
32
  },
32
33
  "dependencies": {
33
34
  "ws": "^8.18.1"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "disgroove",
3
- "version": "2.2.5",
3
+ "version": "2.2.6-dev.3f22d60",
4
4
  "description": "A module to interface with Discord",
5
5
  "main": "./dist/lib/index.js",
6
6
  "types": "./dist/lib/index.d.ts",
@@ -27,7 +27,8 @@
27
27
  "devDependencies": {
28
28
  "@types/node": "^22.13.11",
29
29
  "@types/ws": "^8.18.0",
30
- "typescript": "^5.8.2"
30
+ "typescript": "^5.8.2",
31
+ "undici-types": "^7.9.0"
31
32
  },
32
33
  "dependencies": {
33
34
  "ws": "^8.18.1"