dfx 0.98.0 → 0.99.0
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/DiscordGateway/Messaging.d.ts.map +1 -1
- package/DiscordGateway/Shard.d.ts +2 -2
- package/DiscordGateway/Sharder.d.ts +1 -1
- package/DiscordGateway.d.ts +1 -1
- package/DiscordREST.d.ts +1 -1
- package/Helpers/intents.d.ts +1 -1
- package/Helpers/intents.d.ts.map +1 -1
- package/Helpers/permissions.d.ts +1 -1
- package/Helpers/permissions.d.ts.map +1 -1
- package/Interactions/utils.d.ts.map +1 -1
- package/Interactions/webhook.d.ts +4 -5
- package/Interactions/webhook.d.ts.map +1 -1
- package/Interactions/webhook.js +3 -3
- package/Interactions/webhook.js.map +1 -1
- package/gateway.d.ts +2 -2
- package/mjs/Interactions/webhook.mjs +4 -4
- package/mjs/Interactions/webhook.mjs.map +1 -1
- package/mjs/types.mjs +77 -1
- package/mjs/types.mjs.map +1 -1
- package/mjs/version.mjs +1 -1
- package/package.json +4 -4
- package/src/Interactions/webhook.ts +4 -4
- package/src/types.ts +201 -28
- package/src/version.ts +1 -1
- package/types.d.ts +130 -28
- package/types.d.ts.map +1 -1
- package/types.js +78 -2
- package/types.js.map +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/webhooks.d.ts +1 -1
package/src/types.ts
CHANGED
|
@@ -112,7 +112,7 @@ export interface ActivityTimestamp {
|
|
|
112
112
|
readonly end?: number
|
|
113
113
|
}
|
|
114
114
|
export enum ActivityType {
|
|
115
|
-
|
|
115
|
+
PLAYING = 0,
|
|
116
116
|
STREAMING = 1,
|
|
117
117
|
LISTENING = 2,
|
|
118
118
|
WATCHING = 3,
|
|
@@ -202,7 +202,7 @@ export interface Application {
|
|
|
202
202
|
readonly tags?: Array<string>
|
|
203
203
|
/** Settings for the app's default in-app authorization link, if enabled */
|
|
204
204
|
readonly install_params?: InstallParam
|
|
205
|
-
/**
|
|
205
|
+
/** Default scopes and permissions for each supported installation context. Value for each key is an integration type configuration object */
|
|
206
206
|
readonly integration_types_config?: ApplicationIntegrationType
|
|
207
207
|
/** Default custom authorization URL for the app, if enabled */
|
|
208
208
|
readonly custom_install_url?: string
|
|
@@ -234,9 +234,9 @@ export interface ApplicationCommand {
|
|
|
234
234
|
readonly default_permission?: boolean | null
|
|
235
235
|
/** Indicates whether the command is age-restricted, defaults to false */
|
|
236
236
|
readonly nsfw?: boolean
|
|
237
|
-
/**
|
|
237
|
+
/** Installation contexts where the command is available, only for globally-scoped commands. Defaults to your app's configured contexts */
|
|
238
238
|
readonly integration_types?: Array<ApplicationIntegrationType>
|
|
239
|
-
/**
|
|
239
|
+
/** Interaction context(s) where the command can be used, only for globally-scoped commands. By default, all interaction context types included for new commands. */
|
|
240
240
|
readonly contexts?: Array<InteractionContextType> | null
|
|
241
241
|
/** Autoincrementing version identifier updated during substantial record changes */
|
|
242
242
|
readonly version: Snowflake
|
|
@@ -416,6 +416,8 @@ export interface Attachment {
|
|
|
416
416
|
readonly id: Snowflake
|
|
417
417
|
/** name of file attached */
|
|
418
418
|
readonly filename: string
|
|
419
|
+
/** the title of the file */
|
|
420
|
+
readonly title?: string
|
|
419
421
|
/** description for the file (max 1024 characters) */
|
|
420
422
|
readonly description?: string
|
|
421
423
|
/** the attachment's media type */
|
|
@@ -759,9 +761,9 @@ export interface BulkOverwriteGuildApplicationCommandParams {
|
|
|
759
761
|
readonly dm_permission?: boolean | null
|
|
760
762
|
/** Replaced by default_member_permissions and will be deprecated in the future. Indicates whether the command is enabled by default when the app is added to a guild. Defaults to true */
|
|
761
763
|
readonly default_permission?: boolean
|
|
762
|
-
/**
|
|
764
|
+
/** Installation context(s) where the command is available, defaults to GUILD_INSTALL ([0]) */
|
|
763
765
|
readonly integration_types: Array<ApplicationIntegrationType>
|
|
764
|
-
/**
|
|
766
|
+
/** Interaction context(s) where the command can be used, defaults to all contexts [0,1,2] */
|
|
765
767
|
readonly contexts: Array<InteractionContextType>
|
|
766
768
|
/** Type of command, defaults 1 if not set */
|
|
767
769
|
readonly type?: ApplicationCommandType
|
|
@@ -801,7 +803,7 @@ export interface Channel {
|
|
|
801
803
|
readonly type: ChannelType
|
|
802
804
|
/** the id of the guild (may be missing for some channel objects received over gateway guild dispatches) */
|
|
803
805
|
readonly guild_id?: Snowflake
|
|
804
|
-
/** sorting position of the channel */
|
|
806
|
+
/** sorting position of the channel (channels with the same position are sorted by id) */
|
|
805
807
|
readonly position?: number
|
|
806
808
|
/** explicit permission overwrites for members and roles */
|
|
807
809
|
readonly permission_overwrites?: Array<Overwrite>
|
|
@@ -972,6 +974,12 @@ export interface Connection {
|
|
|
972
974
|
/** visibility of this connection */
|
|
973
975
|
readonly visibility: VisibilityType
|
|
974
976
|
}
|
|
977
|
+
export interface CreateApplicationEmojiParams {
|
|
978
|
+
/** name of the emoji */
|
|
979
|
+
readonly name: string
|
|
980
|
+
/** the 128x128 emoji image */
|
|
981
|
+
readonly image: string
|
|
982
|
+
}
|
|
975
983
|
export interface CreateAutoModerationRuleParams {
|
|
976
984
|
/** the rule name */
|
|
977
985
|
readonly name: string
|
|
@@ -1081,7 +1089,7 @@ export interface CreateGuildChannelParams {
|
|
|
1081
1089
|
readonly user_limit: number
|
|
1082
1090
|
/** amount of seconds a user has to wait before sending another message (0-21600); bots, as well as users with the permission manage_messages or manage_channel, are unaffected */
|
|
1083
1091
|
readonly rate_limit_per_user: number
|
|
1084
|
-
/** sorting position of the channel */
|
|
1092
|
+
/** sorting position of the channel (channels with the same position are sorted by id) */
|
|
1085
1093
|
readonly position: number
|
|
1086
1094
|
/** the channel's permission overwrites */
|
|
1087
1095
|
readonly permission_overwrites: Array<Overwrite>
|
|
@@ -1181,6 +1189,8 @@ export interface CreateGuildScheduledEventParams {
|
|
|
1181
1189
|
readonly entity_type: GuildScheduledEventEntityType
|
|
1182
1190
|
/** the cover image of the scheduled event */
|
|
1183
1191
|
readonly image?: string
|
|
1192
|
+
/** the definition for how often this event should recur */
|
|
1193
|
+
readonly recurrence_rule?: GuildScheduledEventRecurrenceRule
|
|
1184
1194
|
}
|
|
1185
1195
|
export interface CreateGuildStickerParams {
|
|
1186
1196
|
/** name of the sticker (2-30 characters) */
|
|
@@ -1209,7 +1219,7 @@ export interface CreateMessageParams {
|
|
|
1209
1219
|
readonly embeds?: Array<Embed>
|
|
1210
1220
|
/** Allowed mentions for the message */
|
|
1211
1221
|
readonly allowed_mentions?: AllowedMention
|
|
1212
|
-
/** Include to make your message a reply */
|
|
1222
|
+
/** Include to make your message a reply or a forward */
|
|
1213
1223
|
readonly message_reference?: MessageReference
|
|
1214
1224
|
/** Components to include with the message */
|
|
1215
1225
|
readonly components?: Array<Component>
|
|
@@ -1302,6 +1312,13 @@ export function createRoutes<O = any>(
|
|
|
1302
1312
|
url: `/applications/${applicationId}/entitlements/${entitlementId}/consume`,
|
|
1303
1313
|
options,
|
|
1304
1314
|
}),
|
|
1315
|
+
createApplicationEmoji: (applicationId, params, options) =>
|
|
1316
|
+
fetch({
|
|
1317
|
+
method: "POST",
|
|
1318
|
+
url: `/applications/${applicationId}/emojis`,
|
|
1319
|
+
params,
|
|
1320
|
+
options,
|
|
1321
|
+
}),
|
|
1305
1322
|
createAutoModerationRule: (guildId, params, options) =>
|
|
1306
1323
|
fetch({
|
|
1307
1324
|
method: "POST",
|
|
@@ -1477,6 +1494,12 @@ export function createRoutes<O = any>(
|
|
|
1477
1494
|
url: `/channels/${channelId}/messages/${messageId}/reactions/${emoji}`,
|
|
1478
1495
|
options,
|
|
1479
1496
|
}),
|
|
1497
|
+
deleteApplicationEmoji: (applicationId, emojiId, options) =>
|
|
1498
|
+
fetch({
|
|
1499
|
+
method: "DELETE",
|
|
1500
|
+
url: `/applications/${applicationId}/emojis/${emojiId}`,
|
|
1501
|
+
options,
|
|
1502
|
+
}),
|
|
1480
1503
|
deleteAutoModerationRule: (guildId, autoModerationRuleId, options) =>
|
|
1481
1504
|
fetch({
|
|
1482
1505
|
method: "DELETE",
|
|
@@ -1772,6 +1795,12 @@ export function createRoutes<O = any>(
|
|
|
1772
1795
|
url: `/applications/${applicationId}/guilds/${guildId}/commands/${commandId}/permissions`,
|
|
1773
1796
|
options,
|
|
1774
1797
|
}),
|
|
1798
|
+
getApplicationEmoji: (applicationId, emojiId, options) =>
|
|
1799
|
+
fetch({
|
|
1800
|
+
method: "GET",
|
|
1801
|
+
url: `/applications/${applicationId}/emojis/${emojiId}`,
|
|
1802
|
+
options,
|
|
1803
|
+
}),
|
|
1775
1804
|
getApplicationRoleConnectionMetadataRecords: (applicationId, options) =>
|
|
1776
1805
|
fetch({
|
|
1777
1806
|
method: "GET",
|
|
@@ -1864,6 +1893,12 @@ export function createRoutes<O = any>(
|
|
|
1864
1893
|
params,
|
|
1865
1894
|
options,
|
|
1866
1895
|
}),
|
|
1896
|
+
getCurrentUserVoiceState: (guildId, options) =>
|
|
1897
|
+
fetch({
|
|
1898
|
+
method: "GET",
|
|
1899
|
+
url: `/guilds/${guildId}/voice-states/@me`,
|
|
1900
|
+
options,
|
|
1901
|
+
}),
|
|
1867
1902
|
getFollowupMessage: (
|
|
1868
1903
|
applicationId,
|
|
1869
1904
|
interactionToken,
|
|
@@ -2140,6 +2175,12 @@ export function createRoutes<O = any>(
|
|
|
2140
2175
|
url: `/users/${userId}`,
|
|
2141
2176
|
options,
|
|
2142
2177
|
}),
|
|
2178
|
+
getUserVoiceState: (guildId, userId, options) =>
|
|
2179
|
+
fetch({
|
|
2180
|
+
method: "GET",
|
|
2181
|
+
url: `/guilds/${guildId}/voice-states/${userId}`,
|
|
2182
|
+
options,
|
|
2183
|
+
}),
|
|
2143
2184
|
getWebhook: (webhookId, options) =>
|
|
2144
2185
|
fetch({
|
|
2145
2186
|
method: "GET",
|
|
@@ -2196,6 +2237,12 @@ export function createRoutes<O = any>(
|
|
|
2196
2237
|
url: `/guilds/${guildId}/threads/active`,
|
|
2197
2238
|
options,
|
|
2198
2239
|
}),
|
|
2240
|
+
listApplicationEmojis: (applicationId, options) =>
|
|
2241
|
+
fetch({
|
|
2242
|
+
method: "GET",
|
|
2243
|
+
url: `/applications/${applicationId}/emojis`,
|
|
2244
|
+
options,
|
|
2245
|
+
}),
|
|
2199
2246
|
listAutoModerationRulesForGuild: (guildId, options) =>
|
|
2200
2247
|
fetch({
|
|
2201
2248
|
method: "GET",
|
|
@@ -2280,6 +2327,13 @@ export function createRoutes<O = any>(
|
|
|
2280
2327
|
url: `/voice/regions`,
|
|
2281
2328
|
options,
|
|
2282
2329
|
}),
|
|
2330
|
+
modifyApplicationEmoji: (applicationId, emojiId, params, options) =>
|
|
2331
|
+
fetch({
|
|
2332
|
+
method: "PATCH",
|
|
2333
|
+
url: `/applications/${applicationId}/emojis/${emojiId}`,
|
|
2334
|
+
params,
|
|
2335
|
+
options,
|
|
2336
|
+
}),
|
|
2283
2337
|
modifyAutoModerationRule: (
|
|
2284
2338
|
guildId,
|
|
2285
2339
|
autoModerationRuleId,
|
|
@@ -2599,7 +2653,7 @@ export interface EditCurrentApplicationParams {
|
|
|
2599
2653
|
readonly role_connections_verification_url: string
|
|
2600
2654
|
/** Settings for the app's default in-app authorization link, if enabled */
|
|
2601
2655
|
readonly install_params: InstallParam
|
|
2602
|
-
/**
|
|
2656
|
+
/** Default scopes and permissions for each supported installation context. Value for each key is an integration type configuration object */
|
|
2603
2657
|
readonly integration_types_config: ApplicationIntegrationType
|
|
2604
2658
|
/** App's public flags */
|
|
2605
2659
|
readonly flags: number
|
|
@@ -2629,9 +2683,9 @@ export interface EditGlobalApplicationCommandParams {
|
|
|
2629
2683
|
readonly dm_permission?: boolean | null
|
|
2630
2684
|
/** Replaced by default_member_permissions and will be deprecated in the future. Indicates whether the command is enabled by default when the app is added to a guild. Defaults to true */
|
|
2631
2685
|
readonly default_permission?: boolean
|
|
2632
|
-
/**
|
|
2686
|
+
/** Installation context(s) where the command is available */
|
|
2633
2687
|
readonly integration_types?: Array<ApplicationIntegrationType>
|
|
2634
|
-
/**
|
|
2688
|
+
/** Interaction context(s) where the command can be used */
|
|
2635
2689
|
readonly contexts?: Array<InteractionContextType>
|
|
2636
2690
|
/** Indicates whether the command is age-restricted */
|
|
2637
2691
|
readonly nsfw?: boolean
|
|
@@ -2872,6 +2926,12 @@ export interface Endpoints<O> {
|
|
|
2872
2926
|
entitlementId: string,
|
|
2873
2927
|
options?: O,
|
|
2874
2928
|
) => RestResponse<any>
|
|
2929
|
+
/** Create a new emoji for the application. Returns the new emoji object on success. */
|
|
2930
|
+
createApplicationEmoji: (
|
|
2931
|
+
applicationId: string,
|
|
2932
|
+
params?: Partial<CreateApplicationEmojiParams>,
|
|
2933
|
+
options?: O,
|
|
2934
|
+
) => RestResponse<Emoji>
|
|
2875
2935
|
/** Create a new rule. Returns an auto moderation rule on success. Fires an Auto Moderation Rule Create Gateway event. */
|
|
2876
2936
|
createAutoModerationRule: (
|
|
2877
2937
|
guildId: string,
|
|
@@ -2889,7 +2949,6 @@ export interface Endpoints<O> {
|
|
|
2889
2949
|
params?: Partial<CreateDmParams>,
|
|
2890
2950
|
options?: O,
|
|
2891
2951
|
) => RestResponse<Channel>
|
|
2892
|
-
/** Create a followup message for an Interaction. Functions the same as Execute Webhook, but wait is always true. The thread_id, avatar_url, and username parameters are not supported when using this endpoint for interaction followups. */
|
|
2893
2952
|
createFollowupMessage: (
|
|
2894
2953
|
applicationId: string,
|
|
2895
2954
|
interactionToken: string,
|
|
@@ -3022,6 +3081,12 @@ The emoji must be URL Encoded or the request will fail with 10014: Unknown Emoji
|
|
|
3022
3081
|
emoji: string,
|
|
3023
3082
|
options?: O,
|
|
3024
3083
|
) => RestResponse<any>
|
|
3084
|
+
/** Delete the given emoji. Returns 204 No Content on success. */
|
|
3085
|
+
deleteApplicationEmoji: (
|
|
3086
|
+
applicationId: string,
|
|
3087
|
+
emojiId: string,
|
|
3088
|
+
options?: O,
|
|
3089
|
+
) => RestResponse<any>
|
|
3025
3090
|
/** Delete a rule. Returns a 204 on success. Fires an Auto Moderation Rule Delete Gateway event. */
|
|
3026
3091
|
deleteAutoModerationRule: (
|
|
3027
3092
|
guildId: string,
|
|
@@ -3257,6 +3322,12 @@ The emoji must be URL Encoded or the request will fail with 10014: Unknown Emoji
|
|
|
3257
3322
|
commandId: string,
|
|
3258
3323
|
options?: O,
|
|
3259
3324
|
) => RestResponse<GuildApplicationCommandPermission>
|
|
3325
|
+
/** Returns an emoji object for the given application and emoji IDs. Includes the user field. */
|
|
3326
|
+
getApplicationEmoji: (
|
|
3327
|
+
applicationId: string,
|
|
3328
|
+
emojiId: string,
|
|
3329
|
+
options?: O,
|
|
3330
|
+
) => RestResponse<Emoji>
|
|
3260
3331
|
/** Returns a list of application role connection metadata objects for the given application. */
|
|
3261
3332
|
getApplicationRoleConnectionMetadataRecords: (
|
|
3262
3333
|
applicationId: string,
|
|
@@ -3321,6 +3392,11 @@ The emoji must be URL Encoded or the request will fail with 10014: Unknown Emoji
|
|
|
3321
3392
|
params?: Partial<GetCurrentUserGuildParams>,
|
|
3322
3393
|
options?: O,
|
|
3323
3394
|
) => RestResponse<Array<Guild>>
|
|
3395
|
+
/** Returns the current user's voice state in the guild. */
|
|
3396
|
+
getCurrentUserVoiceState: (
|
|
3397
|
+
guildId: string,
|
|
3398
|
+
options?: O,
|
|
3399
|
+
) => RestResponse<VoiceState>
|
|
3324
3400
|
/** Returns a followup message for an Interaction. Functions the same as Get Webhook Message. */
|
|
3325
3401
|
getFollowupMessage: (
|
|
3326
3402
|
applicationId: string,
|
|
@@ -3525,6 +3601,12 @@ The emoji must be URL Encoded or the request will fail with 10014: Unknown Emoji
|
|
|
3525
3601
|
) => RestResponse<ThreadMember>
|
|
3526
3602
|
/** Returns a user object for a given user ID. */
|
|
3527
3603
|
getUser: (userId: string, options?: O) => RestResponse<User>
|
|
3604
|
+
/** Returns the specified user's voice state in the guild. */
|
|
3605
|
+
getUserVoiceState: (
|
|
3606
|
+
guildId: string,
|
|
3607
|
+
userId: string,
|
|
3608
|
+
options?: O,
|
|
3609
|
+
) => RestResponse<VoiceState>
|
|
3528
3610
|
/** Returns the new webhook object for the given id. */
|
|
3529
3611
|
getWebhook: (webhookId: string, options?: O) => RestResponse<Webhook>
|
|
3530
3612
|
/** Returns a previously-sent webhook message from the same token. Returns a message object on success. */
|
|
@@ -3565,6 +3647,11 @@ The emoji must be URL Encoded or the request will fail with 10014: Unknown Emoji
|
|
|
3565
3647
|
guildId: string,
|
|
3566
3648
|
options?: O,
|
|
3567
3649
|
) => RestResponse<ListActiveGuildThreadResponse>
|
|
3650
|
+
/** Returns an object containing a list of emoji objects for the given application under the items key. Includes a user object for the team member that uploaded the emoji from the app's settings, or for the bot user if uploaded using the API. */
|
|
3651
|
+
listApplicationEmojis: (
|
|
3652
|
+
applicationId: string,
|
|
3653
|
+
options?: O,
|
|
3654
|
+
) => RestResponse<Array<Emoji>>
|
|
3568
3655
|
/** Get a list of all rules currently configured for the guild. Returns a list of auto moderation rule objects for the given guild. */
|
|
3569
3656
|
listAutoModerationRulesForGuild: (
|
|
3570
3657
|
guildId: string,
|
|
@@ -3620,6 +3707,13 @@ The emoji must be URL Encoded or the request will fail with 10014: Unknown Emoji
|
|
|
3620
3707
|
) => RestResponse<Array<ThreadMember>>
|
|
3621
3708
|
/** Returns an array of voice region objects that can be used when setting a voice or stage channel's rtc_region. */
|
|
3622
3709
|
listVoiceRegions: (options?: O) => RestResponse<Array<VoiceRegion>>
|
|
3710
|
+
/** Modify the given emoji. Returns the updated emoji object on success. */
|
|
3711
|
+
modifyApplicationEmoji: (
|
|
3712
|
+
applicationId: string,
|
|
3713
|
+
emojiId: string,
|
|
3714
|
+
params?: Partial<ModifyApplicationEmojiParams>,
|
|
3715
|
+
options?: O,
|
|
3716
|
+
) => RestResponse<Emoji>
|
|
3623
3717
|
/** Modify an existing rule. Returns an auto moderation rule on success. Fires an Auto Moderation Rule Update Gateway event. */
|
|
3624
3718
|
modifyAutoModerationRule: (
|
|
3625
3719
|
guildId: string,
|
|
@@ -4113,7 +4207,7 @@ export interface GetGuildAuditLogParams {
|
|
|
4113
4207
|
}
|
|
4114
4208
|
export interface GetGuildBanParams {
|
|
4115
4209
|
/** number of users to return (up to maximum 1000) */
|
|
4116
|
-
readonly limit?:
|
|
4210
|
+
readonly limit?: number
|
|
4117
4211
|
/** consider only users before given user id */
|
|
4118
4212
|
readonly before?: Snowflake
|
|
4119
4213
|
/** consider only users after given user id */
|
|
@@ -4135,7 +4229,7 @@ export interface GetGuildScheduledEventParams {
|
|
|
4135
4229
|
}
|
|
4136
4230
|
export interface GetGuildScheduledEventUserParams {
|
|
4137
4231
|
/** number of users to return (up to maximum 100) */
|
|
4138
|
-
readonly limit?:
|
|
4232
|
+
readonly limit?: number
|
|
4139
4233
|
/** include guild member data if it exists */
|
|
4140
4234
|
readonly with_member?: boolean
|
|
4141
4235
|
/** consider only users before given user id */
|
|
@@ -4570,6 +4664,8 @@ export interface GuildScheduledEvent {
|
|
|
4570
4664
|
readonly user_count?: number
|
|
4571
4665
|
/** the cover image hash of the scheduled event */
|
|
4572
4666
|
readonly image?: string | null
|
|
4667
|
+
/** the definition for how often this event should recur */
|
|
4668
|
+
readonly recurrence_rule?: GuildScheduledEventRecurrenceRule | null
|
|
4573
4669
|
}
|
|
4574
4670
|
export type GuildScheduledEventCreateEvent = GuildScheduledEvent
|
|
4575
4671
|
export type GuildScheduledEventDeleteEvent = GuildScheduledEvent
|
|
@@ -4586,6 +4682,63 @@ export enum GuildScheduledEventPrivacyLevel {
|
|
|
4586
4682
|
/** the scheduled event is only accessible to guild members */
|
|
4587
4683
|
GUILD_ONLY = 2,
|
|
4588
4684
|
}
|
|
4685
|
+
export interface GuildScheduledEventRecurrenceRule {
|
|
4686
|
+
/** Starting time of the recurrence interval */
|
|
4687
|
+
readonly start: string
|
|
4688
|
+
/** Ending time of the recurrence interval */
|
|
4689
|
+
readonly end?: string | null
|
|
4690
|
+
/** How often the event occurs */
|
|
4691
|
+
readonly frequency: GuildScheduledEventRecurrenceRuleFrequency
|
|
4692
|
+
/** The spacing between the events, defined by frequency. For example, frecency of WEEKLY and an interval of 2 would be "every-other week" */
|
|
4693
|
+
readonly interval: number
|
|
4694
|
+
/** Set of specific days within a week for the event to recur on */
|
|
4695
|
+
readonly by_weekday?: Array<GuildScheduledEventRecurrenceRuleWeekday> | null
|
|
4696
|
+
/** List of specific days within a specific week (1-5) to recur on */
|
|
4697
|
+
readonly by_n_weekday?: Array<GuildScheduledEventRecurrenceRuleNWeekday> | null
|
|
4698
|
+
/** Set of specific months to recur on */
|
|
4699
|
+
readonly by_month?: Array<GuildScheduledEventRecurrenceRuleMonth> | null
|
|
4700
|
+
/** Set of specific dates within a month to recur on */
|
|
4701
|
+
readonly by_month_day?: Array<number> | null
|
|
4702
|
+
/** Set of days within a year to recur on (1-364) */
|
|
4703
|
+
readonly by_year_day?: Array<number> | null
|
|
4704
|
+
/** The total amount of times that the event is allowed to recur before stopping */
|
|
4705
|
+
readonly count?: number | null
|
|
4706
|
+
}
|
|
4707
|
+
export enum GuildScheduledEventRecurrenceRuleFrequency {
|
|
4708
|
+
YEARLY = 0,
|
|
4709
|
+
MONTHLY = 1,
|
|
4710
|
+
WEEKLY = 2,
|
|
4711
|
+
DAILY = 3,
|
|
4712
|
+
}
|
|
4713
|
+
export enum GuildScheduledEventRecurrenceRuleMonth {
|
|
4714
|
+
JANUARY = 1,
|
|
4715
|
+
FEBRUARY = 2,
|
|
4716
|
+
MARCH = 3,
|
|
4717
|
+
APRIL = 4,
|
|
4718
|
+
MAY = 5,
|
|
4719
|
+
JUNE = 6,
|
|
4720
|
+
JULY = 7,
|
|
4721
|
+
AUGUST = 8,
|
|
4722
|
+
SEPTEMBER = 9,
|
|
4723
|
+
OCTOBER = 10,
|
|
4724
|
+
NOVEMBER = 11,
|
|
4725
|
+
DECEMBER = 12,
|
|
4726
|
+
}
|
|
4727
|
+
export interface GuildScheduledEventRecurrenceRuleNWeekday {
|
|
4728
|
+
/** The week to reoccur on. 1 - 5 */
|
|
4729
|
+
readonly n: number
|
|
4730
|
+
/** The day within the week to reoccur on */
|
|
4731
|
+
readonly day: GuildScheduledEventRecurrenceRuleWeekday
|
|
4732
|
+
}
|
|
4733
|
+
export enum GuildScheduledEventRecurrenceRuleWeekday {
|
|
4734
|
+
MONDAY = 0,
|
|
4735
|
+
TUESDAY = 1,
|
|
4736
|
+
WEDNESDAY = 2,
|
|
4737
|
+
THURSDAY = 3,
|
|
4738
|
+
FRIDAY = 4,
|
|
4739
|
+
SATURDAY = 5,
|
|
4740
|
+
SUNDAY = 6,
|
|
4741
|
+
}
|
|
4589
4742
|
export enum GuildScheduledEventStatus {
|
|
4590
4743
|
SCHEDULED = 1,
|
|
4591
4744
|
ACTIVE = 2,
|
|
@@ -5157,7 +5310,7 @@ export interface Message {
|
|
|
5157
5310
|
/** roles specifically mentioned in this message */
|
|
5158
5311
|
readonly mention_roles: Array<Snowflake>
|
|
5159
5312
|
/** channels specifically mentioned in this message */
|
|
5160
|
-
readonly mention_channels
|
|
5313
|
+
readonly mention_channels: Array<ChannelMention>
|
|
5161
5314
|
/** any attached files */
|
|
5162
5315
|
readonly attachments: Array<Attachment>
|
|
5163
5316
|
/** any embedded content */
|
|
@@ -5178,10 +5331,12 @@ export interface Message {
|
|
|
5178
5331
|
readonly application?: Application
|
|
5179
5332
|
/** if the message is an Interaction or application-owned webhook, this is the id of the application */
|
|
5180
5333
|
readonly application_id?: Snowflake
|
|
5181
|
-
/** data showing the source of a crosspost, channel follow add, pin, or reply message */
|
|
5182
|
-
readonly message_reference?: MessageReference
|
|
5183
5334
|
/** message flags combined as a bitfield */
|
|
5184
5335
|
readonly flags?: number
|
|
5336
|
+
/** data showing the source of a crosspost, channel follow add, pin, or reply message */
|
|
5337
|
+
readonly message_reference?: MessageReference
|
|
5338
|
+
/** the message associated with the message_reference. This is a minimal subset of fields in a message (e.g. author is excluded.) */
|
|
5339
|
+
readonly message_snapshots: Array<MessageSnapshot>
|
|
5185
5340
|
/** the message associated with the message_reference */
|
|
5186
5341
|
readonly referenced_message?: Message | null
|
|
5187
5342
|
/** In preview. Sent if the message is sent as a result of an interaction */
|
|
@@ -5191,7 +5346,7 @@ export interface Message {
|
|
|
5191
5346
|
/** the thread that was started from this message, includes thread member object */
|
|
5192
5347
|
readonly thread?: Channel
|
|
5193
5348
|
/** sent if the message contains components like buttons, action rows, or other interactive components */
|
|
5194
|
-
readonly components
|
|
5349
|
+
readonly components: Array<Component>
|
|
5195
5350
|
/** sent if the message contains stickers */
|
|
5196
5351
|
readonly sticker_items?: Array<StickerItem>
|
|
5197
5352
|
/** Deprecated the stickers sent with the message */
|
|
@@ -5203,7 +5358,7 @@ export interface Message {
|
|
|
5203
5358
|
/** data for users, members, channels, and roles in the message's auto-populated select menus */
|
|
5204
5359
|
readonly resolved?: ResolvedDatum
|
|
5205
5360
|
/** A poll! */
|
|
5206
|
-
readonly poll
|
|
5361
|
+
readonly poll: Poll
|
|
5207
5362
|
/** the call associated with the message */
|
|
5208
5363
|
readonly call?: MessageCall
|
|
5209
5364
|
}
|
|
@@ -5393,6 +5548,8 @@ export interface MessageReactionRemoveEvent {
|
|
|
5393
5548
|
readonly type: ReactionType
|
|
5394
5549
|
}
|
|
5395
5550
|
export interface MessageReference {
|
|
5551
|
+
/** type of reference. */
|
|
5552
|
+
readonly type?: MessageReferenceType
|
|
5396
5553
|
/** id of the originating message */
|
|
5397
5554
|
readonly message_id?: Snowflake
|
|
5398
5555
|
/** id of the originating message's channel */
|
|
@@ -5402,6 +5559,16 @@ export interface MessageReference {
|
|
|
5402
5559
|
/** when sending, whether to error if the referenced message doesn't exist instead of sending as a normal (non-reply) message, default true */
|
|
5403
5560
|
readonly fail_if_not_exists?: boolean
|
|
5404
5561
|
}
|
|
5562
|
+
export enum MessageReferenceType {
|
|
5563
|
+
/** A standard reference used by replies. */
|
|
5564
|
+
DEFAULT = 0,
|
|
5565
|
+
/** Reference used to point to a message at a point in time. */
|
|
5566
|
+
FORWARD = 1,
|
|
5567
|
+
}
|
|
5568
|
+
export interface MessageSnapshot {
|
|
5569
|
+
/** minimal subset of fields in the forwarded message */
|
|
5570
|
+
readonly message: Message
|
|
5571
|
+
}
|
|
5405
5572
|
export enum MessageType {
|
|
5406
5573
|
DEFAULT = 0,
|
|
5407
5574
|
RECIPIENT_ADD = 1,
|
|
@@ -5453,6 +5620,10 @@ export interface ModalSubmitDatum {
|
|
|
5453
5620
|
/** the values submitted by the user */
|
|
5454
5621
|
readonly components: Array<Component>
|
|
5455
5622
|
}
|
|
5623
|
+
export interface ModifyApplicationEmojiParams {
|
|
5624
|
+
/** name of the emoji */
|
|
5625
|
+
readonly name: string
|
|
5626
|
+
}
|
|
5456
5627
|
export interface ModifyAutoModerationRuleParams {
|
|
5457
5628
|
/** the rule name */
|
|
5458
5629
|
readonly name: string
|
|
@@ -5480,7 +5651,7 @@ export interface ModifyChannelGuildChannelParams {
|
|
|
5480
5651
|
readonly name: string
|
|
5481
5652
|
/** the type of channel; only conversion between text and announcement is supported and only in guilds with the "NEWS" feature */
|
|
5482
5653
|
readonly type: ChannelType
|
|
5483
|
-
/** the position of the channel in the left-hand listing */
|
|
5654
|
+
/** the position of the channel in the left-hand listing (channels with the same position are sorted by id) */
|
|
5484
5655
|
readonly position?: number | null
|
|
5485
5656
|
/** 0-1024 character channel topic (0-4096 characters for GUILD_FORUM and GUILD_MEDIA channels) */
|
|
5486
5657
|
readonly topic?: string | null
|
|
@@ -5564,7 +5735,7 @@ export interface ModifyCurrentUserVoiceStateParams {
|
|
|
5564
5735
|
export interface ModifyGuildChannelPositionParams {
|
|
5565
5736
|
/** channel id */
|
|
5566
5737
|
readonly id: Snowflake
|
|
5567
|
-
/** sorting position of the channel */
|
|
5738
|
+
/** sorting position of the channel (channels with the same position are sorted by id) */
|
|
5568
5739
|
readonly position?: number | null
|
|
5569
5740
|
/** syncs the permission overwrites with the new parent, if moving to a new category */
|
|
5570
5741
|
readonly lock_permissions?: boolean | null
|
|
@@ -5670,7 +5841,7 @@ export interface ModifyGuildRoleParams {
|
|
|
5670
5841
|
export interface ModifyGuildRolePositionParams {
|
|
5671
5842
|
/** role */
|
|
5672
5843
|
readonly id: Snowflake
|
|
5673
|
-
/** sorting position of the role */
|
|
5844
|
+
/** sorting position of the role (roles with the same position are sorted by id) */
|
|
5674
5845
|
readonly position?: number | null
|
|
5675
5846
|
}
|
|
5676
5847
|
export interface ModifyGuildScheduledEventParams {
|
|
@@ -5694,6 +5865,8 @@ export interface ModifyGuildScheduledEventParams {
|
|
|
5694
5865
|
readonly status?: GuildScheduledEventStatus
|
|
5695
5866
|
/** the cover image of the scheduled event */
|
|
5696
5867
|
readonly image?: string
|
|
5868
|
+
/** the definition for how often this event should recur */
|
|
5869
|
+
readonly recurrence_rule?: GuildScheduledEventRecurrenceRule
|
|
5697
5870
|
}
|
|
5698
5871
|
export interface ModifyGuildStickerParams {
|
|
5699
5872
|
/** name of the sticker (2-30 characters) */
|
|
@@ -5966,10 +6139,10 @@ export interface PollCreateRequest {
|
|
|
5966
6139
|
readonly question: PollMedia
|
|
5967
6140
|
/** Each of the answers available in the poll, up to 10 */
|
|
5968
6141
|
readonly answers: Array<PollAnswer>
|
|
5969
|
-
/** Number of hours the poll should be open for, up to
|
|
5970
|
-
readonly duration
|
|
5971
|
-
/** Whether a user can select multiple answers */
|
|
5972
|
-
readonly allow_multiselect
|
|
6142
|
+
/** Number of hours the poll should be open for, up to 32 days. Defaults to 24 */
|
|
6143
|
+
readonly duration?: number
|
|
6144
|
+
/** Whether a user can select multiple answers. Defaults to false */
|
|
6145
|
+
readonly allow_multiselect?: boolean
|
|
5973
6146
|
/** The layout type of the poll. Defaults to... DEFAULT! */
|
|
5974
6147
|
readonly layout_type?: LayoutType
|
|
5975
6148
|
}
|
|
@@ -6293,7 +6466,7 @@ export interface Role {
|
|
|
6293
6466
|
readonly icon?: string | null
|
|
6294
6467
|
/** role unicode emoji */
|
|
6295
6468
|
readonly unicode_emoji?: string | null
|
|
6296
|
-
/** position of this role */
|
|
6469
|
+
/** position of this role (roles with the same position are sorted by id) */
|
|
6297
6470
|
readonly position: number
|
|
6298
6471
|
/** permission bit set */
|
|
6299
6472
|
readonly permissions: string
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const LIB_VERSION = "0.
|
|
1
|
+
export const LIB_VERSION = "0.99.0";
|