disgroove 2.2.6-dev.4de2c29 → 2.2.6-dev.b9cd00b
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.
- package/dist/lib/Client.d.ts +8 -2
- package/dist/lib/Client.js +11 -3
- package/dist/lib/constants.d.ts +7 -0
- package/dist/lib/constants.js +10 -2
- package/dist/lib/rest/Endpoints.d.ts +2 -2
- package/dist/lib/rest/Endpoints.js +2 -2
- package/dist/lib/transformers/Applications.js +8 -0
- package/dist/lib/transformers/Components.js +4 -0
- package/dist/lib/transformers/Users.d.ts +3 -1
- package/dist/lib/transformers/Users.js +34 -0
- package/dist/lib/types/application.d.ts +9 -1
- package/dist/lib/types/message-components.d.ts +6 -0
- package/dist/lib/types/message.d.ts +9 -0
- package/dist/lib/types/user.d.ts +22 -0
- package/dist/lib/utils/CDN.d.ts +23 -23
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/lib/Client.d.ts
CHANGED
@@ -29,7 +29,7 @@ import type { User, ApplicationRoleConnection, Connection } from "./types/user";
|
|
29
29
|
import type { VoiceRegion, VoiceState } from "./types/voice";
|
30
30
|
import type { Webhook } from "./types/webhook";
|
31
31
|
import type { ClientOptions as WebSocketOptions } from "ws";
|
32
|
-
import type { Embed, AllowedMentions, Attachment, Message, MessageReference, MessageTopLevelComponent } from "./types/message";
|
32
|
+
import type { Embed, AllowedMentions, Attachment, Message, MessageReference, MessageTopLevelComponent, MessagePin } from "./types/message";
|
33
33
|
import type { Subscription } from "./types/subscription";
|
34
34
|
import type { SoundboardSound } from "./types/soundboard";
|
35
35
|
export interface GatewayOptions {
|
@@ -996,7 +996,13 @@ export declare class Client extends EventEmitter {
|
|
996
996
|
user?: User;
|
997
997
|
}>;
|
998
998
|
/** https://discord.com/developers/docs/resources/channel#get-pinned-messages */
|
999
|
-
getPinnedMessages(channelID: snowflake
|
999
|
+
getPinnedMessages(channelID: snowflake, options: {
|
1000
|
+
before?: timestamp;
|
1001
|
+
limit?: number;
|
1002
|
+
}): Promise<{
|
1003
|
+
items: Array<MessagePin>;
|
1004
|
+
hasMore: boolean;
|
1005
|
+
}>;
|
1000
1006
|
/** https://discord.com/developers/docs/resources/poll#get-answer-voters */
|
1001
1007
|
getPollAnswerVoters(channelID: snowflake, messageID: snowflake, answerID: snowflake, options?: {
|
1002
1008
|
after?: snowflake;
|
package/dist/lib/Client.js
CHANGED
@@ -2205,9 +2205,17 @@ class Client extends node_events_1.default {
|
|
2205
2205
|
};
|
2206
2206
|
}
|
2207
2207
|
/** https://discord.com/developers/docs/resources/channel#get-pinned-messages */
|
2208
|
-
async getPinnedMessages(channelID) {
|
2209
|
-
const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.channelPins(channelID)
|
2210
|
-
|
2208
|
+
async getPinnedMessages(channelID, options) {
|
2209
|
+
const response = await this.rest.request(rest_1.RESTMethods.Get, rest_1.Endpoints.channelPins(channelID), {
|
2210
|
+
query: options,
|
2211
|
+
});
|
2212
|
+
return {
|
2213
|
+
items: response.items.map((item) => ({
|
2214
|
+
pinnetAt: item.pinnet_at,
|
2215
|
+
message: transformers_1.Messages.messageFromRaw(item.message),
|
2216
|
+
})),
|
2217
|
+
hasMore: response.has_more,
|
2218
|
+
};
|
2211
2219
|
}
|
2212
2220
|
/** https://discord.com/developers/docs/resources/poll#get-answer-voters */
|
2213
2221
|
async getPollAnswerVoters(channelID, messageID, answerID, options) {
|
package/dist/lib/constants.d.ts
CHANGED
@@ -22,6 +22,7 @@ export declare enum ImageFormats {
|
|
22
22
|
PNG = "png",
|
23
23
|
WebP = "webp",
|
24
24
|
GIF = "gif",
|
25
|
+
AVIF = "avif",
|
25
26
|
Lottie = "json"
|
26
27
|
}
|
27
28
|
/** https://discord.com/developers/docs/reference#locales */
|
@@ -159,6 +160,12 @@ export declare enum ApplicationIntegrationTypes {
|
|
159
160
|
GuildInstall = 0,
|
160
161
|
UserInstall = 1
|
161
162
|
}
|
163
|
+
/** https://discord.com/developers/docs/resources/application#application-object-application-event-webhook-status */
|
164
|
+
export declare enum ApplicationEventWebhookStatus {
|
165
|
+
Disabled = 1,
|
166
|
+
Enabled = 2,
|
167
|
+
DisabledByDiscord = 3
|
168
|
+
}
|
162
169
|
/** https://discord.com/developers/docs/resources/application#application-object-application-flags */
|
163
170
|
export declare enum ApplicationFlags {
|
164
171
|
ApplicationAutoModerationRuleCreateBadge = 64,
|
package/dist/lib/constants.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
4
|
-
exports.EntitlementTypes = exports.SKUFlags = exports.SKUTypes = exports.MembershipState = exports.TeamMemberRoleTypes = exports.RoleFlags = exports.BitwisePermissionFlags = exports.RPCCloseEventCodes = exports.RPCErrorCodes = exports.JSONErrorCodes = exports.HTTPResponseCodes = exports.VoiceCloseEventCodes = exports.VoiceOPCodes = exports.GatewayCloseEventCodes = exports.GatewayOPCodes = exports.OAuth2Scopes = exports.AnimationTypes = exports.ActivityFlags = exports.ActivityType = exports.GatewayEvents = exports.StatusTypes = exports.GatewayIntents = exports.DeviceType = exports.WebhookTypes = exports.SubscriptionStatuses = exports.VisibilityTypes = exports.Services = exports.PremiumTypes = exports.UserFlags = exports.StickerFormatTypes = exports.StickerTypes = exports.PrivacyLevel = exports.LayoutType = exports.ReactionTypes = exports.AllowedMentionTypes = exports.AttachmentFlags = exports.EmbedTypes = exports.MessageReferenceTypes = exports.MessageFlags = exports.MessageActivityTypes = exports.MessageTypes = exports.InviteTargetTypes = void 0;
|
3
|
+
exports.GuildScheduledEventRecurrenceRuleMonth = exports.GuildScheduledEventRecurrenceRuleWeekday = exports.GuildScheduledEventRecurrenceRuleFrequency = exports.GuildScheduledEventStatus = exports.GuildScheduledEventEntityTypes = exports.GuildScheduledEventPrivacyLevel = exports.ImageWidgetStyleOptions = exports.PromptTypes = exports.OnboardingMode = exports.IntegrationExpireBehaviors = exports.GuildMemberFlags = exports.MutableGuildFeatures = exports.GuildFeatures = exports.SystemChannelFlags = exports.PremiumTier = exports.GuildNSFWLevel = exports.VerificationLevel = exports.MFALevel = exports.ExplicitContentFilterLevel = exports.DefaultMessageNotificationLevel = exports.ForumLayoutTypes = exports.SortOrderTypes = exports.ChannelFlags = exports.VideoQualityModes = exports.ChannelTypes = exports.ActionTypes = exports.EventTypes = exports.KeywordPresetTypes = exports.TriggerTypes = exports.AuditLogEvents = exports.ApplicationRoleConnectionMetadataType = exports.ActivityLocationKind = exports.ApplicationFlags = exports.ApplicationEventWebhookStatus = exports.ApplicationIntegrationTypes = exports.TextInputStyles = exports.ButtonStyles = exports.InteractionCallbackType = exports.SeparatorSpacing = exports.ComponentTypes = exports.InteractionContextTypes = exports.InteractionType = exports.ApplicationCommandPermissionType = exports.EntryPointCommandHandlerTypes = exports.ApplicationCommandOptionType = exports.ApplicationCommandTypes = exports.Locales = exports.ImageFormats = exports.GuildNavigationTypes = exports.TimestampStyles = void 0;
|
4
|
+
exports.EntitlementTypes = exports.SKUFlags = exports.SKUTypes = exports.MembershipState = exports.TeamMemberRoleTypes = exports.RoleFlags = exports.BitwisePermissionFlags = exports.RPCCloseEventCodes = exports.RPCErrorCodes = exports.JSONErrorCodes = exports.HTTPResponseCodes = exports.VoiceCloseEventCodes = exports.VoiceOPCodes = exports.GatewayCloseEventCodes = exports.GatewayOPCodes = exports.OAuth2Scopes = exports.AnimationTypes = exports.ActivityFlags = exports.ActivityType = exports.GatewayEvents = exports.StatusTypes = exports.GatewayIntents = exports.DeviceType = exports.WebhookTypes = exports.SubscriptionStatuses = exports.VisibilityTypes = exports.Services = exports.PremiumTypes = exports.UserFlags = exports.StickerFormatTypes = exports.StickerTypes = exports.PrivacyLevel = exports.LayoutType = exports.ReactionTypes = exports.AllowedMentionTypes = exports.AttachmentFlags = exports.EmbedTypes = exports.MessageReferenceTypes = exports.MessageFlags = exports.MessageActivityTypes = exports.MessageTypes = exports.InviteTargetTypes = exports.InviteTypes = void 0;
|
5
5
|
/** https://discord.com/developers/docs/reference#message-formatting-timestamp-styles */
|
6
6
|
var TimestampStyles;
|
7
7
|
(function (TimestampStyles) {
|
@@ -29,6 +29,7 @@ var ImageFormats;
|
|
29
29
|
ImageFormats["PNG"] = "png";
|
30
30
|
ImageFormats["WebP"] = "webp";
|
31
31
|
ImageFormats["GIF"] = "gif";
|
32
|
+
ImageFormats["AVIF"] = "avif";
|
32
33
|
ImageFormats["Lottie"] = "json";
|
33
34
|
})(ImageFormats || (exports.ImageFormats = ImageFormats = {}));
|
34
35
|
/** https://discord.com/developers/docs/reference#locales */
|
@@ -179,6 +180,13 @@ var ApplicationIntegrationTypes;
|
|
179
180
|
ApplicationIntegrationTypes[ApplicationIntegrationTypes["GuildInstall"] = 0] = "GuildInstall";
|
180
181
|
ApplicationIntegrationTypes[ApplicationIntegrationTypes["UserInstall"] = 1] = "UserInstall";
|
181
182
|
})(ApplicationIntegrationTypes || (exports.ApplicationIntegrationTypes = ApplicationIntegrationTypes = {}));
|
183
|
+
/** https://discord.com/developers/docs/resources/application#application-object-application-event-webhook-status */
|
184
|
+
var ApplicationEventWebhookStatus;
|
185
|
+
(function (ApplicationEventWebhookStatus) {
|
186
|
+
ApplicationEventWebhookStatus[ApplicationEventWebhookStatus["Disabled"] = 1] = "Disabled";
|
187
|
+
ApplicationEventWebhookStatus[ApplicationEventWebhookStatus["Enabled"] = 2] = "Enabled";
|
188
|
+
ApplicationEventWebhookStatus[ApplicationEventWebhookStatus["DisabledByDiscord"] = 3] = "DisabledByDiscord";
|
189
|
+
})(ApplicationEventWebhookStatus || (exports.ApplicationEventWebhookStatus = ApplicationEventWebhookStatus = {}));
|
182
190
|
/** https://discord.com/developers/docs/resources/application#application-object-application-flags */
|
183
191
|
var ApplicationFlags;
|
184
192
|
(function (ApplicationFlags) {
|
@@ -55,8 +55,8 @@ export declare const channelMessageCrosspost: (channelID: snowflake, messageID:
|
|
55
55
|
export declare const channelMessageReaction: (channelID: snowflake, messageID: snowflake, emoji: string, userID?: snowflake | "@me") => `channels/${string}/messages/${string}/reactions/${string}/${string}`;
|
56
56
|
export declare const channelMessages: (channelID: snowflake) => `channels/${string}/messages`;
|
57
57
|
export declare const channelPermission: (channelID: snowflake, overwriteID: snowflake) => `channels/${string}/permissions/${string}`;
|
58
|
-
export declare const channelPin: (channelID: snowflake, messageID: snowflake) => `channels/${string}/pins/${string}`;
|
59
|
-
export declare const channelPins: (channelID: snowflake) => `channels/${string}/pins`;
|
58
|
+
export declare const channelPin: (channelID: snowflake, messageID: snowflake) => `channels/${string}/messages/pins/${string}`;
|
59
|
+
export declare const channelPins: (channelID: snowflake) => `channels/${string}/messages/pins`;
|
60
60
|
export declare const channelRecipient: (channelID: snowflake, userID: snowflake) => `channels/${string}/recipients/${string}`;
|
61
61
|
export declare const channelThreads: (channelID: snowflake, archivedStatus: "public" | "private", joined: boolean) => `channels/${string}/threads/archived/private` | `channels/${string}/threads/archived/public`;
|
62
62
|
export declare const channelTyping: (channelID: snowflake) => `channels/${string}/typing`;
|
@@ -119,9 +119,9 @@ const channelMessages = (channelID) => `channels/${channelID}/messages`;
|
|
119
119
|
exports.channelMessages = channelMessages;
|
120
120
|
const channelPermission = (channelID, overwriteID) => `channels/${channelID}/permissions/${overwriteID}`;
|
121
121
|
exports.channelPermission = channelPermission;
|
122
|
-
const channelPin = (channelID, messageID) => `channels/${channelID}/pins/${messageID}`;
|
122
|
+
const channelPin = (channelID, messageID) => `channels/${channelID}/messages/pins/${messageID}`;
|
123
123
|
exports.channelPin = channelPin;
|
124
|
-
const channelPins = (channelID) => `channels/${channelID}/pins`;
|
124
|
+
const channelPins = (channelID) => `channels/${channelID}/messages/pins`;
|
125
125
|
exports.channelPins = channelPins;
|
126
126
|
const channelRecipient = (channelID, userID) => `channels/${channelID}/recipients/${userID}`;
|
127
127
|
exports.channelRecipient = channelRecipient;
|
@@ -31,9 +31,13 @@ class Applications {
|
|
31
31
|
flags: application.flags,
|
32
32
|
approximateGuildCount: application.approximate_guild_count,
|
33
33
|
approximateUserInstallCount: application.approximate_user_install_count,
|
34
|
+
approximateUserAuthorizationCount: application.approximate_user_authorization_count,
|
34
35
|
redirectURIs: application.redirect_uris,
|
35
36
|
interactionsEndpointURL: application.interactions_endpoint_url,
|
36
37
|
roleConnectionsVerificationURL: application.role_connections_verification_url,
|
38
|
+
eventWebhooksURL: application.event_webhooks_url,
|
39
|
+
eventWebhooksStatus: application.event_webhooks_status,
|
40
|
+
eventWebhooksTypes: application.event_webhooks_types,
|
37
41
|
tags: application.tags,
|
38
42
|
installParams: application.install_params,
|
39
43
|
integrationTypesConfig: application.integration_types_config !== undefined
|
@@ -77,9 +81,13 @@ class Applications {
|
|
77
81
|
flags: application.flags,
|
78
82
|
approximate_guild_count: application.approximateGuildCount,
|
79
83
|
approximate_user_install_count: application.approximateUserInstallCount,
|
84
|
+
approximate_user_authorization_count: application.approximateUserAuthorizationCount,
|
80
85
|
redirect_uris: application.redirectURIs,
|
81
86
|
interactions_endpoint_url: application.interactionsEndpointURL,
|
82
87
|
role_connections_verification_url: application.roleConnectionsVerificationURL,
|
88
|
+
event_webhooks_url: application.eventWebhooksURL,
|
89
|
+
event_webhooks_status: application.eventWebhooksStatus,
|
90
|
+
event_webhooks_types: application.eventWebhooksTypes,
|
83
91
|
tags: application.tags,
|
84
92
|
install_params: application.installParams,
|
85
93
|
integration_types_config: application.integrationTypesConfig !== undefined
|
@@ -141,6 +141,8 @@ class Components {
|
|
141
141
|
id: file.id,
|
142
142
|
file: Components.unfurledMediaItemFromRaw(file.file),
|
143
143
|
spoiler: file.spoiler,
|
144
|
+
name: file.name,
|
145
|
+
size: file.size,
|
144
146
|
};
|
145
147
|
}
|
146
148
|
static fileToRaw(file) {
|
@@ -149,6 +151,8 @@ class Components {
|
|
149
151
|
id: file.id,
|
150
152
|
file: Components.unfurledMediaItemToRaw(file.file),
|
151
153
|
spoiler: file.spoiler,
|
154
|
+
name: file.name,
|
155
|
+
size: file.size,
|
152
156
|
};
|
153
157
|
}
|
154
158
|
static mediaGalleryFromRaw(mediaGallery) {
|
@@ -1,5 +1,7 @@
|
|
1
|
-
import type { RawUser, User } from "../types/user";
|
1
|
+
import type { Nameplate, RawNameplate, RawUser, User } from "../types/user";
|
2
2
|
export declare class Users {
|
3
|
+
static nameplateFromRaw(nameplate: RawNameplate): Nameplate;
|
4
|
+
static nameplateToRaw(nameplate: Nameplate): RawNameplate;
|
3
5
|
static userFromRaw(user: RawUser): User;
|
4
6
|
static userToRaw(user: User): RawUser;
|
5
7
|
}
|
@@ -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
|
}
|
@@ -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>;
|
@@ -27,6 +27,8 @@ export interface RawFile {
|
|
27
27
|
id?: number;
|
28
28
|
file: RawUnfurledMediaItem;
|
29
29
|
spoiler?: boolean;
|
30
|
+
name: string;
|
31
|
+
size: number;
|
30
32
|
}
|
31
33
|
/** https://discord.com/developers/docs/components/reference#media-gallery-media-gallery-structure */
|
32
34
|
export interface RawMediaGallery {
|
@@ -120,6 +122,7 @@ export interface RawUnfurledMediaItem {
|
|
120
122
|
height?: number | null;
|
121
123
|
width?: number | null;
|
122
124
|
content_type?: string;
|
125
|
+
attachment_id?: snowflake;
|
123
126
|
}
|
124
127
|
export interface Button {
|
125
128
|
type: ComponentTypes.Button;
|
@@ -144,6 +147,8 @@ export interface File {
|
|
144
147
|
id?: number;
|
145
148
|
file: UnfurledMediaItem;
|
146
149
|
spoiler?: boolean;
|
150
|
+
name: string;
|
151
|
+
size: number;
|
147
152
|
}
|
148
153
|
export interface MediaGallery {
|
149
154
|
type: ComponentTypes.MediaGallery;
|
@@ -225,4 +230,5 @@ export interface UnfurledMediaItem {
|
|
225
230
|
height?: number | null;
|
226
231
|
width?: number | null;
|
227
232
|
contentType?: string;
|
233
|
+
attachmentID?: snowflake;
|
228
234
|
}
|
@@ -197,6 +197,11 @@ export interface RawAllowedMentions {
|
|
197
197
|
users?: Array<snowflake>;
|
198
198
|
replied_user?: boolean;
|
199
199
|
}
|
200
|
+
/** https://discord.com/developers/docs/resources/message#message-pin-object-message-pin-structure */
|
201
|
+
export interface RawMessagePin {
|
202
|
+
pinnet_at: timestamp;
|
203
|
+
message: RawMessage;
|
204
|
+
}
|
200
205
|
export interface Message {
|
201
206
|
id: snowflake;
|
202
207
|
channelID: snowflake;
|
@@ -366,3 +371,7 @@ export interface AllowedMentions {
|
|
366
371
|
users?: Array<snowflake>;
|
367
372
|
repliedUser?: boolean;
|
368
373
|
}
|
374
|
+
export interface MessagePin {
|
375
|
+
pinnetAt: timestamp;
|
376
|
+
message: Message;
|
377
|
+
}
|
package/dist/lib/types/user.d.ts
CHANGED
@@ -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;
|
package/dist/lib/utils/CDN.d.ts
CHANGED
@@ -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