dfx 0.127.0 → 1.0.1
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/Cache/memory.d.ts +1 -1
- package/Cache/memory.d.ts.map +1 -1
- package/Cache/memory.js +4 -4
- package/Cache/memory.js.map +1 -1
- package/Cache/memoryTTL.d.ts +1 -1
- package/Cache/memoryTTL.d.ts.map +1 -1
- package/Cache/memoryTTL.js +6 -6
- package/Cache/memoryTTL.js.map +1 -1
- package/Cache/prelude.d.ts +6 -6
- package/Cache/prelude.d.ts.map +1 -1
- package/Cache/prelude.js +4 -4
- package/Cache/prelude.js.map +1 -1
- package/Cache.d.ts +9 -10
- package/Cache.d.ts.map +1 -1
- package/Cache.js +20 -19
- package/Cache.js.map +1 -1
- package/DiscordConfig.d.ts +8 -8
- package/DiscordConfig.d.ts.map +1 -1
- package/DiscordConfig.js +8 -7
- package/DiscordConfig.js.map +1 -1
- package/DiscordGateway/DiscordWS.d.ts +12 -12
- package/DiscordGateway/DiscordWS.d.ts.map +1 -1
- package/DiscordGateway/DiscordWS.js +30 -17
- package/DiscordGateway/DiscordWS.js.map +1 -1
- package/DiscordGateway/Messaging.d.ts +204 -10
- package/DiscordGateway/Messaging.d.ts.map +1 -1
- package/DiscordGateway/Messaging.js +10 -7
- package/DiscordGateway/Messaging.js.map +1 -1
- package/DiscordGateway/Shard/StateStore.d.ts +4 -4
- package/DiscordGateway/Shard/StateStore.d.ts.map +1 -1
- package/DiscordGateway/Shard/StateStore.js +7 -6
- package/DiscordGateway/Shard/StateStore.js.map +1 -1
- package/DiscordGateway/Shard/heartbeats.d.ts +5 -5
- package/DiscordGateway/Shard/heartbeats.d.ts.map +1 -1
- package/DiscordGateway/Shard/heartbeats.js +15 -10
- package/DiscordGateway/Shard/heartbeats.js.map +1 -1
- package/DiscordGateway/Shard/identify.d.ts +2 -2
- package/DiscordGateway/Shard/identify.d.ts.map +1 -1
- package/DiscordGateway/Shard/identify.js +2 -2
- package/DiscordGateway/Shard/identify.js.map +1 -1
- package/DiscordGateway/Shard/sendEvents.d.ts +1 -1
- package/DiscordGateway/Shard/sendEvents.d.ts.map +1 -1
- package/DiscordGateway/Shard/sendEvents.js +1 -1
- package/DiscordGateway/Shard/sendEvents.js.map +1 -1
- package/DiscordGateway/Shard/utils.d.ts +1 -1
- package/DiscordGateway/Shard/utils.d.ts.map +1 -1
- package/DiscordGateway/Shard.d.ts +16 -15
- package/DiscordGateway/Shard.d.ts.map +1 -1
- package/DiscordGateway/Shard.js +27 -21
- package/DiscordGateway/Shard.js.map +1 -1
- package/DiscordGateway/ShardStore.d.ts +4 -3
- package/DiscordGateway/ShardStore.d.ts.map +1 -1
- package/DiscordGateway/ShardStore.js +3 -2
- package/DiscordGateway/ShardStore.js.map +1 -1
- package/DiscordGateway/Sharder.d.ts +9 -8
- package/DiscordGateway/Sharder.d.ts.map +1 -1
- package/DiscordGateway/Sharder.js +19 -17
- package/DiscordGateway/Sharder.js.map +1 -1
- package/DiscordGateway.d.ts +13 -12
- package/DiscordGateway.d.ts.map +1 -1
- package/DiscordGateway.js +4 -4
- package/DiscordGateway.js.map +1 -1
- package/DiscordREST/Generated.d.ts +402 -240
- package/DiscordREST/Generated.d.ts.map +1 -1
- package/DiscordREST/Generated.js +193 -126
- package/DiscordREST/Generated.js.map +1 -1
- package/DiscordREST/utils.d.ts +1 -1
- package/DiscordREST/utils.d.ts.map +1 -1
- package/DiscordREST/utils.js +4 -3
- package/DiscordREST/utils.js.map +1 -1
- package/DiscordREST.d.ts +10 -11
- package/DiscordREST.d.ts.map +1 -1
- package/DiscordREST.js +23 -27
- package/DiscordREST.js.map +1 -1
- package/Helpers/flags.d.ts.map +1 -1
- package/Helpers/flags.js +10 -1
- package/Helpers/flags.js.map +1 -1
- package/Helpers/intents.d.ts.map +1 -1
- package/Helpers/intents.js +2 -2
- package/Helpers/intents.js.map +1 -1
- package/Helpers/interactions.d.ts +2 -2
- package/Helpers/interactions.d.ts.map +1 -1
- package/Helpers/interactions.js +12 -12
- package/Helpers/interactions.js.map +1 -1
- package/Helpers/members.d.ts +2 -2
- package/Helpers/members.d.ts.map +1 -1
- package/Helpers/members.js +1 -1
- package/Helpers/members.js.map +1 -1
- package/Helpers/permissions.d.ts +1 -1
- package/Helpers/permissions.d.ts.map +1 -1
- package/Helpers/permissions.js +4 -4
- package/Helpers/permissions.js.map +1 -1
- package/Helpers/ui.d.ts +9 -9
- package/Helpers/ui.d.ts.map +1 -1
- package/Helpers/ui.js +15 -15
- package/Helpers/ui.js.map +1 -1
- package/Interactions/builder.d.ts +6 -6
- package/Interactions/builder.d.ts.map +1 -1
- package/Interactions/builder.js +7 -7
- package/Interactions/builder.js.map +1 -1
- package/Interactions/commandHelper.d.ts +3 -19
- package/Interactions/commandHelper.d.ts.map +1 -1
- package/Interactions/commandHelper.js +11 -7
- package/Interactions/commandHelper.js.map +1 -1
- package/Interactions/context.d.ts +30 -31
- package/Interactions/context.d.ts.map +1 -1
- package/Interactions/context.js +23 -18
- package/Interactions/context.js.map +1 -1
- package/Interactions/definitions.d.ts +7 -8
- package/Interactions/definitions.d.ts.map +1 -1
- package/Interactions/gateway.d.ts +11 -12
- package/Interactions/gateway.d.ts.map +1 -1
- package/Interactions/gateway.js +22 -20
- package/Interactions/gateway.js.map +1 -1
- package/Interactions/handlers.d.ts +3 -3
- package/Interactions/handlers.d.ts.map +1 -1
- package/Interactions/handlers.js +5 -4
- package/Interactions/handlers.js.map +1 -1
- package/Interactions/index.d.ts +5 -4
- package/Interactions/index.d.ts.map +1 -1
- package/Interactions/index.js +4 -4
- package/Interactions/index.js.map +1 -1
- package/Interactions/utils.d.ts +4 -4
- package/Interactions/utils.d.ts.map +1 -1
- package/Interactions/utils.js +1 -1
- package/Interactions/utils.js.map +1 -1
- package/Interactions/webhook.d.ts +9 -11
- package/Interactions/webhook.d.ts.map +1 -1
- package/Interactions/webhook.js +16 -16
- package/Interactions/webhook.js.map +1 -1
- package/RateLimit/memory.d.ts +1 -1
- package/RateLimit/memory.d.ts.map +1 -1
- package/RateLimit/memory.js +2 -2
- package/RateLimit/memory.js.map +1 -1
- package/RateLimit.d.ts +7 -7
- package/RateLimit.d.ts.map +1 -1
- package/RateLimit.js +7 -5
- package/RateLimit.js.map +1 -1
- package/gateway.d.ts +14 -14
- package/gateway.d.ts.map +1 -1
- package/gateway.js +10 -10
- package/gateway.js.map +1 -1
- package/index.d.ts +14 -14
- package/index.d.ts.map +1 -1
- package/index.js +12 -12
- package/index.js.map +1 -1
- package/mjs/Cache/memory.mjs +4 -4
- package/mjs/Cache/memory.mjs.map +1 -1
- package/mjs/Cache/memoryTTL.mjs +6 -6
- package/mjs/Cache/memoryTTL.mjs.map +1 -1
- package/mjs/Cache/prelude.mjs +4 -4
- package/mjs/Cache/prelude.mjs.map +1 -1
- package/mjs/Cache.mjs +20 -19
- package/mjs/Cache.mjs.map +1 -1
- package/mjs/DiscordConfig.mjs +7 -7
- package/mjs/DiscordConfig.mjs.map +1 -1
- package/mjs/DiscordGateway/DiscordWS.mjs +28 -17
- package/mjs/DiscordGateway/DiscordWS.mjs.map +1 -1
- package/mjs/DiscordGateway/Messaging.mjs +9 -7
- package/mjs/DiscordGateway/Messaging.mjs.map +1 -1
- package/mjs/DiscordGateway/Shard/StateStore.mjs +7 -6
- package/mjs/DiscordGateway/Shard/StateStore.mjs.map +1 -1
- package/mjs/DiscordGateway/Shard/heartbeats.mjs +15 -10
- package/mjs/DiscordGateway/Shard/heartbeats.mjs.map +1 -1
- package/mjs/DiscordGateway/Shard/identify.mjs +2 -2
- package/mjs/DiscordGateway/Shard/identify.mjs.map +1 -1
- package/mjs/DiscordGateway/Shard/sendEvents.mjs +1 -1
- package/mjs/DiscordGateway/Shard/sendEvents.mjs.map +1 -1
- package/mjs/DiscordGateway/Shard.mjs +26 -21
- package/mjs/DiscordGateway/Shard.mjs.map +1 -1
- package/mjs/DiscordGateway/ShardStore.mjs +2 -2
- package/mjs/DiscordGateway/ShardStore.mjs.map +1 -1
- package/mjs/DiscordGateway/Sharder.mjs +18 -17
- package/mjs/DiscordGateway/Sharder.mjs.map +1 -1
- package/mjs/DiscordGateway.mjs +4 -4
- package/mjs/DiscordGateway.mjs.map +1 -1
- package/mjs/DiscordREST/Generated.mjs +192 -125
- package/mjs/DiscordREST/Generated.mjs.map +1 -1
- package/mjs/DiscordREST/utils.mjs +4 -3
- package/mjs/DiscordREST/utils.mjs.map +1 -1
- package/mjs/DiscordREST.mjs +22 -27
- package/mjs/DiscordREST.mjs.map +1 -1
- package/mjs/Helpers/flags.mjs +10 -1
- package/mjs/Helpers/flags.mjs.map +1 -1
- package/mjs/Helpers/intents.mjs +2 -2
- package/mjs/Helpers/intents.mjs.map +1 -1
- package/mjs/Helpers/interactions.mjs +12 -12
- package/mjs/Helpers/interactions.mjs.map +1 -1
- package/mjs/Helpers/members.mjs +1 -1
- package/mjs/Helpers/members.mjs.map +1 -1
- package/mjs/Helpers/permissions.mjs +4 -4
- package/mjs/Helpers/permissions.mjs.map +1 -1
- package/mjs/Helpers/ui.mjs +15 -15
- package/mjs/Helpers/ui.mjs.map +1 -1
- package/mjs/Interactions/builder.mjs +7 -7
- package/mjs/Interactions/builder.mjs.map +1 -1
- package/mjs/Interactions/commandHelper.mjs +11 -7
- package/mjs/Interactions/commandHelper.mjs.map +1 -1
- package/mjs/Interactions/context.mjs +17 -18
- package/mjs/Interactions/context.mjs.map +1 -1
- package/mjs/Interactions/gateway.mjs +21 -20
- package/mjs/Interactions/gateway.mjs.map +1 -1
- package/mjs/Interactions/handlers.mjs +5 -4
- package/mjs/Interactions/handlers.mjs.map +1 -1
- package/mjs/Interactions/index.mjs +4 -4
- package/mjs/Interactions/index.mjs.map +1 -1
- package/mjs/Interactions/utils.mjs +1 -1
- package/mjs/Interactions/utils.mjs.map +1 -1
- package/mjs/Interactions/webhook.mjs +15 -16
- package/mjs/Interactions/webhook.mjs.map +1 -1
- package/mjs/RateLimit/memory.mjs +2 -2
- package/mjs/RateLimit/memory.mjs.map +1 -1
- package/mjs/RateLimit.mjs +5 -5
- package/mjs/RateLimit.mjs.map +1 -1
- package/mjs/gateway.mjs +14 -14
- package/mjs/gateway.mjs.map +1 -1
- package/mjs/index.mjs +14 -14
- package/mjs/index.mjs.map +1 -1
- package/mjs/types.mjs +2 -2
- package/mjs/types.mjs.map +1 -1
- package/mjs/utils/Effect.mjs +34 -8
- package/mjs/utils/Effect.mjs.map +1 -1
- package/mjs/version.mjs +1 -1
- package/mjs/version.mjs.map +1 -1
- package/mjs/webhooks.mjs +3 -3
- package/mjs/webhooks.mjs.map +1 -1
- package/package.json +4 -5
- package/src/Cache/memory.ts +5 -5
- package/src/Cache/memoryTTL.ts +7 -7
- package/src/Cache/prelude.ts +10 -8
- package/src/Cache.ts +31 -35
- package/src/DiscordConfig.ts +13 -17
- package/src/DiscordGateway/DiscordWS.ts +58 -32
- package/src/DiscordGateway/Messaging.ts +13 -15
- package/src/DiscordGateway/Shard/StateStore.ts +30 -25
- package/src/DiscordGateway/Shard/heartbeats.ts +25 -28
- package/src/DiscordGateway/Shard/identify.ts +5 -4
- package/src/DiscordGateway/Shard/sendEvents.ts +1 -1
- package/src/DiscordGateway/Shard/utils.ts +1 -1
- package/src/DiscordGateway/Shard.ts +39 -35
- package/src/DiscordGateway/ShardStore.ts +6 -7
- package/src/DiscordGateway/Sharder.ts +31 -29
- package/src/DiscordGateway.ts +15 -14
- package/src/DiscordREST/Generated.ts +683 -378
- package/src/DiscordREST/utils.ts +6 -3
- package/src/DiscordREST.ts +37 -41
- package/src/Helpers/flags.ts +10 -5
- package/src/Helpers/intents.ts +2 -2
- package/src/Helpers/interactions.ts +16 -14
- package/src/Helpers/members.ts +3 -3
- package/src/Helpers/permissions.ts +5 -5
- package/src/Helpers/ui.ts +16 -16
- package/src/Interactions/builder.ts +10 -10
- package/src/Interactions/commandHelper.ts +18 -29
- package/src/Interactions/context.ts +51 -65
- package/src/Interactions/definitions.ts +3 -3
- package/src/Interactions/gateway.ts +33 -45
- package/src/Interactions/handlers.ts +8 -5
- package/src/Interactions/index.ts +5 -5
- package/src/Interactions/utils.ts +6 -6
- package/src/Interactions/webhook.ts +31 -38
- package/src/RateLimit/memory.ts +3 -3
- package/src/RateLimit.ts +18 -15
- package/src/gateway.ts +21 -21
- package/src/index.ts +17 -17
- package/src/types.ts +18 -16
- package/src/utils/Effect.ts +38 -27
- package/src/version.ts +1 -1
- package/src/webhooks.ts +7 -7
- package/tsconfig.base.json +12 -6
- package/tsconfig.examples.json +0 -1
- package/types.d.ts +4 -3
- package/types.d.ts.map +1 -1
- package/types.js +3 -3
- package/types.js.map +1 -1
- package/utils/Effect.d.ts.map +1 -1
- package/utils/Effect.js +33 -7
- package/utils/Effect.js.map +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/webhooks.d.ts +5 -5
- package/webhooks.d.ts.map +1 -1
- package/webhooks.js +3 -3
- package/webhooks.js.map +1 -1
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import type * as HttpClient from "
|
|
2
|
-
import * as HttpClientError from "
|
|
3
|
-
import * as HttpClientRequest from "
|
|
4
|
-
import * as HttpClientResponse from "
|
|
1
|
+
import type * as HttpClient from "effect/unstable/http/HttpClient";
|
|
2
|
+
import * as HttpClientError from "effect/unstable/http/HttpClientError";
|
|
3
|
+
import * as HttpClientRequest from "effect/unstable/http/HttpClientRequest";
|
|
4
|
+
import * as HttpClientResponse from "effect/unstable/http/HttpClientResponse";
|
|
5
5
|
import * as Effect from "effect/Effect";
|
|
6
6
|
export type SnowflakeType = string;
|
|
7
7
|
export type ApplicationTypes = 4;
|
|
8
8
|
export type Int53Type = number;
|
|
9
9
|
export interface UserAvatarDecorationResponse {
|
|
10
10
|
readonly asset: string;
|
|
11
|
-
readonly sku_id
|
|
11
|
+
readonly sku_id: SnowflakeType | null;
|
|
12
12
|
}
|
|
13
13
|
export type NameplatePalette = string;
|
|
14
14
|
export interface UserNameplateResponse {
|
|
15
|
-
readonly sku_id
|
|
15
|
+
readonly sku_id: SnowflakeType | null;
|
|
16
16
|
readonly asset: string;
|
|
17
17
|
readonly label: string;
|
|
18
18
|
readonly palette: NameplatePalette;
|
|
19
19
|
}
|
|
20
20
|
export interface UserCollectiblesResponse {
|
|
21
|
-
readonly nameplate
|
|
21
|
+
readonly nameplate: UserNameplateResponse | null;
|
|
22
22
|
}
|
|
23
23
|
export interface UserPrimaryGuildResponse {
|
|
24
|
-
readonly identity_guild_id
|
|
25
|
-
readonly identity_enabled
|
|
26
|
-
readonly tag
|
|
27
|
-
readonly badge
|
|
24
|
+
readonly identity_guild_id: SnowflakeType | null;
|
|
25
|
+
readonly identity_enabled: boolean | null;
|
|
26
|
+
readonly tag: string | null;
|
|
27
|
+
readonly badge: string | null;
|
|
28
28
|
}
|
|
29
29
|
export interface UserResponse {
|
|
30
30
|
readonly id: SnowflakeType;
|
|
31
31
|
readonly username: string;
|
|
32
|
-
readonly avatar
|
|
32
|
+
readonly avatar: string | null;
|
|
33
33
|
readonly discriminator: string;
|
|
34
34
|
readonly public_flags: number;
|
|
35
35
|
readonly flags: Int53Type;
|
|
@@ -37,10 +37,10 @@ export interface UserResponse {
|
|
|
37
37
|
readonly system?: boolean | undefined;
|
|
38
38
|
readonly banner?: string | null | undefined;
|
|
39
39
|
readonly accent_color?: number | null | undefined;
|
|
40
|
-
readonly global_name
|
|
40
|
+
readonly global_name: string | null;
|
|
41
41
|
readonly avatar_decoration_data?: UserAvatarDecorationResponse | null | undefined;
|
|
42
42
|
readonly collectibles?: UserCollectiblesResponse | null | undefined;
|
|
43
|
-
readonly primary_guild
|
|
43
|
+
readonly primary_guild: UserPrimaryGuildResponse | null;
|
|
44
44
|
}
|
|
45
45
|
export declare const OAuth2Scopes: {
|
|
46
46
|
/**
|
|
@@ -214,7 +214,7 @@ export interface TeamMemberResponse {
|
|
|
214
214
|
}
|
|
215
215
|
export interface TeamResponse {
|
|
216
216
|
readonly id: SnowflakeType;
|
|
217
|
-
readonly icon
|
|
217
|
+
readonly icon: string | null;
|
|
218
218
|
readonly name: string;
|
|
219
219
|
readonly owner_user_id: SnowflakeType;
|
|
220
220
|
readonly members: ReadonlyArray<TeamMemberResponse>;
|
|
@@ -222,9 +222,9 @@ export interface TeamResponse {
|
|
|
222
222
|
export interface PrivateApplicationResponse {
|
|
223
223
|
readonly id: SnowflakeType;
|
|
224
224
|
readonly name: string;
|
|
225
|
-
readonly icon
|
|
225
|
+
readonly icon: string | null;
|
|
226
226
|
readonly description: string;
|
|
227
|
-
readonly type
|
|
227
|
+
readonly type: ApplicationTypes | null;
|
|
228
228
|
readonly cover_image?: string | undefined;
|
|
229
229
|
readonly primary_sku_id?: SnowflakeType | undefined;
|
|
230
230
|
readonly bot?: UserResponse | undefined;
|
|
@@ -243,17 +243,17 @@ export interface PrivateApplicationResponse {
|
|
|
243
243
|
readonly max_participants?: number | null | undefined;
|
|
244
244
|
readonly tags?: ReadonlyArray<string> | undefined;
|
|
245
245
|
readonly redirect_uris: ReadonlyArray<string>;
|
|
246
|
-
readonly interactions_endpoint_url
|
|
247
|
-
readonly role_connections_verification_url
|
|
246
|
+
readonly interactions_endpoint_url: string | null;
|
|
247
|
+
readonly role_connections_verification_url: string | null;
|
|
248
248
|
readonly owner: UserResponse;
|
|
249
|
-
readonly approximate_guild_count
|
|
249
|
+
readonly approximate_guild_count: number | null;
|
|
250
250
|
readonly approximate_user_install_count: number;
|
|
251
251
|
readonly approximate_user_authorization_count: number;
|
|
252
252
|
readonly explicit_content_filter: ApplicationExplicitContentFilterTypes;
|
|
253
|
-
readonly team
|
|
253
|
+
readonly team: TeamResponse | null;
|
|
254
254
|
}
|
|
255
255
|
/**
|
|
256
|
-
*
|
|
256
|
+
* Ratelimit error object returned by the Discord API
|
|
257
257
|
*/
|
|
258
258
|
export interface RatelimitedResponse {
|
|
259
259
|
/**
|
|
@@ -294,7 +294,7 @@ export interface InnerErrors {
|
|
|
294
294
|
}
|
|
295
295
|
export type ErrorDetails = Record<string, unknown> | InnerErrors;
|
|
296
296
|
/**
|
|
297
|
-
*
|
|
297
|
+
* Errors object returned by the Discord API
|
|
298
298
|
*/
|
|
299
299
|
export interface ErrorResponse {
|
|
300
300
|
readonly errors?: ErrorDetails | undefined;
|
|
@@ -369,9 +369,9 @@ export interface UploadApplicationAttachmentRequest {
|
|
|
369
369
|
export interface ApplicationResponse {
|
|
370
370
|
readonly id: SnowflakeType;
|
|
371
371
|
readonly name: string;
|
|
372
|
-
readonly icon
|
|
372
|
+
readonly icon: string | null;
|
|
373
373
|
readonly description: string;
|
|
374
|
-
readonly type
|
|
374
|
+
readonly type: ApplicationTypes | null;
|
|
375
375
|
readonly cover_image?: string | undefined;
|
|
376
376
|
readonly primary_sku_id?: SnowflakeType | undefined;
|
|
377
377
|
readonly bot?: UserResponse | undefined;
|
|
@@ -704,7 +704,7 @@ export interface ApplicationCommandResponse {
|
|
|
704
704
|
readonly id: SnowflakeType;
|
|
705
705
|
readonly application_id: SnowflakeType;
|
|
706
706
|
readonly version: SnowflakeType;
|
|
707
|
-
readonly default_member_permissions
|
|
707
|
+
readonly default_member_permissions: string | null;
|
|
708
708
|
readonly type: ApplicationCommandType;
|
|
709
709
|
readonly name: string;
|
|
710
710
|
readonly name_localized?: string | undefined;
|
|
@@ -941,6 +941,7 @@ export interface EntitlementResponse {
|
|
|
941
941
|
readonly fulfillment_status?: EntitlementTenantFulfillmentStatusResponse | null | undefined;
|
|
942
942
|
readonly consumed?: boolean | null | undefined;
|
|
943
943
|
readonly gifter_user_id?: SnowflakeType | null | undefined;
|
|
944
|
+
readonly parent_id?: SnowflakeType | null | undefined;
|
|
944
945
|
}
|
|
945
946
|
export type GetEntitlements200 = ReadonlyArray<null | EntitlementResponse>;
|
|
946
947
|
export type EntitlementOwnerTypes = number;
|
|
@@ -1089,8 +1090,8 @@ export interface ForumTagResponse {
|
|
|
1089
1090
|
readonly id: SnowflakeType;
|
|
1090
1091
|
readonly name: string;
|
|
1091
1092
|
readonly moderated: boolean;
|
|
1092
|
-
readonly emoji_id
|
|
1093
|
-
readonly emoji_name
|
|
1093
|
+
readonly emoji_id: SnowflakeType | null;
|
|
1094
|
+
readonly emoji_name: string | null;
|
|
1094
1095
|
}
|
|
1095
1096
|
export interface DefaultReactionEmojiResponse {
|
|
1096
1097
|
readonly emoji_id?: SnowflakeType | null | undefined;
|
|
@@ -1177,30 +1178,30 @@ export interface PrivateGroupChannelResponse {
|
|
|
1177
1178
|
readonly flags: number;
|
|
1178
1179
|
readonly last_pin_timestamp?: string | null | undefined;
|
|
1179
1180
|
readonly recipients: ReadonlyArray<UserResponse>;
|
|
1180
|
-
readonly name
|
|
1181
|
-
readonly icon
|
|
1181
|
+
readonly name: string | null;
|
|
1182
|
+
readonly icon: string | null;
|
|
1182
1183
|
readonly owner_id: SnowflakeType;
|
|
1183
1184
|
readonly managed?: boolean | undefined;
|
|
1184
1185
|
readonly application_id?: SnowflakeType | undefined;
|
|
1185
1186
|
}
|
|
1186
1187
|
export interface ThreadMetadataResponse {
|
|
1187
1188
|
readonly archived: boolean;
|
|
1188
|
-
readonly archive_timestamp
|
|
1189
|
+
readonly archive_timestamp: string | null;
|
|
1189
1190
|
readonly auto_archive_duration: ThreadAutoArchiveDuration;
|
|
1190
1191
|
readonly locked: boolean;
|
|
1191
1192
|
readonly create_timestamp?: string | undefined;
|
|
1192
1193
|
readonly invitable?: boolean | undefined;
|
|
1193
1194
|
}
|
|
1194
1195
|
export interface GuildMemberResponse {
|
|
1195
|
-
readonly avatar
|
|
1196
|
+
readonly avatar: string | null;
|
|
1196
1197
|
readonly avatar_decoration_data?: UserAvatarDecorationResponse | null | undefined;
|
|
1197
|
-
readonly banner
|
|
1198
|
-
readonly communication_disabled_until
|
|
1198
|
+
readonly banner: string | null;
|
|
1199
|
+
readonly communication_disabled_until: string | null;
|
|
1199
1200
|
readonly flags: number;
|
|
1200
1201
|
readonly joined_at: string;
|
|
1201
|
-
readonly nick
|
|
1202
|
+
readonly nick: string | null;
|
|
1202
1203
|
readonly pending: boolean;
|
|
1203
|
-
readonly premium_since
|
|
1204
|
+
readonly premium_since: string | null;
|
|
1204
1205
|
readonly roles: ReadonlyArray<SnowflakeType>;
|
|
1205
1206
|
readonly collectibles?: UserCollectiblesResponse | null | undefined;
|
|
1206
1207
|
readonly user: UserResponse;
|
|
@@ -1320,7 +1321,7 @@ export interface InviteChannelRecipientResponse {
|
|
|
1320
1321
|
export interface InviteChannelResponse {
|
|
1321
1322
|
readonly id: SnowflakeType;
|
|
1322
1323
|
readonly type: ChannelTypes;
|
|
1323
|
-
readonly name
|
|
1324
|
+
readonly name: string | null;
|
|
1324
1325
|
readonly icon?: string | undefined;
|
|
1325
1326
|
readonly recipients?: ReadonlyArray<InviteChannelRecipientResponse> | undefined;
|
|
1326
1327
|
}
|
|
@@ -1330,9 +1331,9 @@ export interface FriendInviteResponse {
|
|
|
1330
1331
|
readonly inviter?: UserResponse | undefined;
|
|
1331
1332
|
readonly max_age?: number | undefined;
|
|
1332
1333
|
readonly created_at?: string | undefined;
|
|
1333
|
-
readonly expires_at
|
|
1334
|
+
readonly expires_at: string | null;
|
|
1334
1335
|
readonly friends_count?: number | undefined;
|
|
1335
|
-
readonly channel
|
|
1336
|
+
readonly channel: InviteChannelResponse | null;
|
|
1336
1337
|
readonly is_contact?: boolean | undefined;
|
|
1337
1338
|
readonly uses?: number | undefined;
|
|
1338
1339
|
readonly max_uses?: number | undefined;
|
|
@@ -1344,7 +1345,7 @@ export interface GroupDMInviteResponse {
|
|
|
1344
1345
|
readonly inviter?: UserResponse | undefined;
|
|
1345
1346
|
readonly max_age?: number | undefined;
|
|
1346
1347
|
readonly created_at?: string | undefined;
|
|
1347
|
-
readonly expires_at
|
|
1348
|
+
readonly expires_at: string | null;
|
|
1348
1349
|
readonly channel: InviteChannelResponse;
|
|
1349
1350
|
readonly approximate_member_count?: number | null | undefined;
|
|
1350
1351
|
}
|
|
@@ -1492,15 +1493,15 @@ export type GuildNSFWContentLevel = (typeof GuildNSFWContentLevel)[keyof typeof
|
|
|
1492
1493
|
export interface InviteGuildResponse {
|
|
1493
1494
|
readonly id: SnowflakeType;
|
|
1494
1495
|
readonly name: string;
|
|
1495
|
-
readonly splash
|
|
1496
|
-
readonly banner
|
|
1497
|
-
readonly description
|
|
1498
|
-
readonly icon
|
|
1496
|
+
readonly splash: string | null;
|
|
1497
|
+
readonly banner: string | null;
|
|
1498
|
+
readonly description: string | null;
|
|
1499
|
+
readonly icon: string | null;
|
|
1499
1500
|
readonly features: ReadonlyArray<GuildFeatures>;
|
|
1500
|
-
readonly verification_level
|
|
1501
|
-
readonly vanity_url_code
|
|
1502
|
-
readonly nsfw_level
|
|
1503
|
-
readonly nsfw
|
|
1501
|
+
readonly verification_level: VerificationLevels | null;
|
|
1502
|
+
readonly vanity_url_code: string | null;
|
|
1503
|
+
readonly nsfw_level: GuildNSFWContentLevel | null;
|
|
1504
|
+
readonly nsfw: boolean | null;
|
|
1504
1505
|
readonly premium_subscription_count: number;
|
|
1505
1506
|
}
|
|
1506
1507
|
export declare const InviteTargetTypes: {
|
|
@@ -1512,9 +1513,9 @@ export type InviteTargetTypes = (typeof InviteTargetTypes)[keyof typeof InviteTa
|
|
|
1512
1513
|
export interface InviteApplicationResponse {
|
|
1513
1514
|
readonly id: SnowflakeType;
|
|
1514
1515
|
readonly name: string;
|
|
1515
|
-
readonly icon
|
|
1516
|
+
readonly icon: string | null;
|
|
1516
1517
|
readonly description: string;
|
|
1517
|
-
readonly type
|
|
1518
|
+
readonly type: ApplicationTypes | null;
|
|
1518
1519
|
readonly cover_image?: string | undefined;
|
|
1519
1520
|
readonly primary_sku_id?: SnowflakeType | undefined;
|
|
1520
1521
|
readonly bot?: UserResponse | undefined;
|
|
@@ -1558,27 +1559,42 @@ export interface ScheduledEventResponse {
|
|
|
1558
1559
|
readonly id: SnowflakeType;
|
|
1559
1560
|
readonly guild_id: SnowflakeType;
|
|
1560
1561
|
readonly name: string;
|
|
1561
|
-
readonly description
|
|
1562
|
-
readonly channel_id
|
|
1563
|
-
readonly creator_id
|
|
1562
|
+
readonly description: string | null;
|
|
1563
|
+
readonly channel_id: SnowflakeType | null;
|
|
1564
|
+
readonly creator_id: SnowflakeType | null;
|
|
1564
1565
|
readonly creator?: UserResponse | undefined;
|
|
1565
|
-
readonly image
|
|
1566
|
+
readonly image: string | null;
|
|
1566
1567
|
readonly scheduled_start_time: string;
|
|
1567
|
-
readonly scheduled_end_time
|
|
1568
|
+
readonly scheduled_end_time: string | null;
|
|
1568
1569
|
readonly status: GuildScheduledEventStatuses;
|
|
1569
1570
|
readonly entity_type: GuildScheduledEventEntityTypes;
|
|
1570
|
-
readonly entity_id
|
|
1571
|
+
readonly entity_id: SnowflakeType | null;
|
|
1571
1572
|
readonly user_count?: number | undefined;
|
|
1572
1573
|
readonly privacy_level: GuildScheduledEventPrivacyLevels;
|
|
1573
1574
|
readonly user_rsvp?: ScheduledEventUserResponse | null | undefined;
|
|
1574
1575
|
}
|
|
1576
|
+
export interface GuildRoleColorsResponse {
|
|
1577
|
+
readonly primary_color: number;
|
|
1578
|
+
readonly secondary_color: number | null;
|
|
1579
|
+
readonly tertiary_color: number | null;
|
|
1580
|
+
}
|
|
1581
|
+
export interface InviteGuildRoleResponse {
|
|
1582
|
+
readonly id: SnowflakeType;
|
|
1583
|
+
readonly name: string;
|
|
1584
|
+
readonly position: number;
|
|
1585
|
+
readonly color: number;
|
|
1586
|
+
readonly colors: GuildRoleColorsResponse;
|
|
1587
|
+
readonly icon: string | null;
|
|
1588
|
+
readonly unicode_emoji: string | null;
|
|
1589
|
+
readonly permissions?: string | undefined;
|
|
1590
|
+
}
|
|
1575
1591
|
export interface GuildInviteResponse {
|
|
1576
1592
|
readonly type: 0;
|
|
1577
1593
|
readonly code: string;
|
|
1578
1594
|
readonly inviter?: UserResponse | undefined;
|
|
1579
1595
|
readonly max_age?: number | undefined;
|
|
1580
1596
|
readonly created_at?: string | undefined;
|
|
1581
|
-
readonly expires_at
|
|
1597
|
+
readonly expires_at: string | null;
|
|
1582
1598
|
readonly is_contact?: boolean | undefined;
|
|
1583
1599
|
readonly flags?: number | undefined;
|
|
1584
1600
|
readonly guild: InviteGuildResponse;
|
|
@@ -1594,6 +1610,7 @@ export interface GuildInviteResponse {
|
|
|
1594
1610
|
readonly approximate_member_count?: number | null | undefined;
|
|
1595
1611
|
readonly approximate_presence_count?: number | null | undefined;
|
|
1596
1612
|
readonly is_nickname_changeable?: boolean | undefined;
|
|
1613
|
+
readonly roles?: ReadonlyArray<InviteGuildRoleResponse> | null | undefined;
|
|
1597
1614
|
}
|
|
1598
1615
|
export type ListChannelInvites200 = ReadonlyArray<FriendInviteResponse | GroupDMInviteResponse | GuildInviteResponse | null>;
|
|
1599
1616
|
export interface CreateGroupDMInviteRequest {
|
|
@@ -1801,6 +1818,18 @@ export declare const MessageComponentTypes: {
|
|
|
1801
1818
|
* File upload component
|
|
1802
1819
|
*/
|
|
1803
1820
|
readonly FILE_UPLOAD: 19;
|
|
1821
|
+
/**
|
|
1822
|
+
* Radio group component
|
|
1823
|
+
*/
|
|
1824
|
+
readonly RADIO_GROUP: 21;
|
|
1825
|
+
/**
|
|
1826
|
+
* Checkbox group component
|
|
1827
|
+
*/
|
|
1828
|
+
readonly CHECKBOX_GROUP: 22;
|
|
1829
|
+
/**
|
|
1830
|
+
* Checkbox component
|
|
1831
|
+
*/
|
|
1832
|
+
readonly CHECKBOX: 23;
|
|
1804
1833
|
};
|
|
1805
1834
|
export type MessageComponentTypes = (typeof MessageComponentTypes)[keyof typeof MessageComponentTypes];
|
|
1806
1835
|
export declare const ButtonStyleTypes: {
|
|
@@ -1843,8 +1872,8 @@ export interface ChannelSelectComponentResponse {
|
|
|
1843
1872
|
readonly id: number;
|
|
1844
1873
|
readonly custom_id: string;
|
|
1845
1874
|
readonly placeholder?: string | undefined;
|
|
1846
|
-
readonly min_values
|
|
1847
|
-
readonly max_values
|
|
1875
|
+
readonly min_values: number | null;
|
|
1876
|
+
readonly max_values: number | null;
|
|
1848
1877
|
readonly disabled?: boolean | undefined;
|
|
1849
1878
|
readonly channel_types?: ReadonlyArray<ChannelTypes> | undefined;
|
|
1850
1879
|
readonly default_values?: ReadonlyArray<ChannelSelectDefaultValueResponse> | undefined;
|
|
@@ -1862,8 +1891,8 @@ export interface MentionableSelectComponentResponse {
|
|
|
1862
1891
|
readonly id: number;
|
|
1863
1892
|
readonly custom_id: string;
|
|
1864
1893
|
readonly placeholder?: string | undefined;
|
|
1865
|
-
readonly min_values
|
|
1866
|
-
readonly max_values
|
|
1894
|
+
readonly min_values: number | null;
|
|
1895
|
+
readonly max_values: number | null;
|
|
1867
1896
|
readonly disabled?: boolean | undefined;
|
|
1868
1897
|
readonly default_values?: ReadonlyArray<RoleSelectDefaultValueResponse | UserSelectDefaultValueResponse> | undefined;
|
|
1869
1898
|
}
|
|
@@ -1872,8 +1901,8 @@ export interface RoleSelectComponentResponse {
|
|
|
1872
1901
|
readonly id: number;
|
|
1873
1902
|
readonly custom_id: string;
|
|
1874
1903
|
readonly placeholder?: string | undefined;
|
|
1875
|
-
readonly min_values
|
|
1876
|
-
readonly max_values
|
|
1904
|
+
readonly min_values: number | null;
|
|
1905
|
+
readonly max_values: number | null;
|
|
1877
1906
|
readonly disabled?: boolean | undefined;
|
|
1878
1907
|
readonly default_values?: ReadonlyArray<RoleSelectDefaultValueResponse> | undefined;
|
|
1879
1908
|
}
|
|
@@ -1889,8 +1918,8 @@ export interface StringSelectComponentResponse {
|
|
|
1889
1918
|
readonly id: number;
|
|
1890
1919
|
readonly custom_id: string;
|
|
1891
1920
|
readonly placeholder?: string | undefined;
|
|
1892
|
-
readonly min_values
|
|
1893
|
-
readonly max_values
|
|
1921
|
+
readonly min_values: number | null;
|
|
1922
|
+
readonly max_values: number | null;
|
|
1894
1923
|
readonly disabled?: boolean | undefined;
|
|
1895
1924
|
readonly options: ReadonlyArray<StringSelectOptionResponse>;
|
|
1896
1925
|
}
|
|
@@ -1910,20 +1939,20 @@ export interface TextInputComponentResponse {
|
|
|
1910
1939
|
readonly id: number;
|
|
1911
1940
|
readonly custom_id: string;
|
|
1912
1941
|
readonly style: TextInputStyleTypes;
|
|
1913
|
-
readonly label
|
|
1942
|
+
readonly label: string | null;
|
|
1914
1943
|
readonly value?: string | undefined;
|
|
1915
1944
|
readonly placeholder?: string | undefined;
|
|
1916
1945
|
readonly required?: boolean | undefined;
|
|
1917
|
-
readonly min_length
|
|
1918
|
-
readonly max_length
|
|
1946
|
+
readonly min_length: number | null;
|
|
1947
|
+
readonly max_length: number | null;
|
|
1919
1948
|
}
|
|
1920
1949
|
export interface UserSelectComponentResponse {
|
|
1921
1950
|
readonly type: 5;
|
|
1922
1951
|
readonly id: number;
|
|
1923
1952
|
readonly custom_id: string;
|
|
1924
1953
|
readonly placeholder?: string | undefined;
|
|
1925
|
-
readonly min_values
|
|
1926
|
-
readonly max_values
|
|
1954
|
+
readonly min_values: number | null;
|
|
1955
|
+
readonly max_values: number | null;
|
|
1927
1956
|
readonly disabled?: boolean | undefined;
|
|
1928
1957
|
readonly default_values?: ReadonlyArray<UserSelectDefaultValueResponse> | undefined;
|
|
1929
1958
|
}
|
|
@@ -1945,13 +1974,13 @@ export interface FileComponentResponse {
|
|
|
1945
1974
|
readonly type: 13;
|
|
1946
1975
|
readonly id: number;
|
|
1947
1976
|
readonly file: UnfurledMediaResponse;
|
|
1948
|
-
readonly name
|
|
1949
|
-
readonly size
|
|
1977
|
+
readonly name: string | null;
|
|
1978
|
+
readonly size: number | null;
|
|
1950
1979
|
readonly spoiler: boolean;
|
|
1951
1980
|
}
|
|
1952
1981
|
export interface MediaGalleryItemResponse {
|
|
1953
1982
|
readonly media: UnfurledMediaResponse;
|
|
1954
|
-
readonly description
|
|
1983
|
+
readonly description: string | null;
|
|
1955
1984
|
readonly spoiler: boolean;
|
|
1956
1985
|
}
|
|
1957
1986
|
export interface MediaGalleryComponentResponse {
|
|
@@ -1968,7 +1997,7 @@ export interface ThumbnailComponentResponse {
|
|
|
1968
1997
|
readonly type: 11;
|
|
1969
1998
|
readonly id: number;
|
|
1970
1999
|
readonly media: UnfurledMediaResponse;
|
|
1971
|
-
readonly description
|
|
2000
|
+
readonly description: string | null;
|
|
1972
2001
|
readonly spoiler: boolean;
|
|
1973
2002
|
}
|
|
1974
2003
|
export interface SectionComponentResponse {
|
|
@@ -1997,7 +2026,7 @@ export interface SeparatorComponentResponse {
|
|
|
1997
2026
|
export interface ContainerComponentResponse {
|
|
1998
2027
|
readonly type: 17;
|
|
1999
2028
|
readonly id: number;
|
|
2000
|
-
readonly accent_color
|
|
2029
|
+
readonly accent_color: number | null;
|
|
2001
2030
|
readonly components: ReadonlyArray<ActionRowComponentResponse | FileComponentResponse | MediaGalleryComponentResponse | SectionComponentResponse | SeparatorComponentResponse | TextDisplayComponentResponse>;
|
|
2002
2031
|
readonly spoiler: boolean;
|
|
2003
2032
|
}
|
|
@@ -2024,8 +2053,8 @@ export interface GuildStickerResponse {
|
|
|
2024
2053
|
readonly name: string;
|
|
2025
2054
|
readonly tags: string;
|
|
2026
2055
|
readonly type: 2;
|
|
2027
|
-
readonly format_type
|
|
2028
|
-
readonly description
|
|
2056
|
+
readonly format_type: StickerFormatTypes | null;
|
|
2057
|
+
readonly description: string | null;
|
|
2029
2058
|
readonly available: boolean;
|
|
2030
2059
|
readonly guild_id: SnowflakeType;
|
|
2031
2060
|
readonly user?: UserResponse | undefined;
|
|
@@ -2035,8 +2064,8 @@ export interface StandardStickerResponse {
|
|
|
2035
2064
|
readonly name: string;
|
|
2036
2065
|
readonly tags: string;
|
|
2037
2066
|
readonly type: 1;
|
|
2038
|
-
readonly format_type
|
|
2039
|
-
readonly description
|
|
2067
|
+
readonly format_type: StickerFormatTypes | null;
|
|
2068
|
+
readonly description: string | null;
|
|
2040
2069
|
readonly pack_id: SnowflakeType;
|
|
2041
2070
|
readonly sort_value: number;
|
|
2042
2071
|
}
|
|
@@ -2054,9 +2083,9 @@ export interface MessageActivityResponse {
|
|
|
2054
2083
|
export interface BasicApplicationResponse {
|
|
2055
2084
|
readonly id: SnowflakeType;
|
|
2056
2085
|
readonly name: string;
|
|
2057
|
-
readonly icon
|
|
2086
|
+
readonly icon: string | null;
|
|
2058
2087
|
readonly description: string;
|
|
2059
|
-
readonly type
|
|
2088
|
+
readonly type: ApplicationTypes | null;
|
|
2060
2089
|
readonly cover_image?: string | undefined;
|
|
2061
2090
|
readonly primary_sku_id?: SnowflakeType | undefined;
|
|
2062
2091
|
readonly bot?: UserResponse | undefined;
|
|
@@ -2082,6 +2111,10 @@ export declare const InteractionTypes: {
|
|
|
2082
2111
|
* Sent when a user submits a modal previously sent by your application
|
|
2083
2112
|
*/
|
|
2084
2113
|
readonly MODAL_SUBMIT: 5;
|
|
2114
|
+
/**
|
|
2115
|
+
* Sent when Discord is checking if a user can purchase a Social Layer SKU
|
|
2116
|
+
*/
|
|
2117
|
+
readonly SOCIAL_LAYER_SKU_PURCHASE_ELIGIBILITY: 6;
|
|
2085
2118
|
};
|
|
2086
2119
|
export type InteractionTypes = (typeof InteractionTypes)[keyof typeof InteractionTypes];
|
|
2087
2120
|
export interface MessageInteractionResponse {
|
|
@@ -2126,8 +2159,8 @@ export interface ResolvedObjectsResponse {
|
|
|
2126
2159
|
readonly roles?: Record<string, unknown> | null | undefined;
|
|
2127
2160
|
}
|
|
2128
2161
|
export interface MessageReactionEmojiResponse {
|
|
2129
|
-
readonly id
|
|
2130
|
-
readonly name
|
|
2162
|
+
readonly id: SnowflakeType | null;
|
|
2163
|
+
readonly name: string | null;
|
|
2131
2164
|
readonly animated?: boolean | undefined;
|
|
2132
2165
|
}
|
|
2133
2166
|
export interface PollMediaResponse {
|
|
@@ -2218,7 +2251,7 @@ export interface MinimalContentMessageResponse {
|
|
|
2218
2251
|
readonly attachments: ReadonlyArray<MessageAttachmentResponse>;
|
|
2219
2252
|
readonly embeds: ReadonlyArray<MessageEmbedResponse>;
|
|
2220
2253
|
readonly timestamp: string;
|
|
2221
|
-
readonly edited_timestamp
|
|
2254
|
+
readonly edited_timestamp: string | null;
|
|
2222
2255
|
readonly flags: number;
|
|
2223
2256
|
readonly components: ReadonlyArray<ActionRowComponentResponse | ContainerComponentResponse | FileComponentResponse | MediaGalleryComponentResponse | SectionComponentResponse | SeparatorComponentResponse | TextDisplayComponentResponse>;
|
|
2224
2257
|
readonly stickers?: ReadonlyArray<GuildStickerResponse | StandardStickerResponse> | undefined;
|
|
@@ -2247,7 +2280,7 @@ export interface BasicMessageResponse {
|
|
|
2247
2280
|
readonly attachments: ReadonlyArray<MessageAttachmentResponse>;
|
|
2248
2281
|
readonly embeds: ReadonlyArray<MessageEmbedResponse>;
|
|
2249
2282
|
readonly timestamp: string;
|
|
2250
|
-
readonly edited_timestamp
|
|
2283
|
+
readonly edited_timestamp: string | null;
|
|
2251
2284
|
readonly flags: number;
|
|
2252
2285
|
readonly components: ReadonlyArray<ActionRowComponentResponse | ContainerComponentResponse | FileComponentResponse | MediaGalleryComponentResponse | SectionComponentResponse | SeparatorComponentResponse | TextDisplayComponentResponse>;
|
|
2253
2286
|
readonly stickers?: ReadonlyArray<GuildStickerResponse | StandardStickerResponse> | undefined;
|
|
@@ -2285,7 +2318,7 @@ export interface MessageResponse {
|
|
|
2285
2318
|
readonly attachments: ReadonlyArray<MessageAttachmentResponse>;
|
|
2286
2319
|
readonly embeds: ReadonlyArray<MessageEmbedResponse>;
|
|
2287
2320
|
readonly timestamp: string;
|
|
2288
|
-
readonly edited_timestamp
|
|
2321
|
+
readonly edited_timestamp: string | null;
|
|
2289
2322
|
readonly flags: number;
|
|
2290
2323
|
readonly components: ReadonlyArray<ActionRowComponentResponse | ContainerComponentResponse | FileComponentResponse | MediaGalleryComponentResponse | SectionComponentResponse | SeparatorComponentResponse | TextDisplayComponentResponse>;
|
|
2291
2324
|
readonly stickers?: ReadonlyArray<GuildStickerResponse | StandardStickerResponse> | undefined;
|
|
@@ -2590,8 +2623,6 @@ export interface CustomClientThemeShareRequest {
|
|
|
2590
2623
|
readonly base_mix: number;
|
|
2591
2624
|
readonly base_theme?: MessageShareCustomUserThemeBaseTheme | null | undefined;
|
|
2592
2625
|
}
|
|
2593
|
-
export interface ConfettiPotionCreateRequest {
|
|
2594
|
-
}
|
|
2595
2626
|
export interface MessageReferenceRequest {
|
|
2596
2627
|
readonly guild_id?: SnowflakeType | null | undefined;
|
|
2597
2628
|
readonly channel_id?: SnowflakeType | null | undefined;
|
|
@@ -2609,7 +2640,6 @@ export interface MessageCreateRequest {
|
|
|
2609
2640
|
readonly attachments?: ReadonlyArray<MessageAttachmentRequest> | null | undefined;
|
|
2610
2641
|
readonly poll?: PollCreateRequest | null | undefined;
|
|
2611
2642
|
readonly shared_client_theme?: CustomClientThemeShareRequest | null | undefined;
|
|
2612
|
-
readonly confetti_potion?: ConfettiPotionCreateRequest | null | undefined;
|
|
2613
2643
|
readonly message_reference?: MessageReferenceRequest | null | undefined;
|
|
2614
2644
|
readonly nonce?: number | string | null | undefined;
|
|
2615
2645
|
readonly enforce_nonce?: boolean | null | undefined;
|
|
@@ -2702,7 +2732,6 @@ export interface BaseCreateMessageCreateRequest {
|
|
|
2702
2732
|
readonly attachments?: ReadonlyArray<MessageAttachmentRequest> | null | undefined;
|
|
2703
2733
|
readonly poll?: PollCreateRequest | null | undefined;
|
|
2704
2734
|
readonly shared_client_theme?: CustomClientThemeShareRequest | null | undefined;
|
|
2705
|
-
readonly confetti_potion?: ConfettiPotionCreateRequest | null | undefined;
|
|
2706
2735
|
}
|
|
2707
2736
|
export interface CreateForumThreadRequest {
|
|
2708
2737
|
readonly name: string;
|
|
@@ -2810,9 +2839,9 @@ export declare const WebhookTypes: {
|
|
|
2810
2839
|
};
|
|
2811
2840
|
export type WebhookTypes = (typeof WebhookTypes)[keyof typeof WebhookTypes];
|
|
2812
2841
|
export interface ApplicationIncomingWebhookResponse {
|
|
2813
|
-
readonly application_id
|
|
2814
|
-
readonly avatar
|
|
2815
|
-
readonly channel_id
|
|
2842
|
+
readonly application_id: SnowflakeType | null;
|
|
2843
|
+
readonly avatar: string | null;
|
|
2844
|
+
readonly channel_id: SnowflakeType | null;
|
|
2816
2845
|
readonly guild_id?: SnowflakeType | null | undefined;
|
|
2817
2846
|
readonly id: SnowflakeType;
|
|
2818
2847
|
readonly name: string;
|
|
@@ -2821,7 +2850,7 @@ export interface ApplicationIncomingWebhookResponse {
|
|
|
2821
2850
|
}
|
|
2822
2851
|
export interface WebhookSourceGuildResponse {
|
|
2823
2852
|
readonly id: SnowflakeType;
|
|
2824
|
-
readonly icon
|
|
2853
|
+
readonly icon: string | null;
|
|
2825
2854
|
readonly name: string;
|
|
2826
2855
|
}
|
|
2827
2856
|
export interface WebhookSourceChannelResponse {
|
|
@@ -2829,9 +2858,9 @@ export interface WebhookSourceChannelResponse {
|
|
|
2829
2858
|
readonly name: string;
|
|
2830
2859
|
}
|
|
2831
2860
|
export interface ChannelFollowerWebhookResponse {
|
|
2832
|
-
readonly application_id
|
|
2833
|
-
readonly avatar
|
|
2834
|
-
readonly channel_id
|
|
2861
|
+
readonly application_id: SnowflakeType | null;
|
|
2862
|
+
readonly avatar: string | null;
|
|
2863
|
+
readonly channel_id: SnowflakeType | null;
|
|
2835
2864
|
readonly guild_id?: SnowflakeType | null | undefined;
|
|
2836
2865
|
readonly id: SnowflakeType;
|
|
2837
2866
|
readonly name: string;
|
|
@@ -2841,9 +2870,9 @@ export interface ChannelFollowerWebhookResponse {
|
|
|
2841
2870
|
readonly source_channel?: WebhookSourceChannelResponse | undefined;
|
|
2842
2871
|
}
|
|
2843
2872
|
export interface GuildIncomingWebhookResponse {
|
|
2844
|
-
readonly application_id
|
|
2845
|
-
readonly avatar
|
|
2846
|
-
readonly channel_id
|
|
2873
|
+
readonly application_id: SnowflakeType | null;
|
|
2874
|
+
readonly avatar: string | null;
|
|
2875
|
+
readonly channel_id: SnowflakeType | null;
|
|
2847
2876
|
readonly guild_id?: SnowflakeType | null | undefined;
|
|
2848
2877
|
readonly id: SnowflakeType;
|
|
2849
2878
|
readonly name: string;
|
|
@@ -3046,63 +3075,63 @@ export declare const AfkTimeouts: {
|
|
|
3046
3075
|
export type AfkTimeouts = (typeof AfkTimeouts)[keyof typeof AfkTimeouts];
|
|
3047
3076
|
export interface GuildTemplateRoleColorsResponse {
|
|
3048
3077
|
readonly primary_color: number;
|
|
3049
|
-
readonly secondary_color
|
|
3050
|
-
readonly tertiary_color
|
|
3078
|
+
readonly secondary_color: number | null;
|
|
3079
|
+
readonly tertiary_color: number | null;
|
|
3051
3080
|
}
|
|
3052
3081
|
export interface GuildTemplateRoleResponse {
|
|
3053
3082
|
readonly id: number;
|
|
3054
3083
|
readonly name: string;
|
|
3055
3084
|
readonly permissions: string;
|
|
3056
3085
|
readonly color: number;
|
|
3057
|
-
readonly colors
|
|
3086
|
+
readonly colors: GuildTemplateRoleColorsResponse | null;
|
|
3058
3087
|
readonly hoist: boolean;
|
|
3059
3088
|
readonly mentionable: boolean;
|
|
3060
|
-
readonly icon
|
|
3061
|
-
readonly unicode_emoji
|
|
3089
|
+
readonly icon: string | null;
|
|
3090
|
+
readonly unicode_emoji: string | null;
|
|
3062
3091
|
}
|
|
3063
3092
|
export interface GuildTemplateChannelTags {
|
|
3064
|
-
readonly id
|
|
3093
|
+
readonly id: number | null;
|
|
3065
3094
|
readonly name: string;
|
|
3066
|
-
readonly emoji_id
|
|
3067
|
-
readonly emoji_name
|
|
3068
|
-
readonly moderated
|
|
3095
|
+
readonly emoji_id: SnowflakeType | null;
|
|
3096
|
+
readonly emoji_name: string | null;
|
|
3097
|
+
readonly moderated: boolean | null;
|
|
3069
3098
|
}
|
|
3070
3099
|
export interface IconEmojiResponse {
|
|
3071
3100
|
}
|
|
3072
3101
|
export interface GuildTemplateChannelResponse {
|
|
3073
|
-
readonly id
|
|
3102
|
+
readonly id: number | null;
|
|
3074
3103
|
readonly type: 0 | 2 | 4 | 15;
|
|
3075
|
-
readonly name
|
|
3076
|
-
readonly position
|
|
3077
|
-
readonly topic
|
|
3104
|
+
readonly name: string | null;
|
|
3105
|
+
readonly position: number | null;
|
|
3106
|
+
readonly topic: string | null;
|
|
3078
3107
|
readonly bitrate: number;
|
|
3079
3108
|
readonly user_limit: number;
|
|
3080
3109
|
readonly nsfw: boolean;
|
|
3081
3110
|
readonly rate_limit_per_user: number;
|
|
3082
|
-
readonly parent_id
|
|
3083
|
-
readonly default_auto_archive_duration
|
|
3111
|
+
readonly parent_id: SnowflakeType | null;
|
|
3112
|
+
readonly default_auto_archive_duration: ThreadAutoArchiveDuration | null;
|
|
3084
3113
|
readonly permission_overwrites: ReadonlyArray<null | ChannelPermissionOverwriteResponse>;
|
|
3085
|
-
readonly available_tags
|
|
3114
|
+
readonly available_tags: ReadonlyArray<GuildTemplateChannelTags> | null;
|
|
3086
3115
|
readonly template: string;
|
|
3087
|
-
readonly default_reaction_emoji
|
|
3088
|
-
readonly default_thread_rate_limit_per_user
|
|
3089
|
-
readonly default_sort_order
|
|
3090
|
-
readonly default_forum_layout
|
|
3091
|
-
readonly default_tag_setting
|
|
3092
|
-
readonly icon_emoji
|
|
3093
|
-
readonly theme_color
|
|
3116
|
+
readonly default_reaction_emoji: DefaultReactionEmojiResponse | null;
|
|
3117
|
+
readonly default_thread_rate_limit_per_user: number | null;
|
|
3118
|
+
readonly default_sort_order: ThreadSortOrder | null;
|
|
3119
|
+
readonly default_forum_layout: ForumLayout | null;
|
|
3120
|
+
readonly default_tag_setting: ThreadSearchTagSetting | null;
|
|
3121
|
+
readonly icon_emoji: IconEmojiResponse | null;
|
|
3122
|
+
readonly theme_color: number | null;
|
|
3094
3123
|
}
|
|
3095
3124
|
export interface GuildTemplateSnapshotResponse {
|
|
3096
3125
|
readonly name: string;
|
|
3097
|
-
readonly description
|
|
3098
|
-
readonly region
|
|
3126
|
+
readonly description: string | null;
|
|
3127
|
+
readonly region: string | null;
|
|
3099
3128
|
readonly verification_level: VerificationLevels;
|
|
3100
3129
|
readonly default_message_notifications: UserNotificationSettings;
|
|
3101
3130
|
readonly explicit_content_filter: GuildExplicitContentFilterTypes;
|
|
3102
3131
|
readonly preferred_locale: AvailableLocalesEnum;
|
|
3103
|
-
readonly afk_channel_id
|
|
3132
|
+
readonly afk_channel_id: SnowflakeType | null;
|
|
3104
3133
|
readonly afk_timeout: AfkTimeouts;
|
|
3105
|
-
readonly system_channel_id
|
|
3134
|
+
readonly system_channel_id: SnowflakeType | null;
|
|
3106
3135
|
readonly system_channel_flags: number;
|
|
3107
3136
|
readonly roles: ReadonlyArray<GuildTemplateRoleResponse>;
|
|
3108
3137
|
readonly channels: ReadonlyArray<GuildTemplateChannelResponse>;
|
|
@@ -3110,24 +3139,19 @@ export interface GuildTemplateSnapshotResponse {
|
|
|
3110
3139
|
export interface GuildTemplateResponse {
|
|
3111
3140
|
readonly code: string;
|
|
3112
3141
|
readonly name: string;
|
|
3113
|
-
readonly description
|
|
3142
|
+
readonly description: string | null;
|
|
3114
3143
|
readonly usage_count: number;
|
|
3115
3144
|
readonly creator_id: SnowflakeType;
|
|
3116
|
-
readonly creator
|
|
3145
|
+
readonly creator: UserResponse | null;
|
|
3117
3146
|
readonly created_at: string;
|
|
3118
3147
|
readonly updated_at: string;
|
|
3119
3148
|
readonly source_guild_id: SnowflakeType;
|
|
3120
3149
|
readonly serialized_source_guild: GuildTemplateSnapshotResponse;
|
|
3121
|
-
readonly is_dirty
|
|
3150
|
+
readonly is_dirty: boolean | null;
|
|
3122
3151
|
}
|
|
3123
3152
|
export interface GetGuildParams {
|
|
3124
3153
|
readonly with_counts?: boolean | undefined;
|
|
3125
3154
|
}
|
|
3126
|
-
export interface GuildRoleColorsResponse {
|
|
3127
|
-
readonly primary_color: number;
|
|
3128
|
-
readonly secondary_color?: number | null | undefined;
|
|
3129
|
-
readonly tertiary_color?: number | null | undefined;
|
|
3130
|
-
}
|
|
3131
3155
|
export interface GuildRoleTagsResponse {
|
|
3132
3156
|
readonly premium_subscriber?: null | undefined;
|
|
3133
3157
|
readonly bot_id?: SnowflakeType | undefined;
|
|
@@ -3139,7 +3163,7 @@ export interface GuildRoleTagsResponse {
|
|
|
3139
3163
|
export interface GuildRoleResponse {
|
|
3140
3164
|
readonly id: SnowflakeType;
|
|
3141
3165
|
readonly name: string;
|
|
3142
|
-
readonly description
|
|
3166
|
+
readonly description: string | null;
|
|
3143
3167
|
readonly permissions: string;
|
|
3144
3168
|
readonly position: number;
|
|
3145
3169
|
readonly color: number;
|
|
@@ -3147,8 +3171,8 @@ export interface GuildRoleResponse {
|
|
|
3147
3171
|
readonly hoist: boolean;
|
|
3148
3172
|
readonly managed: boolean;
|
|
3149
3173
|
readonly mentionable: boolean;
|
|
3150
|
-
readonly icon
|
|
3151
|
-
readonly unicode_emoji
|
|
3174
|
+
readonly icon: string | null;
|
|
3175
|
+
readonly unicode_emoji: string | null;
|
|
3152
3176
|
readonly tags?: GuildRoleTagsResponse | undefined;
|
|
3153
3177
|
readonly flags: number;
|
|
3154
3178
|
}
|
|
@@ -3185,39 +3209,40 @@ export type PremiumGuildTiers = (typeof PremiumGuildTiers)[keyof typeof PremiumG
|
|
|
3185
3209
|
export interface GuildWithCountsResponse {
|
|
3186
3210
|
readonly id: SnowflakeType;
|
|
3187
3211
|
readonly name: string;
|
|
3188
|
-
readonly icon
|
|
3189
|
-
readonly description
|
|
3190
|
-
readonly home_header
|
|
3191
|
-
readonly splash
|
|
3192
|
-
readonly discovery_splash
|
|
3212
|
+
readonly icon: string | null;
|
|
3213
|
+
readonly description: string | null;
|
|
3214
|
+
readonly home_header: string | null;
|
|
3215
|
+
readonly splash: string | null;
|
|
3216
|
+
readonly discovery_splash: string | null;
|
|
3193
3217
|
readonly features: ReadonlyArray<GuildFeatures>;
|
|
3194
|
-
readonly banner
|
|
3218
|
+
readonly banner: string | null;
|
|
3195
3219
|
readonly owner_id: SnowflakeType;
|
|
3196
|
-
readonly application_id
|
|
3220
|
+
readonly application_id: SnowflakeType | null;
|
|
3197
3221
|
readonly region: string;
|
|
3198
|
-
readonly afk_channel_id
|
|
3222
|
+
readonly afk_channel_id: SnowflakeType | null;
|
|
3199
3223
|
readonly afk_timeout: AfkTimeouts;
|
|
3200
|
-
readonly system_channel_id
|
|
3224
|
+
readonly system_channel_id: SnowflakeType | null;
|
|
3201
3225
|
readonly system_channel_flags: number;
|
|
3202
3226
|
readonly widget_enabled: boolean;
|
|
3203
|
-
readonly widget_channel_id
|
|
3227
|
+
readonly widget_channel_id: SnowflakeType | null;
|
|
3204
3228
|
readonly verification_level: VerificationLevels;
|
|
3205
3229
|
readonly roles: ReadonlyArray<GuildRoleResponse>;
|
|
3206
3230
|
readonly default_message_notifications: UserNotificationSettings;
|
|
3207
3231
|
readonly mfa_level: GuildMFALevel;
|
|
3208
3232
|
readonly explicit_content_filter: GuildExplicitContentFilterTypes;
|
|
3209
|
-
readonly max_presences
|
|
3233
|
+
readonly max_presences: number | null;
|
|
3210
3234
|
readonly max_members: number;
|
|
3211
3235
|
readonly max_stage_video_channel_users: number;
|
|
3212
3236
|
readonly max_video_channel_users: number;
|
|
3213
|
-
readonly vanity_url_code
|
|
3237
|
+
readonly vanity_url_code: string | null;
|
|
3214
3238
|
readonly premium_tier: PremiumGuildTiers;
|
|
3215
3239
|
readonly premium_subscription_count: number;
|
|
3216
3240
|
readonly preferred_locale: AvailableLocalesEnum;
|
|
3217
|
-
readonly rules_channel_id
|
|
3218
|
-
readonly safety_alerts_channel_id
|
|
3219
|
-
readonly public_updates_channel_id
|
|
3241
|
+
readonly rules_channel_id: SnowflakeType | null;
|
|
3242
|
+
readonly safety_alerts_channel_id: SnowflakeType | null;
|
|
3243
|
+
readonly public_updates_channel_id: SnowflakeType | null;
|
|
3220
3244
|
readonly premium_progress_bar_enabled: boolean;
|
|
3245
|
+
readonly premium_progress_bar_enabled_user_updated_at?: string | null | undefined;
|
|
3221
3246
|
readonly nsfw: boolean;
|
|
3222
3247
|
readonly nsfw_level: GuildNSFWContentLevel;
|
|
3223
3248
|
readonly emojis: ReadonlyArray<EmojiResponse>;
|
|
@@ -3251,39 +3276,40 @@ export interface GuildPatchRequestPartial {
|
|
|
3251
3276
|
export interface GuildResponse {
|
|
3252
3277
|
readonly id: SnowflakeType;
|
|
3253
3278
|
readonly name: string;
|
|
3254
|
-
readonly icon
|
|
3255
|
-
readonly description
|
|
3256
|
-
readonly home_header
|
|
3257
|
-
readonly splash
|
|
3258
|
-
readonly discovery_splash
|
|
3279
|
+
readonly icon: string | null;
|
|
3280
|
+
readonly description: string | null;
|
|
3281
|
+
readonly home_header: string | null;
|
|
3282
|
+
readonly splash: string | null;
|
|
3283
|
+
readonly discovery_splash: string | null;
|
|
3259
3284
|
readonly features: ReadonlyArray<GuildFeatures>;
|
|
3260
|
-
readonly banner
|
|
3285
|
+
readonly banner: string | null;
|
|
3261
3286
|
readonly owner_id: SnowflakeType;
|
|
3262
|
-
readonly application_id
|
|
3287
|
+
readonly application_id: SnowflakeType | null;
|
|
3263
3288
|
readonly region: string;
|
|
3264
|
-
readonly afk_channel_id
|
|
3289
|
+
readonly afk_channel_id: SnowflakeType | null;
|
|
3265
3290
|
readonly afk_timeout: AfkTimeouts;
|
|
3266
|
-
readonly system_channel_id
|
|
3291
|
+
readonly system_channel_id: SnowflakeType | null;
|
|
3267
3292
|
readonly system_channel_flags: number;
|
|
3268
3293
|
readonly widget_enabled: boolean;
|
|
3269
|
-
readonly widget_channel_id
|
|
3294
|
+
readonly widget_channel_id: SnowflakeType | null;
|
|
3270
3295
|
readonly verification_level: VerificationLevels;
|
|
3271
3296
|
readonly roles: ReadonlyArray<GuildRoleResponse>;
|
|
3272
3297
|
readonly default_message_notifications: UserNotificationSettings;
|
|
3273
3298
|
readonly mfa_level: GuildMFALevel;
|
|
3274
3299
|
readonly explicit_content_filter: GuildExplicitContentFilterTypes;
|
|
3275
|
-
readonly max_presences
|
|
3300
|
+
readonly max_presences: number | null;
|
|
3276
3301
|
readonly max_members: number;
|
|
3277
3302
|
readonly max_stage_video_channel_users: number;
|
|
3278
3303
|
readonly max_video_channel_users: number;
|
|
3279
|
-
readonly vanity_url_code
|
|
3304
|
+
readonly vanity_url_code: string | null;
|
|
3280
3305
|
readonly premium_tier: PremiumGuildTiers;
|
|
3281
3306
|
readonly premium_subscription_count: number;
|
|
3282
3307
|
readonly preferred_locale: AvailableLocalesEnum;
|
|
3283
|
-
readonly rules_channel_id
|
|
3284
|
-
readonly safety_alerts_channel_id
|
|
3285
|
-
readonly public_updates_channel_id
|
|
3308
|
+
readonly rules_channel_id: SnowflakeType | null;
|
|
3309
|
+
readonly safety_alerts_channel_id: SnowflakeType | null;
|
|
3310
|
+
readonly public_updates_channel_id: SnowflakeType | null;
|
|
3286
3311
|
readonly premium_progress_bar_enabled: boolean;
|
|
3312
|
+
readonly premium_progress_bar_enabled_user_updated_at?: string | null | undefined;
|
|
3287
3313
|
readonly nsfw: boolean;
|
|
3288
3314
|
readonly nsfw_level: GuildNSFWContentLevel;
|
|
3289
3315
|
readonly emojis: ReadonlyArray<EmojiResponse>;
|
|
@@ -3374,13 +3400,13 @@ export interface ListGuildAuditLogEntriesParams {
|
|
|
3374
3400
|
readonly limit?: number | undefined;
|
|
3375
3401
|
}
|
|
3376
3402
|
export interface AuditLogObjectChangeResponse {
|
|
3377
|
-
readonly key
|
|
3403
|
+
readonly key: string | null;
|
|
3378
3404
|
}
|
|
3379
3405
|
export interface AuditLogEntryResponse {
|
|
3380
3406
|
readonly id: SnowflakeType;
|
|
3381
3407
|
readonly action_type: AuditLogActionTypes;
|
|
3382
|
-
readonly user_id
|
|
3383
|
-
readonly target_id
|
|
3408
|
+
readonly user_id: SnowflakeType | null;
|
|
3409
|
+
readonly target_id: SnowflakeType | null;
|
|
3384
3410
|
readonly changes?: ReadonlyArray<AuditLogObjectChangeResponse> | undefined;
|
|
3385
3411
|
readonly options?: Record<string, unknown> | undefined;
|
|
3386
3412
|
readonly reason?: string | undefined;
|
|
@@ -3394,25 +3420,25 @@ export declare const IntegrationTypes: {
|
|
|
3394
3420
|
export type IntegrationTypes = (typeof IntegrationTypes)[keyof typeof IntegrationTypes];
|
|
3395
3421
|
export interface AccountResponse {
|
|
3396
3422
|
readonly id: string;
|
|
3397
|
-
readonly name
|
|
3423
|
+
readonly name: string | null;
|
|
3398
3424
|
}
|
|
3399
3425
|
export interface PartialDiscordIntegrationResponse {
|
|
3400
3426
|
readonly id: SnowflakeType;
|
|
3401
3427
|
readonly type: "discord";
|
|
3402
|
-
readonly name
|
|
3428
|
+
readonly name: string | null;
|
|
3403
3429
|
readonly account: AccountResponse;
|
|
3404
3430
|
readonly application_id: SnowflakeType;
|
|
3405
3431
|
}
|
|
3406
3432
|
export interface PartialExternalConnectionIntegrationResponse {
|
|
3407
3433
|
readonly id: SnowflakeType;
|
|
3408
3434
|
readonly type: "twitch" | "youtube";
|
|
3409
|
-
readonly name
|
|
3435
|
+
readonly name: string | null;
|
|
3410
3436
|
readonly account: AccountResponse;
|
|
3411
3437
|
}
|
|
3412
3438
|
export interface PartialGuildSubscriptionIntegrationResponse {
|
|
3413
3439
|
readonly id: SnowflakeType;
|
|
3414
3440
|
readonly type: "guild_subscription";
|
|
3415
|
-
readonly name
|
|
3441
|
+
readonly name: string | null;
|
|
3416
3442
|
readonly account: AccountResponse;
|
|
3417
3443
|
}
|
|
3418
3444
|
export interface EntityMetadataExternalResponse {
|
|
@@ -3422,16 +3448,16 @@ export interface ExternalScheduledEventResponse {
|
|
|
3422
3448
|
readonly id: SnowflakeType;
|
|
3423
3449
|
readonly guild_id: SnowflakeType;
|
|
3424
3450
|
readonly name: string;
|
|
3425
|
-
readonly description
|
|
3426
|
-
readonly channel_id
|
|
3427
|
-
readonly creator_id
|
|
3451
|
+
readonly description: string | null;
|
|
3452
|
+
readonly channel_id: SnowflakeType | null;
|
|
3453
|
+
readonly creator_id: SnowflakeType | null;
|
|
3428
3454
|
readonly creator?: UserResponse | undefined;
|
|
3429
|
-
readonly image
|
|
3455
|
+
readonly image: string | null;
|
|
3430
3456
|
readonly scheduled_start_time: string;
|
|
3431
|
-
readonly scheduled_end_time
|
|
3457
|
+
readonly scheduled_end_time: string | null;
|
|
3432
3458
|
readonly status: GuildScheduledEventStatuses;
|
|
3433
3459
|
readonly entity_type: 3;
|
|
3434
|
-
readonly entity_id
|
|
3460
|
+
readonly entity_id: SnowflakeType | null;
|
|
3435
3461
|
readonly user_count?: number | undefined;
|
|
3436
3462
|
readonly privacy_level: GuildScheduledEventPrivacyLevels;
|
|
3437
3463
|
readonly user_rsvp?: ScheduledEventUserResponse | null | undefined;
|
|
@@ -3443,20 +3469,20 @@ export interface StageScheduledEventResponse {
|
|
|
3443
3469
|
readonly id: SnowflakeType;
|
|
3444
3470
|
readonly guild_id: SnowflakeType;
|
|
3445
3471
|
readonly name: string;
|
|
3446
|
-
readonly description
|
|
3447
|
-
readonly channel_id
|
|
3448
|
-
readonly creator_id
|
|
3472
|
+
readonly description: string | null;
|
|
3473
|
+
readonly channel_id: SnowflakeType | null;
|
|
3474
|
+
readonly creator_id: SnowflakeType | null;
|
|
3449
3475
|
readonly creator?: UserResponse | undefined;
|
|
3450
|
-
readonly image
|
|
3476
|
+
readonly image: string | null;
|
|
3451
3477
|
readonly scheduled_start_time: string;
|
|
3452
|
-
readonly scheduled_end_time
|
|
3478
|
+
readonly scheduled_end_time: string | null;
|
|
3453
3479
|
readonly status: GuildScheduledEventStatuses;
|
|
3454
3480
|
readonly entity_type: 1;
|
|
3455
|
-
readonly entity_id
|
|
3481
|
+
readonly entity_id: SnowflakeType | null;
|
|
3456
3482
|
readonly user_count?: number | undefined;
|
|
3457
3483
|
readonly privacy_level: GuildScheduledEventPrivacyLevels;
|
|
3458
3484
|
readonly user_rsvp?: ScheduledEventUserResponse | null | undefined;
|
|
3459
|
-
readonly entity_metadata
|
|
3485
|
+
readonly entity_metadata: EntityMetadataStageInstanceResponse | null;
|
|
3460
3486
|
}
|
|
3461
3487
|
export interface EntityMetadataVoiceResponse {
|
|
3462
3488
|
}
|
|
@@ -3464,20 +3490,20 @@ export interface VoiceScheduledEventResponse {
|
|
|
3464
3490
|
readonly id: SnowflakeType;
|
|
3465
3491
|
readonly guild_id: SnowflakeType;
|
|
3466
3492
|
readonly name: string;
|
|
3467
|
-
readonly description
|
|
3468
|
-
readonly channel_id
|
|
3469
|
-
readonly creator_id
|
|
3493
|
+
readonly description: string | null;
|
|
3494
|
+
readonly channel_id: SnowflakeType | null;
|
|
3495
|
+
readonly creator_id: SnowflakeType | null;
|
|
3470
3496
|
readonly creator?: UserResponse | undefined;
|
|
3471
|
-
readonly image
|
|
3497
|
+
readonly image: string | null;
|
|
3472
3498
|
readonly scheduled_start_time: string;
|
|
3473
|
-
readonly scheduled_end_time
|
|
3499
|
+
readonly scheduled_end_time: string | null;
|
|
3474
3500
|
readonly status: GuildScheduledEventStatuses;
|
|
3475
3501
|
readonly entity_type: 2;
|
|
3476
|
-
readonly entity_id
|
|
3502
|
+
readonly entity_id: SnowflakeType | null;
|
|
3477
3503
|
readonly user_count?: number | undefined;
|
|
3478
3504
|
readonly privacy_level: GuildScheduledEventPrivacyLevels;
|
|
3479
3505
|
readonly user_rsvp?: ScheduledEventUserResponse | null | undefined;
|
|
3480
|
-
readonly entity_metadata
|
|
3506
|
+
readonly entity_metadata: EntityMetadataVoiceResponse | null;
|
|
3481
3507
|
}
|
|
3482
3508
|
export declare const AutomodEventType: {
|
|
3483
3509
|
/**
|
|
@@ -3801,7 +3827,7 @@ export interface ListGuildBansParams {
|
|
|
3801
3827
|
}
|
|
3802
3828
|
export interface GuildBanResponse {
|
|
3803
3829
|
readonly user: UserResponse;
|
|
3804
|
-
readonly reason
|
|
3830
|
+
readonly reason: string | null;
|
|
3805
3831
|
}
|
|
3806
3832
|
export type ListGuildBans200 = ReadonlyArray<GuildBanResponse>;
|
|
3807
3833
|
export interface BanUserFromGuildRequest {
|
|
@@ -3865,16 +3891,16 @@ export interface UpdateGuildEmojiRequest {
|
|
|
3865
3891
|
export interface IntegrationApplicationResponse {
|
|
3866
3892
|
readonly id: SnowflakeType;
|
|
3867
3893
|
readonly name: string;
|
|
3868
|
-
readonly icon
|
|
3894
|
+
readonly icon: string | null;
|
|
3869
3895
|
readonly description: string;
|
|
3870
|
-
readonly type
|
|
3896
|
+
readonly type: ApplicationTypes | null;
|
|
3871
3897
|
readonly cover_image?: string | undefined;
|
|
3872
3898
|
readonly primary_sku_id?: SnowflakeType | undefined;
|
|
3873
3899
|
readonly bot?: UserResponse | undefined;
|
|
3874
3900
|
}
|
|
3875
3901
|
export interface DiscordIntegrationResponse {
|
|
3876
3902
|
readonly type: "discord";
|
|
3877
|
-
readonly name
|
|
3903
|
+
readonly name: string | null;
|
|
3878
3904
|
readonly account: AccountResponse;
|
|
3879
3905
|
readonly enabled: boolean;
|
|
3880
3906
|
readonly id: SnowflakeType;
|
|
@@ -3918,7 +3944,7 @@ export declare const IntegrationExpireGracePeriodTypes: {
|
|
|
3918
3944
|
export type IntegrationExpireGracePeriodTypes = (typeof IntegrationExpireGracePeriodTypes)[keyof typeof IntegrationExpireGracePeriodTypes];
|
|
3919
3945
|
export interface ExternalConnectionIntegrationResponse {
|
|
3920
3946
|
readonly type: "twitch" | "youtube";
|
|
3921
|
-
readonly name
|
|
3947
|
+
readonly name: string | null;
|
|
3922
3948
|
readonly account: AccountResponse;
|
|
3923
3949
|
readonly enabled: boolean;
|
|
3924
3950
|
readonly id: string;
|
|
@@ -3934,7 +3960,7 @@ export interface ExternalConnectionIntegrationResponse {
|
|
|
3934
3960
|
}
|
|
3935
3961
|
export interface GuildSubscriptionIntegrationResponse {
|
|
3936
3962
|
readonly type: "guild_subscription";
|
|
3937
|
-
readonly name
|
|
3963
|
+
readonly name: string | null;
|
|
3938
3964
|
readonly account: AccountResponse;
|
|
3939
3965
|
readonly enabled: boolean;
|
|
3940
3966
|
readonly id: SnowflakeType;
|
|
@@ -3948,17 +3974,20 @@ export interface ListGuildMembersParams {
|
|
|
3948
3974
|
export type ListGuildMembers200 = ReadonlyArray<GuildMemberResponse>;
|
|
3949
3975
|
export interface UpdateMyGuildMemberRequest {
|
|
3950
3976
|
readonly nick?: string | null | undefined;
|
|
3977
|
+
readonly avatar?: string | null | undefined;
|
|
3978
|
+
readonly bio?: string | null | undefined;
|
|
3979
|
+
readonly banner?: string | null | undefined;
|
|
3951
3980
|
}
|
|
3952
3981
|
export interface PrivateGuildMemberResponse {
|
|
3953
|
-
readonly avatar
|
|
3982
|
+
readonly avatar: string | null;
|
|
3954
3983
|
readonly avatar_decoration_data?: UserAvatarDecorationResponse | null | undefined;
|
|
3955
|
-
readonly banner
|
|
3956
|
-
readonly communication_disabled_until
|
|
3984
|
+
readonly banner: string | null;
|
|
3985
|
+
readonly communication_disabled_until: string | null;
|
|
3957
3986
|
readonly flags: number;
|
|
3958
3987
|
readonly joined_at: string;
|
|
3959
|
-
readonly nick
|
|
3988
|
+
readonly nick: string | null;
|
|
3960
3989
|
readonly pending: boolean;
|
|
3961
|
-
readonly premium_since
|
|
3990
|
+
readonly premium_since: string | null;
|
|
3962
3991
|
readonly roles: ReadonlyArray<SnowflakeType>;
|
|
3963
3992
|
readonly collectibles?: UserCollectiblesResponse | null | undefined;
|
|
3964
3993
|
readonly user: UserResponse;
|
|
@@ -3998,8 +4027,8 @@ export declare const NewMemberActionType: {
|
|
|
3998
4027
|
};
|
|
3999
4028
|
export type NewMemberActionType = (typeof NewMemberActionType)[keyof typeof NewMemberActionType];
|
|
4000
4029
|
export interface SettingsEmojiResponse {
|
|
4001
|
-
readonly id
|
|
4002
|
-
readonly name
|
|
4030
|
+
readonly id: SnowflakeType | null;
|
|
4031
|
+
readonly name: string | null;
|
|
4003
4032
|
readonly animated: boolean;
|
|
4004
4033
|
}
|
|
4005
4034
|
export interface NewMemberActionResponse {
|
|
@@ -4103,11 +4132,11 @@ export interface GuildOnboardingResponse {
|
|
|
4103
4132
|
export interface GuildPreviewResponse {
|
|
4104
4133
|
readonly id: SnowflakeType;
|
|
4105
4134
|
readonly name: string;
|
|
4106
|
-
readonly icon
|
|
4107
|
-
readonly description
|
|
4108
|
-
readonly home_header
|
|
4109
|
-
readonly splash
|
|
4110
|
-
readonly discovery_splash
|
|
4135
|
+
readonly icon: string | null;
|
|
4136
|
+
readonly description: string | null;
|
|
4137
|
+
readonly home_header: string | null;
|
|
4138
|
+
readonly splash: string | null;
|
|
4139
|
+
readonly discovery_splash: string | null;
|
|
4111
4140
|
readonly features: ReadonlyArray<GuildFeatures>;
|
|
4112
4141
|
readonly approximate_member_count: number;
|
|
4113
4142
|
readonly approximate_presence_count: number;
|
|
@@ -4119,7 +4148,7 @@ export interface PreviewPruneGuildParams {
|
|
|
4119
4148
|
readonly include_roles?: string | ReadonlyArray<null | SnowflakeType> | undefined;
|
|
4120
4149
|
}
|
|
4121
4150
|
export interface GuildPruneResponse {
|
|
4122
|
-
readonly pruned
|
|
4151
|
+
readonly pruned: number | null;
|
|
4123
4152
|
}
|
|
4124
4153
|
export interface PruneGuildRequest {
|
|
4125
4154
|
readonly days?: number | null | undefined;
|
|
@@ -4135,10 +4164,16 @@ export interface VoiceRegionResponse {
|
|
|
4135
4164
|
}
|
|
4136
4165
|
export type ListGuildVoiceRegions200 = ReadonlyArray<VoiceRegionResponse>;
|
|
4137
4166
|
export type ListGuildRoles200 = ReadonlyArray<GuildRoleResponse>;
|
|
4167
|
+
export interface RoleColors {
|
|
4168
|
+
readonly primary_color?: number | null | undefined;
|
|
4169
|
+
readonly secondary_color?: number | null | undefined;
|
|
4170
|
+
readonly tertiary_color?: number | null | undefined;
|
|
4171
|
+
}
|
|
4138
4172
|
export interface CreateRoleRequest {
|
|
4139
4173
|
readonly name?: string | null | undefined;
|
|
4140
4174
|
readonly permissions?: number | null | undefined;
|
|
4141
4175
|
readonly color?: number | null | undefined;
|
|
4176
|
+
readonly colors?: RoleColors | null | undefined;
|
|
4142
4177
|
readonly hoist?: boolean | null | undefined;
|
|
4143
4178
|
readonly mentionable?: boolean | null | undefined;
|
|
4144
4179
|
readonly icon?: string | null | undefined;
|
|
@@ -4150,10 +4185,12 @@ export interface UpdateRolePositionsRequest {
|
|
|
4150
4185
|
}
|
|
4151
4186
|
export type BulkUpdateGuildRolesRequest = ReadonlyArray<UpdateRolePositionsRequest>;
|
|
4152
4187
|
export type BulkUpdateGuildRoles200 = ReadonlyArray<GuildRoleResponse>;
|
|
4188
|
+
export type GuildRoleMemberCounts200 = Record<string, unknown>;
|
|
4153
4189
|
export interface UpdateRoleRequestPartial {
|
|
4154
4190
|
readonly name?: string | null | undefined;
|
|
4155
4191
|
readonly permissions?: number | null | undefined;
|
|
4156
4192
|
readonly color?: number | null | undefined;
|
|
4193
|
+
readonly colors?: RoleColors | null | undefined;
|
|
4157
4194
|
readonly hoist?: boolean | null | undefined;
|
|
4158
4195
|
readonly mentionable?: boolean | null | undefined;
|
|
4159
4196
|
readonly icon?: string | null | undefined;
|
|
@@ -4258,8 +4295,8 @@ export interface SoundboardSoundResponse {
|
|
|
4258
4295
|
readonly name: string;
|
|
4259
4296
|
readonly sound_id: SnowflakeType;
|
|
4260
4297
|
readonly volume: number;
|
|
4261
|
-
readonly emoji_id
|
|
4262
|
-
readonly emoji_name
|
|
4298
|
+
readonly emoji_id: SnowflakeType | null;
|
|
4299
|
+
readonly emoji_name: string | null;
|
|
4263
4300
|
readonly guild_id?: SnowflakeType | undefined;
|
|
4264
4301
|
readonly available: boolean;
|
|
4265
4302
|
readonly user?: UserResponse | undefined;
|
|
@@ -4306,19 +4343,19 @@ export interface VanityURLErrorResponse {
|
|
|
4306
4343
|
readonly code: number;
|
|
4307
4344
|
}
|
|
4308
4345
|
export interface VanityURLResponse {
|
|
4309
|
-
readonly code
|
|
4346
|
+
readonly code: string | null;
|
|
4310
4347
|
readonly uses: number;
|
|
4311
4348
|
readonly error?: VanityURLErrorResponse | null | undefined;
|
|
4312
4349
|
}
|
|
4313
4350
|
export interface VoiceStateResponse {
|
|
4314
|
-
readonly channel_id
|
|
4351
|
+
readonly channel_id: SnowflakeType | null;
|
|
4315
4352
|
readonly deaf: boolean;
|
|
4316
|
-
readonly guild_id
|
|
4353
|
+
readonly guild_id: SnowflakeType | null;
|
|
4317
4354
|
readonly member?: GuildMemberResponse | undefined;
|
|
4318
4355
|
readonly mute: boolean;
|
|
4319
|
-
readonly request_to_speak_timestamp
|
|
4356
|
+
readonly request_to_speak_timestamp: string | null;
|
|
4320
4357
|
readonly suppress: boolean;
|
|
4321
|
-
readonly self_stream
|
|
4358
|
+
readonly self_stream: boolean | null;
|
|
4322
4359
|
readonly self_deaf: boolean;
|
|
4323
4360
|
readonly self_mute: boolean;
|
|
4324
4361
|
readonly self_video: boolean;
|
|
@@ -4338,11 +4375,11 @@ export type GetGuildWebhooks200 = ReadonlyArray<ApplicationIncomingWebhookRespon
|
|
|
4338
4375
|
export interface GuildWelcomeScreenChannelResponse {
|
|
4339
4376
|
readonly channel_id: SnowflakeType;
|
|
4340
4377
|
readonly description: string;
|
|
4341
|
-
readonly emoji_id
|
|
4342
|
-
readonly emoji_name
|
|
4378
|
+
readonly emoji_id: SnowflakeType | null;
|
|
4379
|
+
readonly emoji_name: string | null;
|
|
4343
4380
|
}
|
|
4344
4381
|
export interface GuildWelcomeScreenResponse {
|
|
4345
|
-
readonly description
|
|
4382
|
+
readonly description: string | null;
|
|
4346
4383
|
readonly welcome_channels: ReadonlyArray<GuildWelcomeScreenChannelResponse>;
|
|
4347
4384
|
}
|
|
4348
4385
|
export interface GuildWelcomeChannel {
|
|
@@ -4358,7 +4395,7 @@ export interface WelcomeScreenPatchRequestPartial {
|
|
|
4358
4395
|
}
|
|
4359
4396
|
export interface WidgetSettingsResponse {
|
|
4360
4397
|
readonly enabled: boolean;
|
|
4361
|
-
readonly channel_id
|
|
4398
|
+
readonly channel_id: SnowflakeType | null;
|
|
4362
4399
|
}
|
|
4363
4400
|
export interface UpdateGuildWidgetSettingsRequest {
|
|
4364
4401
|
readonly channel_id?: SnowflakeType | null | undefined;
|
|
@@ -4377,7 +4414,7 @@ export interface WidgetMember {
|
|
|
4377
4414
|
readonly id: string;
|
|
4378
4415
|
readonly username: string;
|
|
4379
4416
|
readonly discriminator: WidgetUserDiscriminator;
|
|
4380
|
-
readonly avatar
|
|
4417
|
+
readonly avatar: null;
|
|
4381
4418
|
readonly status: string;
|
|
4382
4419
|
readonly avatar_url: string;
|
|
4383
4420
|
readonly activity?: WidgetActivity | undefined;
|
|
@@ -4391,7 +4428,7 @@ export interface WidgetMember {
|
|
|
4391
4428
|
export interface WidgetResponse {
|
|
4392
4429
|
readonly id: SnowflakeType;
|
|
4393
4430
|
readonly name: string;
|
|
4394
|
-
readonly instant_invite
|
|
4431
|
+
readonly instant_invite: string | null;
|
|
4395
4432
|
readonly channels: ReadonlyArray<WidgetChannel>;
|
|
4396
4433
|
readonly members: ReadonlyArray<WidgetMember>;
|
|
4397
4434
|
readonly presence_count: number;
|
|
@@ -4434,6 +4471,7 @@ export declare const InteractionCallbackTypes: {
|
|
|
4434
4471
|
readonly APPLICATION_COMMAND_AUTOCOMPLETE_RESULT: 8;
|
|
4435
4472
|
readonly MODAL: 9;
|
|
4436
4473
|
readonly LAUNCH_ACTIVITY: 12;
|
|
4474
|
+
readonly SOCIAL_LAYER_SKU_PURCHASE_ELIGIBILITY: 13;
|
|
4437
4475
|
};
|
|
4438
4476
|
export type InteractionCallbackTypes = (typeof InteractionCallbackTypes)[keyof typeof InteractionCallbackTypes];
|
|
4439
4477
|
export interface InteractionApplicationCommandAutocompleteCallbackIntegerData {
|
|
@@ -4495,6 +4533,27 @@ export interface ChannelSelectComponentForModalRequest {
|
|
|
4495
4533
|
readonly default_values?: ReadonlyArray<ChannelSelectDefaultValue> | null | undefined;
|
|
4496
4534
|
readonly channel_types?: ReadonlyArray<ChannelTypes> | null | undefined;
|
|
4497
4535
|
}
|
|
4536
|
+
export interface CheckboxComponentForModalRequest {
|
|
4537
|
+
readonly type: 23;
|
|
4538
|
+
readonly id?: number | null | undefined;
|
|
4539
|
+
readonly custom_id: string;
|
|
4540
|
+
readonly default?: boolean | null | undefined;
|
|
4541
|
+
}
|
|
4542
|
+
export interface CheckboxGroupOptionForRequest {
|
|
4543
|
+
readonly label: string;
|
|
4544
|
+
readonly value: string;
|
|
4545
|
+
readonly description?: string | null | undefined;
|
|
4546
|
+
readonly default?: boolean | null | undefined;
|
|
4547
|
+
}
|
|
4548
|
+
export interface CheckboxGroupComponentForModalRequest {
|
|
4549
|
+
readonly type: 22;
|
|
4550
|
+
readonly id?: number | null | undefined;
|
|
4551
|
+
readonly custom_id: string;
|
|
4552
|
+
readonly min_values?: number | null | undefined;
|
|
4553
|
+
readonly max_values?: number | null | undefined;
|
|
4554
|
+
readonly required?: boolean | null | undefined;
|
|
4555
|
+
readonly options: ReadonlyArray<CheckboxGroupOptionForRequest>;
|
|
4556
|
+
}
|
|
4498
4557
|
export interface FileUploadComponentForModalRequest {
|
|
4499
4558
|
readonly type: 19;
|
|
4500
4559
|
readonly id?: number | null | undefined;
|
|
@@ -4514,6 +4573,19 @@ export interface MentionableSelectComponentForModalRequest {
|
|
|
4514
4573
|
readonly required?: boolean | null | undefined;
|
|
4515
4574
|
readonly default_values?: ReadonlyArray<RoleSelectDefaultValue | UserSelectDefaultValue> | null | undefined;
|
|
4516
4575
|
}
|
|
4576
|
+
export interface RadioGroupOptionForRequest {
|
|
4577
|
+
readonly label: string;
|
|
4578
|
+
readonly value: string;
|
|
4579
|
+
readonly description?: string | null | undefined;
|
|
4580
|
+
readonly default?: boolean | null | undefined;
|
|
4581
|
+
}
|
|
4582
|
+
export interface RadioGroupComponentForModalRequest {
|
|
4583
|
+
readonly type: 21;
|
|
4584
|
+
readonly id?: number | null | undefined;
|
|
4585
|
+
readonly custom_id: string;
|
|
4586
|
+
readonly required?: boolean | null | undefined;
|
|
4587
|
+
readonly options: ReadonlyArray<RadioGroupOptionForRequest>;
|
|
4588
|
+
}
|
|
4517
4589
|
export interface RoleSelectComponentForModalRequest {
|
|
4518
4590
|
readonly type: 6;
|
|
4519
4591
|
readonly id?: number | null | undefined;
|
|
@@ -4552,7 +4624,7 @@ export interface LabelComponentForModalRequest {
|
|
|
4552
4624
|
readonly id?: number | null | undefined;
|
|
4553
4625
|
readonly label: string;
|
|
4554
4626
|
readonly description?: string | null | undefined;
|
|
4555
|
-
readonly component: ChannelSelectComponentForModalRequest | FileUploadComponentForModalRequest | MentionableSelectComponentForModalRequest | RoleSelectComponentForModalRequest | StringSelectComponentForModalRequest | TextInputComponentForModalRequest | UserSelectComponentForModalRequest;
|
|
4627
|
+
readonly component: ChannelSelectComponentForModalRequest | CheckboxComponentForModalRequest | CheckboxGroupComponentForModalRequest | FileUploadComponentForModalRequest | MentionableSelectComponentForModalRequest | RadioGroupComponentForModalRequest | RoleSelectComponentForModalRequest | StringSelectComponentForModalRequest | TextInputComponentForModalRequest | UserSelectComponentForModalRequest;
|
|
4556
4628
|
}
|
|
4557
4629
|
export interface TextDisplayComponentForModalRequest {
|
|
4558
4630
|
readonly type: 10;
|
|
@@ -4571,6 +4643,13 @@ export interface ModalInteractionCallbackRequest {
|
|
|
4571
4643
|
export interface PongInteractionCallbackRequest {
|
|
4572
4644
|
readonly type: 1;
|
|
4573
4645
|
}
|
|
4646
|
+
export interface SocialLayerSKUPurchaseEligibilityCallbackData {
|
|
4647
|
+
readonly eligible: boolean;
|
|
4648
|
+
}
|
|
4649
|
+
export interface SocialLayerSKUPurchaseEligibilityInteractionCallbackRequest {
|
|
4650
|
+
readonly type: 13;
|
|
4651
|
+
readonly data: SocialLayerSKUPurchaseEligibilityCallbackData;
|
|
4652
|
+
}
|
|
4574
4653
|
export interface IncomingWebhookUpdateForInteractionCallbackRequestPartial {
|
|
4575
4654
|
readonly content?: string | null | undefined;
|
|
4576
4655
|
readonly embeds?: ReadonlyArray<RichEmbed> | null | undefined;
|
|
@@ -4583,7 +4662,7 @@ export interface UpdateMessageInteractionCallbackRequest {
|
|
|
4583
4662
|
readonly type: 6 | 7;
|
|
4584
4663
|
readonly data?: IncomingWebhookUpdateForInteractionCallbackRequestPartial | null | undefined;
|
|
4585
4664
|
}
|
|
4586
|
-
export type CreateInteractionResponseRequest = ApplicationCommandAutocompleteCallbackRequest | CreateMessageInteractionCallbackRequest | LaunchActivityInteractionCallbackRequest | ModalInteractionCallbackRequest | PongInteractionCallbackRequest | UpdateMessageInteractionCallbackRequest;
|
|
4665
|
+
export type CreateInteractionResponseRequest = ApplicationCommandAutocompleteCallbackRequest | CreateMessageInteractionCallbackRequest | LaunchActivityInteractionCallbackRequest | ModalInteractionCallbackRequest | PongInteractionCallbackRequest | SocialLayerSKUPurchaseEligibilityInteractionCallbackRequest | UpdateMessageInteractionCallbackRequest;
|
|
4587
4666
|
export interface InteractionResponse {
|
|
4588
4667
|
readonly id: SnowflakeType;
|
|
4589
4668
|
readonly type: InteractionTypes;
|
|
@@ -4614,6 +4693,54 @@ export interface InviteResolveParams {
|
|
|
4614
4693
|
}
|
|
4615
4694
|
export type InviteResolve200 = FriendInviteResponse | GroupDMInviteResponse | GuildInviteResponse;
|
|
4616
4695
|
export type InviteRevoke200 = FriendInviteResponse | GroupDMInviteResponse | GuildInviteResponse;
|
|
4696
|
+
export interface UpdateInviteTargetUsersRequest {
|
|
4697
|
+
readonly target_users_file: Blob;
|
|
4698
|
+
}
|
|
4699
|
+
export declare const TargetUsersJobStatusTypes: {
|
|
4700
|
+
/**
|
|
4701
|
+
* The default value.
|
|
4702
|
+
*/
|
|
4703
|
+
readonly UNSPECIFIED: 0;
|
|
4704
|
+
/**
|
|
4705
|
+
* The job is still being processed.
|
|
4706
|
+
*/
|
|
4707
|
+
readonly PROCESSING: 1;
|
|
4708
|
+
/**
|
|
4709
|
+
* The job has been completed successfully.
|
|
4710
|
+
*/
|
|
4711
|
+
readonly COMPLETED: 2;
|
|
4712
|
+
/**
|
|
4713
|
+
* The job has failed, see error_message field for more details.
|
|
4714
|
+
*/
|
|
4715
|
+
readonly FAILED: 3;
|
|
4716
|
+
};
|
|
4717
|
+
export type TargetUsersJobStatusTypes = (typeof TargetUsersJobStatusTypes)[keyof typeof TargetUsersJobStatusTypes];
|
|
4718
|
+
export interface TargetUsersJobStatusResponse {
|
|
4719
|
+
/**
|
|
4720
|
+
* The status of the job processing the target users.
|
|
4721
|
+
*/
|
|
4722
|
+
readonly status: TargetUsersJobStatusTypes;
|
|
4723
|
+
/**
|
|
4724
|
+
* The total number of users in the provided list.
|
|
4725
|
+
*/
|
|
4726
|
+
readonly total_users: UInt32Type;
|
|
4727
|
+
/**
|
|
4728
|
+
* The number of users processed so far.
|
|
4729
|
+
*/
|
|
4730
|
+
readonly processed_users: UInt32Type;
|
|
4731
|
+
/**
|
|
4732
|
+
* The timestamp when the job was created.
|
|
4733
|
+
*/
|
|
4734
|
+
readonly created_at: string | null;
|
|
4735
|
+
/**
|
|
4736
|
+
* The timestamp when the job was successfully completed.
|
|
4737
|
+
*/
|
|
4738
|
+
readonly completed_at: string | null;
|
|
4739
|
+
/**
|
|
4740
|
+
* The error message if the job failed.
|
|
4741
|
+
*/
|
|
4742
|
+
readonly error_message: string | null;
|
|
4743
|
+
}
|
|
4617
4744
|
export type CreateOrJoinLobbyRequestFlagsEnum = 1;
|
|
4618
4745
|
export interface CreateOrJoinLobbyRequest {
|
|
4619
4746
|
readonly idle_timeout_seconds?: number | null | undefined;
|
|
@@ -4624,13 +4751,13 @@ export interface CreateOrJoinLobbyRequest {
|
|
|
4624
4751
|
}
|
|
4625
4752
|
export interface LobbyMemberResponse {
|
|
4626
4753
|
readonly id: SnowflakeType;
|
|
4627
|
-
readonly metadata
|
|
4754
|
+
readonly metadata: Record<string, unknown> | null;
|
|
4628
4755
|
readonly flags: number;
|
|
4629
4756
|
}
|
|
4630
4757
|
export interface LobbyResponse {
|
|
4631
4758
|
readonly id: SnowflakeType;
|
|
4632
4759
|
readonly application_id: SnowflakeType;
|
|
4633
|
-
readonly metadata
|
|
4760
|
+
readonly metadata: Record<string, unknown> | null;
|
|
4634
4761
|
readonly members: ReadonlyArray<LobbyMemberResponse>;
|
|
4635
4762
|
readonly linked_channel?: GuildChannelResponse | undefined;
|
|
4636
4763
|
readonly flags: UInt32Type;
|
|
@@ -4689,6 +4816,7 @@ export interface LobbyMessageResponse {
|
|
|
4689
4816
|
readonly channel_id: SnowflakeType;
|
|
4690
4817
|
readonly author: UserResponse;
|
|
4691
4818
|
readonly metadata?: Record<string, unknown> | undefined;
|
|
4819
|
+
readonly moderation_metadata?: Record<string, unknown> | undefined;
|
|
4692
4820
|
readonly flags: number;
|
|
4693
4821
|
readonly application_id?: SnowflakeType | undefined;
|
|
4694
4822
|
}
|
|
@@ -4703,12 +4831,15 @@ export interface SDKMessageRequest {
|
|
|
4703
4831
|
readonly attachments?: ReadonlyArray<MessageAttachmentRequest> | null | undefined;
|
|
4704
4832
|
readonly poll?: PollCreateRequest | null | undefined;
|
|
4705
4833
|
readonly shared_client_theme?: CustomClientThemeShareRequest | null | undefined;
|
|
4706
|
-
readonly confetti_potion?: ConfettiPotionCreateRequest | null | undefined;
|
|
4707
4834
|
readonly message_reference?: MessageReferenceRequest | null | undefined;
|
|
4708
4835
|
readonly nonce?: number | string | null | undefined;
|
|
4709
4836
|
readonly enforce_nonce?: boolean | null | undefined;
|
|
4710
4837
|
readonly tts?: boolean | null | undefined;
|
|
4711
4838
|
}
|
|
4839
|
+
/**
|
|
4840
|
+
* The moderation metadata attached to the message
|
|
4841
|
+
*/
|
|
4842
|
+
export type UpdateLobbyMessageExternalModerationMetadataRequest = Record<string, unknown>;
|
|
4712
4843
|
export interface OAuth2GetAuthorizationResponse {
|
|
4713
4844
|
readonly application: ApplicationResponse;
|
|
4714
4845
|
readonly expires: string;
|
|
@@ -4735,6 +4866,10 @@ export interface OAuth2GetOpenIDConnectUserInfoResponse {
|
|
|
4735
4866
|
readonly picture?: string | undefined;
|
|
4736
4867
|
readonly locale?: string | undefined;
|
|
4737
4868
|
}
|
|
4869
|
+
/**
|
|
4870
|
+
* The moderation metadata attached to the message
|
|
4871
|
+
*/
|
|
4872
|
+
export type UpdateUserMessageExternalModerationMetadataRequest = Record<string, unknown>;
|
|
4738
4873
|
export declare const ApplicationIdentityProviderAuthType: {
|
|
4739
4874
|
readonly OIDC: "OIDC";
|
|
4740
4875
|
readonly EPIC_ONLINE_SERVICES_ACCESS_TOKEN: "EPIC_ONLINE_SERVICES_ACCESS_TOKEN";
|
|
@@ -4801,7 +4936,7 @@ export interface StageInstanceResponse {
|
|
|
4801
4936
|
readonly privacy_level: StageInstancesPrivacyLevels;
|
|
4802
4937
|
readonly id: SnowflakeType;
|
|
4803
4938
|
readonly discoverable_disabled: boolean;
|
|
4804
|
-
readonly guild_scheduled_event_id
|
|
4939
|
+
readonly guild_scheduled_event_id: SnowflakeType | null;
|
|
4805
4940
|
}
|
|
4806
4941
|
export interface UpdateStageInstanceRequest {
|
|
4807
4942
|
readonly topic?: string | undefined;
|
|
@@ -4811,7 +4946,7 @@ export interface StickerPackResponse {
|
|
|
4811
4946
|
readonly id: SnowflakeType;
|
|
4812
4947
|
readonly sku_id: SnowflakeType;
|
|
4813
4948
|
readonly name: string;
|
|
4814
|
-
readonly description
|
|
4949
|
+
readonly description: string | null;
|
|
4815
4950
|
readonly stickers: ReadonlyArray<StandardStickerResponse>;
|
|
4816
4951
|
readonly cover_sticker_id?: SnowflakeType | undefined;
|
|
4817
4952
|
readonly banner_asset_id?: SnowflakeType | undefined;
|
|
@@ -4842,7 +4977,7 @@ export type PremiumTypes = (typeof PremiumTypes)[keyof typeof PremiumTypes];
|
|
|
4842
4977
|
export interface UserPIIResponse {
|
|
4843
4978
|
readonly id: SnowflakeType;
|
|
4844
4979
|
readonly username: string;
|
|
4845
|
-
readonly avatar
|
|
4980
|
+
readonly avatar: string | null;
|
|
4846
4981
|
readonly discriminator: string;
|
|
4847
4982
|
readonly public_flags: number;
|
|
4848
4983
|
readonly flags: Int53Type;
|
|
@@ -4850,7 +4985,7 @@ export interface UserPIIResponse {
|
|
|
4850
4985
|
readonly system?: boolean | undefined;
|
|
4851
4986
|
readonly banner?: string | null | undefined;
|
|
4852
4987
|
readonly accent_color?: number | null | undefined;
|
|
4853
|
-
readonly global_name
|
|
4988
|
+
readonly global_name: string | null;
|
|
4854
4989
|
readonly avatar_decoration_data?: UserAvatarDecorationResponse | null | undefined;
|
|
4855
4990
|
readonly collectibles?: UserCollectiblesResponse | null | undefined;
|
|
4856
4991
|
readonly primary_guild?: UserPrimaryGuildResponse | null | undefined;
|
|
@@ -4865,6 +5000,11 @@ export interface BotAccountPatchRequest {
|
|
|
4865
5000
|
readonly avatar?: string | null | undefined;
|
|
4866
5001
|
readonly banner?: string | null | undefined;
|
|
4867
5002
|
}
|
|
5003
|
+
export interface GetCurrentUserApplicationEntitlementsParams {
|
|
5004
|
+
readonly sku_ids?: string | ReadonlyArray<null | SnowflakeType> | undefined;
|
|
5005
|
+
readonly exclude_consumed?: boolean | undefined;
|
|
5006
|
+
}
|
|
5007
|
+
export type GetCurrentUserApplicationEntitlements200 = ReadonlyArray<null | EntitlementResponse>;
|
|
4868
5008
|
export interface ApplicationUserRoleConnectionResponse {
|
|
4869
5009
|
readonly platform_name?: string | null | undefined;
|
|
4870
5010
|
readonly platform_username?: string | null | undefined;
|
|
@@ -4911,7 +5051,7 @@ export type ConnectedAccountProviders = (typeof ConnectedAccountProviders)[keyof
|
|
|
4911
5051
|
export interface ConnectedAccountGuildResponse {
|
|
4912
5052
|
readonly id: SnowflakeType;
|
|
4913
5053
|
readonly name: string;
|
|
4914
|
-
readonly icon
|
|
5054
|
+
readonly icon: string | null;
|
|
4915
5055
|
}
|
|
4916
5056
|
export interface ConnectedAccountIntegrationResponse {
|
|
4917
5057
|
readonly id: string;
|
|
@@ -4926,7 +5066,7 @@ export declare const ConnectedAccountVisibility: {
|
|
|
4926
5066
|
export type ConnectedAccountVisibility = (typeof ConnectedAccountVisibility)[keyof typeof ConnectedAccountVisibility];
|
|
4927
5067
|
export interface ConnectedAccountResponse {
|
|
4928
5068
|
readonly id: string;
|
|
4929
|
-
readonly name
|
|
5069
|
+
readonly name: string | null;
|
|
4930
5070
|
readonly type: ConnectedAccountProviders;
|
|
4931
5071
|
readonly friend_sync: boolean;
|
|
4932
5072
|
readonly integrations?: ReadonlyArray<ConnectedAccountIntegrationResponse> | undefined;
|
|
@@ -4946,8 +5086,8 @@ export interface ListMyGuildsParams {
|
|
|
4946
5086
|
export interface MyGuildResponse {
|
|
4947
5087
|
readonly id: SnowflakeType;
|
|
4948
5088
|
readonly name: string;
|
|
4949
|
-
readonly icon
|
|
4950
|
-
readonly banner
|
|
5089
|
+
readonly icon: string | null;
|
|
5090
|
+
readonly banner: string | null;
|
|
4951
5091
|
readonly owner: boolean;
|
|
4952
5092
|
readonly permissions: string;
|
|
4953
5093
|
readonly features: ReadonlyArray<GuildFeatures>;
|
|
@@ -5290,6 +5430,7 @@ export interface DiscordRest {
|
|
|
5290
5430
|
readonly listGuildRoles: (guildId: string) => Effect.Effect<ListGuildRoles200, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
5291
5431
|
readonly createGuildRole: (guildId: string, options: CreateRoleRequest) => Effect.Effect<GuildRoleResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
5292
5432
|
readonly bulkUpdateGuildRoles: (guildId: string, options: BulkUpdateGuildRolesRequest) => Effect.Effect<BulkUpdateGuildRoles200, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
5433
|
+
readonly guildRoleMemberCounts: (guildId: string) => Effect.Effect<GuildRoleMemberCounts200, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
5293
5434
|
readonly getGuildRole: (guildId: string, roleId: string) => Effect.Effect<GuildRoleResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
5294
5435
|
readonly deleteGuildRole: (guildId: string, roleId: string) => Effect.Effect<void, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
5295
5436
|
readonly updateGuildRole: (guildId: string, roleId: string, options: UpdateRoleRequestPartial) => Effect.Effect<GuildRoleResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
@@ -5333,6 +5474,18 @@ export interface DiscordRest {
|
|
|
5333
5474
|
}) => Effect.Effect<InteractionCallbackResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
5334
5475
|
readonly inviteResolve: (code: string, options?: InviteResolveParams | undefined) => Effect.Effect<InviteResolve200, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
5335
5476
|
readonly inviteRevoke: (code: string) => Effect.Effect<InviteRevoke200, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
5477
|
+
/**
|
|
5478
|
+
* Get the target users for an invite.
|
|
5479
|
+
*/
|
|
5480
|
+
readonly getInviteTargetUsers: (code: string) => Effect.Effect<void, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
5481
|
+
/**
|
|
5482
|
+
* Update the target users for an existing invite.
|
|
5483
|
+
*/
|
|
5484
|
+
readonly updateInviteTargetUsers: (code: string, options: UpdateInviteTargetUsersRequest) => Effect.Effect<void, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
5485
|
+
/**
|
|
5486
|
+
* Get the target users job status for an invite.
|
|
5487
|
+
*/
|
|
5488
|
+
readonly getInviteTargetUsersJobStatus: (code: string) => Effect.Effect<TargetUsersJobStatusResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
5336
5489
|
readonly createOrJoinLobby: (options: CreateOrJoinLobbyRequest) => Effect.Effect<LobbyResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
5337
5490
|
readonly createLobby: (options: CreateLobbyRequest) => Effect.Effect<LobbyResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
5338
5491
|
readonly getLobby: (lobbyId: string) => Effect.Effect<LobbyResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
@@ -5346,10 +5499,18 @@ export interface DiscordRest {
|
|
|
5346
5499
|
readonly createLinkedLobbyGuildInviteForUser: (lobbyId: string, userId: string) => Effect.Effect<LobbyGuildInviteResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
5347
5500
|
readonly getLobbyMessages: (lobbyId: string, options?: GetLobbyMessagesParams | undefined) => Effect.Effect<GetLobbyMessages200, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
5348
5501
|
readonly createLobbyMessage: (lobbyId: string, options: SDKMessageRequest) => Effect.Effect<LobbyMessageResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
5502
|
+
/**
|
|
5503
|
+
* Update the external moderation metadata for a lobby message.
|
|
5504
|
+
*/
|
|
5505
|
+
readonly updateLobbyMessageExternalModerationMetadata: (lobbyId: string, messageId: string, options: UpdateLobbyMessageExternalModerationMetadataRequest) => Effect.Effect<void, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
5349
5506
|
readonly getMyOauth2Authorization: () => Effect.Effect<OAuth2GetAuthorizationResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
5350
5507
|
readonly getMyOauth2Application: () => Effect.Effect<PrivateApplicationResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
5351
5508
|
readonly getPublicKeys: () => Effect.Effect<OAuth2GetKeys, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
5352
5509
|
readonly getOpenidConnectUserinfo: () => Effect.Effect<OAuth2GetOpenIDConnectUserInfoResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
5510
|
+
/**
|
|
5511
|
+
* Update the external moderation metadata for a user message (DM).
|
|
5512
|
+
*/
|
|
5513
|
+
readonly updateUserMessageExternalModerationMetadata: (userId1: string, userId2: string, messageId: string, options: UpdateUserMessageExternalModerationMetadataRequest) => Effect.Effect<void, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
5353
5514
|
readonly partnerSdkUnmergeProvisionalAccount: (options: PartnerSdkUnmergeProvisionalAccountRequest) => Effect.Effect<void, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
5354
5515
|
readonly botPartnerSdkUnmergeProvisionalAccount: (options: BotPartnerSdkUnmergeProvisionalAccountRequest) => Effect.Effect<void, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
5355
5516
|
readonly partnerSdkToken: (options: PartnerSdkTokenRequest) => Effect.Effect<ProvisionalTokenResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
@@ -5364,6 +5525,7 @@ export interface DiscordRest {
|
|
|
5364
5525
|
readonly getSticker: (stickerId: string) => Effect.Effect<GetSticker200, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
5365
5526
|
readonly getMyUser: () => Effect.Effect<UserPIIResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
5366
5527
|
readonly updateMyUser: (options: BotAccountPatchRequest) => Effect.Effect<UserPIIResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
5528
|
+
readonly getCurrentUserApplicationEntitlements: (applicationId: string, options?: GetCurrentUserApplicationEntitlementsParams | undefined) => Effect.Effect<GetCurrentUserApplicationEntitlements200, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
5367
5529
|
readonly getApplicationUserRoleConnection: (applicationId: string) => Effect.Effect<ApplicationUserRoleConnectionResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
5368
5530
|
readonly updateApplicationUserRoleConnection: (applicationId: string, options: UpdateApplicationUserRoleConnectionRequest) => Effect.Effect<ApplicationUserRoleConnectionResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
5369
5531
|
readonly deleteApplicationUserRoleConnection: (applicationId: string) => Effect.Effect<void, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|