dfx 0.126.1 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.babel.cjs.json +11 -0
- package/.babel.mjs.json +10 -0
- package/.envrc +1 -0
- package/.gitmodules +3 -0
- package/.husky/pre-commit +2 -0
- package/.oxlintrc.json +72 -0
- package/.prettierignore +0 -0
- package/.prettierrc.json +5 -0
- package/.tool-versions +1 -0
- package/.vscode/debug.cjs +8 -0
- package/.vscode/launch.json +23 -0
- package/.vscode/settings.json +29 -0
- package/.vscode/tasks.json +44 -0
- package/AGENTS.md +15 -0
- package/CHANGELOG.md +1554 -0
- package/examples/.env.example +5 -0
- package/examples/interactions.ts +79 -0
- package/examples/readme.ts +56 -0
- package/examples/registry.ts +66 -0
- package/flake.lock +27 -0
- package/flake.nix +21 -0
- package/lerna.json +12 -0
- package/package.json +79 -36
- package/pnpm-workspace.yaml +7 -0
- package/scripts/generate-client.sh +10 -0
- package/scripts/worktree-setup.sh +8 -0
- package/src/Cache/memory.ts +5 -5
- package/src/Cache/memoryTTL.ts +11 -7
- package/src/Cache/prelude.ts +10 -8
- package/src/Cache.ts +31 -35
- package/src/DiscordConfig.ts +12 -16
- 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 +11 -6
- 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 +660 -341
- 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/webhooks.ts +7 -7
- package/test/index.test.ts +5 -0
- package/tsconfig.base.json +12 -6
- package/tsconfig.examples.json +0 -1
- package/vitest.config.ts +22 -0
- package/Cache/driver.d.ts +0 -24
- package/Cache/driver.d.ts.map +0 -1
- package/Cache/driver.js +0 -11
- package/Cache/driver.js.map +0 -1
- package/Cache/memory.d.ts +0 -5
- package/Cache/memory.d.ts.map +0 -1
- package/Cache/memory.js +0 -57
- package/Cache/memory.js.map +0 -1
- package/Cache/memoryTTL.d.ts +0 -23
- package/Cache/memoryTTL.d.ts.map +0 -1
- package/Cache/memoryTTL.js +0 -128
- package/Cache/memoryTTL.js.map +0 -1
- package/Cache/prelude.d.ts +0 -32
- package/Cache/prelude.d.ts.map +0 -1
- package/Cache/prelude.js +0 -143
- package/Cache/prelude.js.map +0 -1
- package/Cache.d.ts +0 -82
- package/Cache.d.ts.map +0 -1
- package/Cache.js +0 -144
- package/Cache.js.map +0 -1
- package/DiscordConfig.d.ts +0 -35
- package/DiscordConfig.d.ts.map +0 -1
- package/DiscordConfig.js +0 -42
- package/DiscordConfig.js.map +0 -1
- package/DiscordGateway/DiscordWS.d.ts +0 -37
- package/DiscordGateway/DiscordWS.d.ts.map +0 -1
- package/DiscordGateway/DiscordWS.js +0 -73
- package/DiscordGateway/DiscordWS.js.map +0 -1
- package/DiscordGateway/Messaging.d.ts +0 -393
- package/DiscordGateway/Messaging.d.ts.map +0 -1
- package/DiscordGateway/Messaging.js +0 -40
- package/DiscordGateway/Messaging.js.map +0 -1
- package/DiscordGateway/Shard/StateStore.d.ts +0 -24
- package/DiscordGateway/Shard/StateStore.d.ts.map +0 -1
- package/DiscordGateway/Shard/StateStore.js +0 -48
- package/DiscordGateway/Shard/StateStore.js.map +0 -1
- package/DiscordGateway/Shard/heartbeats.d.ts +0 -8
- package/DiscordGateway/Shard/heartbeats.d.ts.map +0 -1
- package/DiscordGateway/Shard/heartbeats.js +0 -28
- package/DiscordGateway/Shard/heartbeats.js.map +0 -1
- package/DiscordGateway/Shard/identify.d.ts +0 -12
- package/DiscordGateway/Shard/identify.d.ts.map +0 -1
- package/DiscordGateway/Shard/identify.js +0 -38
- package/DiscordGateway/Shard/identify.js.map +0 -1
- package/DiscordGateway/Shard/sendEvents.d.ts +0 -8
- package/DiscordGateway/Shard/sendEvents.d.ts.map +0 -1
- package/DiscordGateway/Shard/sendEvents.js +0 -39
- package/DiscordGateway/Shard/sendEvents.js.map +0 -1
- package/DiscordGateway/Shard/utils.d.ts +0 -6
- package/DiscordGateway/Shard/utils.d.ts.map +0 -1
- package/DiscordGateway/Shard/utils.js +0 -11
- package/DiscordGateway/Shard/utils.js.map +0 -1
- package/DiscordGateway/Shard.d.ts +0 -28
- package/DiscordGateway/Shard.d.ts.map +0 -1
- package/DiscordGateway/Shard.js +0 -149
- package/DiscordGateway/Shard.js.map +0 -1
- package/DiscordGateway/ShardStore.d.ts +0 -18
- package/DiscordGateway/ShardStore.d.ts.map +0 -1
- package/DiscordGateway/ShardStore.js +0 -31
- package/DiscordGateway/ShardStore.js.map +0 -1
- package/DiscordGateway/Sharder.d.ts +0 -13
- package/DiscordGateway/Sharder.d.ts.map +0 -1
- package/DiscordGateway/Sharder.js +0 -73
- package/DiscordGateway/Sharder.js.map +0 -1
- package/DiscordGateway.d.ts +0 -32
- package/DiscordGateway.d.ts.map +0 -1
- package/DiscordGateway.js +0 -28
- package/DiscordGateway.js.map +0 -1
- package/DiscordREST/Generated.d.ts +0 -5399
- package/DiscordREST/Generated.d.ts.map +0 -1
- package/DiscordREST/Generated.js +0 -2405
- package/DiscordREST/Generated.js.map +0 -1
- package/DiscordREST/utils.d.ts +0 -14
- package/DiscordREST/utils.d.ts.map +0 -1
- package/DiscordREST/utils.js +0 -31
- package/DiscordREST/utils.js.map +0 -1
- package/DiscordREST.d.ts +0 -23
- package/DiscordREST.d.ts.map +0 -1
- package/DiscordREST.js +0 -132
- package/DiscordREST.js.map +0 -1
- package/Helpers/flags.d.ts +0 -28
- package/Helpers/flags.d.ts.map +0 -1
- package/Helpers/flags.js +0 -48
- package/Helpers/flags.js.map +0 -1
- package/Helpers/intents.d.ts +0 -25
- package/Helpers/intents.d.ts.map +0 -1
- package/Helpers/intents.js +0 -34
- package/Helpers/intents.js.map +0 -1
- package/Helpers/interactions.d.ts +0 -116
- package/Helpers/interactions.d.ts.map +0 -1
- package/Helpers/interactions.js +0 -143
- package/Helpers/interactions.js.map +0 -1
- package/Helpers/members.d.ts +0 -10
- package/Helpers/members.d.ts.map +0 -1
- package/Helpers/members.js +0 -17
- package/Helpers/members.js.map +0 -1
- package/Helpers/permissions.d.ts +0 -42
- package/Helpers/permissions.d.ts.map +0 -1
- package/Helpers/permissions.js +0 -97
- package/Helpers/permissions.js.map +0 -1
- package/Helpers/ui.d.ts +0 -105
- package/Helpers/ui.d.ts.map +0 -1
- package/Helpers/ui.js +0 -162
- package/Helpers/ui.js.map +0 -1
- package/Interactions/builder.d.ts +0 -48
- package/Interactions/builder.d.ts.map +0 -1
- package/Interactions/builder.js +0 -64
- package/Interactions/builder.js.map +0 -1
- package/Interactions/commandHelper.d.ts +0 -99
- package/Interactions/commandHelper.d.ts.map +0 -1
- package/Interactions/commandHelper.js +0 -53
- package/Interactions/commandHelper.js.map +0 -1
- package/Interactions/context.d.ts +0 -54
- package/Interactions/context.d.ts.map +0 -1
- package/Interactions/context.js +0 -42
- package/Interactions/context.js.map +0 -1
- package/Interactions/definitions.d.ts +0 -44
- package/Interactions/definitions.d.ts.map +0 -1
- package/Interactions/definitions.js +0 -67
- package/Interactions/definitions.js.map +0 -1
- package/Interactions/error.d.ts +0 -2
- package/Interactions/error.d.ts.map +0 -1
- package/Interactions/error.js +0 -8
- package/Interactions/error.js.map +0 -1
- package/Interactions/gateway.d.ts +0 -21
- package/Interactions/gateway.d.ts.map +0 -1
- package/Interactions/gateway.js +0 -90
- package/Interactions/gateway.js.map +0 -1
- package/Interactions/handlers.d.ts +0 -15
- package/Interactions/handlers.d.ts.map +0 -1
- package/Interactions/handlers.js +0 -72
- package/Interactions/handlers.js.map +0 -1
- package/Interactions/index.d.ts +0 -16
- package/Interactions/index.d.ts.map +0 -1
- package/Interactions/index.js +0 -94
- package/Interactions/index.js.map +0 -1
- package/Interactions/utils.d.ts +0 -61
- package/Interactions/utils.d.ts.map +0 -1
- package/Interactions/utils.js +0 -35
- package/Interactions/utils.js.map +0 -1
- package/Interactions/webhook.d.ts +0 -73
- package/Interactions/webhook.d.ts.map +0 -1
- package/Interactions/webhook.js +0 -89
- package/Interactions/webhook.js.map +0 -1
- package/RateLimit/memory.d.ts +0 -3
- package/RateLimit/memory.d.ts.map +0 -1
- package/RateLimit/memory.js +0 -47
- package/RateLimit/memory.js.map +0 -1
- package/RateLimit/utils.d.ts +0 -3
- package/RateLimit/utils.d.ts.map +0 -1
- package/RateLimit/utils.js +0 -25
- package/RateLimit/utils.js.map +0 -1
- package/RateLimit.d.ts +0 -30
- package/RateLimit.d.ts.map +0 -1
- package/RateLimit.js +0 -35
- package/RateLimit.js.map +0 -1
- package/gateway.d.ts +0 -19
- package/gateway.d.ts.map +0 -1
- package/gateway.js +0 -72
- package/gateway.js.map +0 -1
- package/index.d.ts +0 -18
- package/index.d.ts.map +0 -1
- package/index.js +0 -71
- package/index.js.map +0 -1
- package/mjs/Cache/driver.mjs +0 -3
- package/mjs/Cache/driver.mjs.map +0 -1
- package/mjs/Cache/memory.mjs +0 -48
- package/mjs/Cache/memory.mjs.map +0 -1
- package/mjs/Cache/memoryTTL.mjs +0 -119
- package/mjs/Cache/memoryTTL.mjs.map +0 -1
- package/mjs/Cache/prelude.mjs +0 -131
- package/mjs/Cache/prelude.mjs.map +0 -1
- package/mjs/Cache.mjs +0 -89
- package/mjs/Cache.mjs.map +0 -1
- package/mjs/DiscordConfig.mjs +0 -32
- package/mjs/DiscordConfig.mjs.map +0 -1
- package/mjs/DiscordGateway/DiscordWS.mjs +0 -66
- package/mjs/DiscordGateway/DiscordWS.mjs.map +0 -1
- package/mjs/DiscordGateway/Messaging.mjs +0 -33
- package/mjs/DiscordGateway/Messaging.mjs.map +0 -1
- package/mjs/DiscordGateway/Shard/StateStore.mjs +0 -40
- package/mjs/DiscordGateway/Shard/StateStore.mjs.map +0 -1
- package/mjs/DiscordGateway/Shard/heartbeats.mjs +0 -20
- package/mjs/DiscordGateway/Shard/heartbeats.mjs.map +0 -1
- package/mjs/DiscordGateway/Shard/identify.mjs +0 -30
- package/mjs/DiscordGateway/Shard/identify.mjs.map +0 -1
- package/mjs/DiscordGateway/Shard/sendEvents.mjs +0 -26
- package/mjs/DiscordGateway/Shard/sendEvents.mjs.map +0 -1
- package/mjs/DiscordGateway/Shard/utils.mjs +0 -3
- package/mjs/DiscordGateway/Shard/utils.mjs.map +0 -1
- package/mjs/DiscordGateway/Shard.mjs +0 -142
- package/mjs/DiscordGateway/Shard.mjs.map +0 -1
- package/mjs/DiscordGateway/ShardStore.mjs +0 -24
- package/mjs/DiscordGateway/ShardStore.mjs.map +0 -1
- package/mjs/DiscordGateway/Sharder.mjs +0 -66
- package/mjs/DiscordGateway/Sharder.mjs.map +0 -1
- package/mjs/DiscordGateway.mjs +0 -21
- package/mjs/DiscordGateway.mjs.map +0 -1
- package/mjs/DiscordREST/Generated.mjs +0 -2396
- package/mjs/DiscordREST/Generated.mjs.map +0 -1
- package/mjs/DiscordREST/utils.mjs +0 -20
- package/mjs/DiscordREST/utils.mjs.map +0 -1
- package/mjs/DiscordREST.mjs +0 -124
- package/mjs/DiscordREST.mjs.map +0 -1
- package/mjs/Helpers/flags.mjs +0 -36
- package/mjs/Helpers/flags.mjs.map +0 -1
- package/mjs/Helpers/intents.mjs +0 -27
- package/mjs/Helpers/intents.mjs.map +0 -1
- package/mjs/Helpers/interactions.mjs +0 -115
- package/mjs/Helpers/interactions.mjs.map +0 -1
- package/mjs/Helpers/members.mjs +0 -9
- package/mjs/Helpers/members.mjs.map +0 -1
- package/mjs/Helpers/permissions.mjs +0 -84
- package/mjs/Helpers/permissions.mjs.map +0 -1
- package/mjs/Helpers/ui.mjs +0 -137
- package/mjs/Helpers/ui.mjs.map +0 -1
- package/mjs/Interactions/builder.mjs +0 -56
- package/mjs/Interactions/builder.mjs.map +0 -1
- package/mjs/Interactions/commandHelper.mjs +0 -45
- package/mjs/Interactions/commandHelper.mjs.map +0 -1
- package/mjs/Interactions/context.mjs +0 -29
- package/mjs/Interactions/context.mjs.map +0 -1
- package/mjs/Interactions/definitions.mjs +0 -51
- package/mjs/Interactions/definitions.mjs.map +0 -1
- package/mjs/Interactions/error.mjs +0 -2
- package/mjs/Interactions/error.mjs.map +0 -1
- package/mjs/Interactions/gateway.mjs +0 -81
- package/mjs/Interactions/gateway.mjs.map +0 -1
- package/mjs/Interactions/handlers.mjs +0 -63
- package/mjs/Interactions/handlers.mjs.map +0 -1
- package/mjs/Interactions/index.mjs +0 -11
- package/mjs/Interactions/index.mjs.map +0 -1
- package/mjs/Interactions/utils.mjs +0 -26
- package/mjs/Interactions/utils.mjs.map +0 -1
- package/mjs/Interactions/webhook.mjs +0 -76
- package/mjs/Interactions/webhook.mjs.map +0 -1
- package/mjs/RateLimit/memory.mjs +0 -39
- package/mjs/RateLimit/memory.mjs.map +0 -1
- package/mjs/RateLimit/utils.mjs +0 -18
- package/mjs/RateLimit/utils.mjs.map +0 -1
- package/mjs/RateLimit.mjs +0 -28
- package/mjs/RateLimit.mjs.map +0 -1
- package/mjs/gateway.mjs +0 -19
- package/mjs/gateway.mjs.map +0 -1
- package/mjs/index.mjs +0 -18
- package/mjs/index.mjs.map +0 -1
- package/mjs/types.mjs +0 -356
- package/mjs/types.mjs.map +0 -1
- package/mjs/utils/Effect.mjs +0 -18
- package/mjs/utils/Effect.mjs.map +0 -1
- package/mjs/version.mjs +0 -2
- package/mjs/version.mjs.map +0 -1
- package/mjs/webhooks.mjs +0 -6
- package/mjs/webhooks.mjs.map +0 -1
- package/src/version.ts +0 -1
- package/types.d.ts +0 -2457
- package/types.d.ts.map +0 -1
- package/types.js +0 -408
- package/types.js.map +0 -1
- package/utils/Effect.d.ts +0 -5
- package/utils/Effect.d.ts.map +0 -1
- package/utils/Effect.js +0 -27
- package/utils/Effect.js.map +0 -1
- package/version.d.ts +0 -2
- package/version.d.ts.map +0 -1
- package/version.js +0 -8
- package/version.js.map +0 -1
- package/webhooks.d.ts +0 -8
- package/webhooks.d.ts.map +0 -1
- package/webhooks.js +0 -55
- package/webhooks.js.map +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
import type * as HttpClient from "
|
|
3
|
-
import * as HttpClientError from "
|
|
4
|
-
import * as HttpClientRequest from "
|
|
5
|
-
import * as HttpClientResponse from "
|
|
1
|
+
// oxlint-disable no-shadow
|
|
2
|
+
import type * as HttpClient from "effect/unstable/http/HttpClient"
|
|
3
|
+
import * as HttpClientError from "effect/unstable/http/HttpClientError"
|
|
4
|
+
import * as HttpClientRequest from "effect/unstable/http/HttpClientRequest"
|
|
5
|
+
import * as HttpClientResponse from "effect/unstable/http/HttpClientResponse"
|
|
6
6
|
import * as Data from "effect/Data"
|
|
7
7
|
import * as Effect from "effect/Effect"
|
|
8
8
|
|
|
@@ -14,33 +14,33 @@ export type Int53Type = number
|
|
|
14
14
|
|
|
15
15
|
export interface UserAvatarDecorationResponse {
|
|
16
16
|
readonly asset: string
|
|
17
|
-
readonly sku_id
|
|
17
|
+
readonly sku_id: SnowflakeType | null
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
export type NameplatePalette = string
|
|
21
21
|
|
|
22
22
|
export interface UserNameplateResponse {
|
|
23
|
-
readonly sku_id
|
|
23
|
+
readonly sku_id: SnowflakeType | null
|
|
24
24
|
readonly asset: string
|
|
25
25
|
readonly label: string
|
|
26
26
|
readonly palette: NameplatePalette
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
export interface UserCollectiblesResponse {
|
|
30
|
-
readonly nameplate
|
|
30
|
+
readonly nameplate: UserNameplateResponse | null
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
export interface UserPrimaryGuildResponse {
|
|
34
|
-
readonly identity_guild_id
|
|
35
|
-
readonly identity_enabled
|
|
36
|
-
readonly tag
|
|
37
|
-
readonly badge
|
|
34
|
+
readonly identity_guild_id: SnowflakeType | null
|
|
35
|
+
readonly identity_enabled: boolean | null
|
|
36
|
+
readonly tag: string | null
|
|
37
|
+
readonly badge: string | null
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
export interface UserResponse {
|
|
41
41
|
readonly id: SnowflakeType
|
|
42
42
|
readonly username: string
|
|
43
|
-
readonly avatar
|
|
43
|
+
readonly avatar: string | null
|
|
44
44
|
readonly discriminator: string
|
|
45
45
|
readonly public_flags: number
|
|
46
46
|
readonly flags: Int53Type
|
|
@@ -48,13 +48,13 @@ export interface UserResponse {
|
|
|
48
48
|
readonly system?: boolean | undefined
|
|
49
49
|
readonly banner?: string | null | undefined
|
|
50
50
|
readonly accent_color?: number | null | undefined
|
|
51
|
-
readonly global_name
|
|
51
|
+
readonly global_name: string | null
|
|
52
52
|
readonly avatar_decoration_data?:
|
|
53
53
|
| UserAvatarDecorationResponse
|
|
54
54
|
| null
|
|
55
55
|
| undefined
|
|
56
56
|
readonly collectibles?: UserCollectiblesResponse | null | undefined
|
|
57
|
-
readonly primary_guild
|
|
57
|
+
readonly primary_guild: UserPrimaryGuildResponse | null
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
export const OAuth2Scopes = {
|
|
@@ -237,7 +237,7 @@ export interface TeamMemberResponse {
|
|
|
237
237
|
|
|
238
238
|
export interface TeamResponse {
|
|
239
239
|
readonly id: SnowflakeType
|
|
240
|
-
readonly icon
|
|
240
|
+
readonly icon: string | null
|
|
241
241
|
readonly name: string
|
|
242
242
|
readonly owner_user_id: SnowflakeType
|
|
243
243
|
readonly members: ReadonlyArray<TeamMemberResponse>
|
|
@@ -246,9 +246,9 @@ export interface TeamResponse {
|
|
|
246
246
|
export interface PrivateApplicationResponse {
|
|
247
247
|
readonly id: SnowflakeType
|
|
248
248
|
readonly name: string
|
|
249
|
-
readonly icon
|
|
249
|
+
readonly icon: string | null
|
|
250
250
|
readonly description: string
|
|
251
|
-
readonly type
|
|
251
|
+
readonly type: ApplicationTypes | null
|
|
252
252
|
readonly cover_image?: string | undefined
|
|
253
253
|
readonly primary_sku_id?: SnowflakeType | undefined
|
|
254
254
|
readonly bot?: UserResponse | undefined
|
|
@@ -267,18 +267,18 @@ export interface PrivateApplicationResponse {
|
|
|
267
267
|
readonly max_participants?: number | null | undefined
|
|
268
268
|
readonly tags?: ReadonlyArray<string> | undefined
|
|
269
269
|
readonly redirect_uris: ReadonlyArray<string>
|
|
270
|
-
readonly interactions_endpoint_url
|
|
271
|
-
readonly role_connections_verification_url
|
|
270
|
+
readonly interactions_endpoint_url: string | null
|
|
271
|
+
readonly role_connections_verification_url: string | null
|
|
272
272
|
readonly owner: UserResponse
|
|
273
|
-
readonly approximate_guild_count
|
|
273
|
+
readonly approximate_guild_count: number | null
|
|
274
274
|
readonly approximate_user_install_count: number
|
|
275
275
|
readonly approximate_user_authorization_count: number
|
|
276
276
|
readonly explicit_content_filter: ApplicationExplicitContentFilterTypes
|
|
277
|
-
readonly team
|
|
277
|
+
readonly team: TeamResponse | null
|
|
278
278
|
}
|
|
279
279
|
|
|
280
280
|
/**
|
|
281
|
-
*
|
|
281
|
+
* Ratelimit error object returned by the Discord API
|
|
282
282
|
*/
|
|
283
283
|
export interface RatelimitedResponse {
|
|
284
284
|
/**
|
|
@@ -323,7 +323,7 @@ export interface InnerErrors {
|
|
|
323
323
|
export type ErrorDetails = Record<string, unknown> | InnerErrors
|
|
324
324
|
|
|
325
325
|
/**
|
|
326
|
-
*
|
|
326
|
+
* Errors object returned by the Discord API
|
|
327
327
|
*/
|
|
328
328
|
export interface ErrorResponse {
|
|
329
329
|
readonly errors?: ErrorDetails | undefined
|
|
@@ -380,6 +380,10 @@ export const EmbeddedActivityLocationKind = {
|
|
|
380
380
|
* private channel
|
|
381
381
|
*/
|
|
382
382
|
PRIVATE_CHANNEL: "pc",
|
|
383
|
+
/**
|
|
384
|
+
* party
|
|
385
|
+
*/
|
|
386
|
+
PARTY: "party",
|
|
383
387
|
} as const
|
|
384
388
|
export type EmbeddedActivityLocationKind =
|
|
385
389
|
(typeof EmbeddedActivityLocationKind)[keyof typeof EmbeddedActivityLocationKind]
|
|
@@ -412,9 +416,9 @@ export interface UploadApplicationAttachmentRequest {
|
|
|
412
416
|
export interface ApplicationResponse {
|
|
413
417
|
readonly id: SnowflakeType
|
|
414
418
|
readonly name: string
|
|
415
|
-
readonly icon
|
|
419
|
+
readonly icon: string | null
|
|
416
420
|
readonly description: string
|
|
417
|
-
readonly type
|
|
421
|
+
readonly type: ApplicationTypes | null
|
|
418
422
|
readonly cover_image?: string | undefined
|
|
419
423
|
readonly primary_sku_id?: SnowflakeType | undefined
|
|
420
424
|
readonly bot?: UserResponse | undefined
|
|
@@ -827,7 +831,7 @@ export interface ApplicationCommandResponse {
|
|
|
827
831
|
readonly id: SnowflakeType
|
|
828
832
|
readonly application_id: SnowflakeType
|
|
829
833
|
readonly version: SnowflakeType
|
|
830
|
-
readonly default_member_permissions
|
|
834
|
+
readonly default_member_permissions: string | null
|
|
831
835
|
readonly type: ApplicationCommandType
|
|
832
836
|
readonly name: string
|
|
833
837
|
readonly name_localized?: string | undefined
|
|
@@ -1241,6 +1245,7 @@ export interface EntitlementResponse {
|
|
|
1241
1245
|
| undefined
|
|
1242
1246
|
readonly consumed?: boolean | null | undefined
|
|
1243
1247
|
readonly gifter_user_id?: SnowflakeType | null | undefined
|
|
1248
|
+
readonly parent_id?: SnowflakeType | null | undefined
|
|
1244
1249
|
}
|
|
1245
1250
|
|
|
1246
1251
|
export type GetEntitlements200 = ReadonlyArray<null | EntitlementResponse>
|
|
@@ -1434,8 +1439,8 @@ export interface ForumTagResponse {
|
|
|
1434
1439
|
readonly id: SnowflakeType
|
|
1435
1440
|
readonly name: string
|
|
1436
1441
|
readonly moderated: boolean
|
|
1437
|
-
readonly emoji_id
|
|
1438
|
-
readonly emoji_name
|
|
1442
|
+
readonly emoji_id: SnowflakeType | null
|
|
1443
|
+
readonly emoji_name: string | null
|
|
1439
1444
|
}
|
|
1440
1445
|
|
|
1441
1446
|
export interface DefaultReactionEmojiResponse {
|
|
@@ -1536,8 +1541,8 @@ export interface PrivateGroupChannelResponse {
|
|
|
1536
1541
|
readonly flags: number
|
|
1537
1542
|
readonly last_pin_timestamp?: string | null | undefined
|
|
1538
1543
|
readonly recipients: ReadonlyArray<UserResponse>
|
|
1539
|
-
readonly name
|
|
1540
|
-
readonly icon
|
|
1544
|
+
readonly name: string | null
|
|
1545
|
+
readonly icon: string | null
|
|
1541
1546
|
readonly owner_id: SnowflakeType
|
|
1542
1547
|
readonly managed?: boolean | undefined
|
|
1543
1548
|
readonly application_id?: SnowflakeType | undefined
|
|
@@ -1545,7 +1550,7 @@ export interface PrivateGroupChannelResponse {
|
|
|
1545
1550
|
|
|
1546
1551
|
export interface ThreadMetadataResponse {
|
|
1547
1552
|
readonly archived: boolean
|
|
1548
|
-
readonly archive_timestamp
|
|
1553
|
+
readonly archive_timestamp: string | null
|
|
1549
1554
|
readonly auto_archive_duration: ThreadAutoArchiveDuration
|
|
1550
1555
|
readonly locked: boolean
|
|
1551
1556
|
readonly create_timestamp?: string | undefined
|
|
@@ -1553,18 +1558,18 @@ export interface ThreadMetadataResponse {
|
|
|
1553
1558
|
}
|
|
1554
1559
|
|
|
1555
1560
|
export interface GuildMemberResponse {
|
|
1556
|
-
readonly avatar
|
|
1561
|
+
readonly avatar: string | null
|
|
1557
1562
|
readonly avatar_decoration_data?:
|
|
1558
1563
|
| UserAvatarDecorationResponse
|
|
1559
1564
|
| null
|
|
1560
1565
|
| undefined
|
|
1561
|
-
readonly banner
|
|
1562
|
-
readonly communication_disabled_until
|
|
1566
|
+
readonly banner: string | null
|
|
1567
|
+
readonly communication_disabled_until: string | null
|
|
1563
1568
|
readonly flags: number
|
|
1564
1569
|
readonly joined_at: string
|
|
1565
|
-
readonly nick
|
|
1570
|
+
readonly nick: string | null
|
|
1566
1571
|
readonly pending: boolean
|
|
1567
|
-
readonly premium_since
|
|
1572
|
+
readonly premium_since: string | null
|
|
1568
1573
|
readonly roles: ReadonlyArray<SnowflakeType>
|
|
1569
1574
|
readonly collectibles?: UserCollectiblesResponse | null | undefined
|
|
1570
1575
|
readonly user: UserResponse
|
|
@@ -1730,7 +1735,7 @@ export interface InviteChannelRecipientResponse {
|
|
|
1730
1735
|
export interface InviteChannelResponse {
|
|
1731
1736
|
readonly id: SnowflakeType
|
|
1732
1737
|
readonly type: ChannelTypes
|
|
1733
|
-
readonly name
|
|
1738
|
+
readonly name: string | null
|
|
1734
1739
|
readonly icon?: string | undefined
|
|
1735
1740
|
readonly recipients?:
|
|
1736
1741
|
| ReadonlyArray<InviteChannelRecipientResponse>
|
|
@@ -1743,9 +1748,9 @@ export interface FriendInviteResponse {
|
|
|
1743
1748
|
readonly inviter?: UserResponse | undefined
|
|
1744
1749
|
readonly max_age?: number | undefined
|
|
1745
1750
|
readonly created_at?: string | undefined
|
|
1746
|
-
readonly expires_at
|
|
1751
|
+
readonly expires_at: string | null
|
|
1747
1752
|
readonly friends_count?: number | undefined
|
|
1748
|
-
readonly channel
|
|
1753
|
+
readonly channel: InviteChannelResponse | null
|
|
1749
1754
|
readonly is_contact?: boolean | undefined
|
|
1750
1755
|
readonly uses?: number | undefined
|
|
1751
1756
|
readonly max_uses?: number | undefined
|
|
@@ -1758,7 +1763,7 @@ export interface GroupDMInviteResponse {
|
|
|
1758
1763
|
readonly inviter?: UserResponse | undefined
|
|
1759
1764
|
readonly max_age?: number | undefined
|
|
1760
1765
|
readonly created_at?: string | undefined
|
|
1761
|
-
readonly expires_at
|
|
1766
|
+
readonly expires_at: string | null
|
|
1762
1767
|
readonly channel: InviteChannelResponse
|
|
1763
1768
|
readonly approximate_member_count?: number | null | undefined
|
|
1764
1769
|
}
|
|
@@ -1913,15 +1918,15 @@ export type GuildNSFWContentLevel =
|
|
|
1913
1918
|
export interface InviteGuildResponse {
|
|
1914
1919
|
readonly id: SnowflakeType
|
|
1915
1920
|
readonly name: string
|
|
1916
|
-
readonly splash
|
|
1917
|
-
readonly banner
|
|
1918
|
-
readonly description
|
|
1919
|
-
readonly icon
|
|
1921
|
+
readonly splash: string | null
|
|
1922
|
+
readonly banner: string | null
|
|
1923
|
+
readonly description: string | null
|
|
1924
|
+
readonly icon: string | null
|
|
1920
1925
|
readonly features: ReadonlyArray<GuildFeatures>
|
|
1921
|
-
readonly verification_level
|
|
1922
|
-
readonly vanity_url_code
|
|
1923
|
-
readonly nsfw_level
|
|
1924
|
-
readonly nsfw
|
|
1926
|
+
readonly verification_level: VerificationLevels | null
|
|
1927
|
+
readonly vanity_url_code: string | null
|
|
1928
|
+
readonly nsfw_level: GuildNSFWContentLevel | null
|
|
1929
|
+
readonly nsfw: boolean | null
|
|
1925
1930
|
readonly premium_subscription_count: number
|
|
1926
1931
|
}
|
|
1927
1932
|
|
|
@@ -1936,9 +1941,9 @@ export type InviteTargetTypes =
|
|
|
1936
1941
|
export interface InviteApplicationResponse {
|
|
1937
1942
|
readonly id: SnowflakeType
|
|
1938
1943
|
readonly name: string
|
|
1939
|
-
readonly icon
|
|
1944
|
+
readonly icon: string | null
|
|
1940
1945
|
readonly description: string
|
|
1941
|
-
readonly type
|
|
1946
|
+
readonly type: ApplicationTypes | null
|
|
1942
1947
|
readonly cover_image?: string | undefined
|
|
1943
1948
|
readonly primary_sku_id?: SnowflakeType | undefined
|
|
1944
1949
|
readonly bot?: UserResponse | undefined
|
|
@@ -1989,28 +1994,45 @@ export interface ScheduledEventResponse {
|
|
|
1989
1994
|
readonly id: SnowflakeType
|
|
1990
1995
|
readonly guild_id: SnowflakeType
|
|
1991
1996
|
readonly name: string
|
|
1992
|
-
readonly description
|
|
1993
|
-
readonly channel_id
|
|
1994
|
-
readonly creator_id
|
|
1997
|
+
readonly description: string | null
|
|
1998
|
+
readonly channel_id: SnowflakeType | null
|
|
1999
|
+
readonly creator_id: SnowflakeType | null
|
|
1995
2000
|
readonly creator?: UserResponse | undefined
|
|
1996
|
-
readonly image
|
|
2001
|
+
readonly image: string | null
|
|
1997
2002
|
readonly scheduled_start_time: string
|
|
1998
|
-
readonly scheduled_end_time
|
|
2003
|
+
readonly scheduled_end_time: string | null
|
|
1999
2004
|
readonly status: GuildScheduledEventStatuses
|
|
2000
2005
|
readonly entity_type: GuildScheduledEventEntityTypes
|
|
2001
|
-
readonly entity_id
|
|
2006
|
+
readonly entity_id: SnowflakeType | null
|
|
2002
2007
|
readonly user_count?: number | undefined
|
|
2003
2008
|
readonly privacy_level: GuildScheduledEventPrivacyLevels
|
|
2004
2009
|
readonly user_rsvp?: ScheduledEventUserResponse | null | undefined
|
|
2005
2010
|
}
|
|
2006
2011
|
|
|
2012
|
+
export interface GuildRoleColorsResponse {
|
|
2013
|
+
readonly primary_color: number
|
|
2014
|
+
readonly secondary_color: number | null
|
|
2015
|
+
readonly tertiary_color: number | null
|
|
2016
|
+
}
|
|
2017
|
+
|
|
2018
|
+
export interface InviteGuildRoleResponse {
|
|
2019
|
+
readonly id: SnowflakeType
|
|
2020
|
+
readonly name: string
|
|
2021
|
+
readonly position: number
|
|
2022
|
+
readonly color: number
|
|
2023
|
+
readonly colors: GuildRoleColorsResponse
|
|
2024
|
+
readonly icon: string | null
|
|
2025
|
+
readonly unicode_emoji: string | null
|
|
2026
|
+
readonly permissions?: string | undefined
|
|
2027
|
+
}
|
|
2028
|
+
|
|
2007
2029
|
export interface GuildInviteResponse {
|
|
2008
2030
|
readonly type: 0
|
|
2009
2031
|
readonly code: string
|
|
2010
2032
|
readonly inviter?: UserResponse | undefined
|
|
2011
2033
|
readonly max_age?: number | undefined
|
|
2012
2034
|
readonly created_at?: string | undefined
|
|
2013
|
-
readonly expires_at
|
|
2035
|
+
readonly expires_at: string | null
|
|
2014
2036
|
readonly is_contact?: boolean | undefined
|
|
2015
2037
|
readonly flags?: number | undefined
|
|
2016
2038
|
readonly guild: InviteGuildResponse
|
|
@@ -2026,6 +2048,7 @@ export interface GuildInviteResponse {
|
|
|
2026
2048
|
readonly approximate_member_count?: number | null | undefined
|
|
2027
2049
|
readonly approximate_presence_count?: number | null | undefined
|
|
2028
2050
|
readonly is_nickname_changeable?: boolean | undefined
|
|
2051
|
+
readonly roles?: ReadonlyArray<InviteGuildRoleResponse> | null | undefined
|
|
2029
2052
|
}
|
|
2030
2053
|
|
|
2031
2054
|
export type ListChannelInvites200 = ReadonlyArray<
|
|
@@ -2253,6 +2276,22 @@ export const MessageComponentTypes = {
|
|
|
2253
2276
|
* Label component
|
|
2254
2277
|
*/
|
|
2255
2278
|
LABEL: 18,
|
|
2279
|
+
/**
|
|
2280
|
+
* File upload component
|
|
2281
|
+
*/
|
|
2282
|
+
FILE_UPLOAD: 19,
|
|
2283
|
+
/**
|
|
2284
|
+
* Radio group component
|
|
2285
|
+
*/
|
|
2286
|
+
RADIO_GROUP: 21,
|
|
2287
|
+
/**
|
|
2288
|
+
* Checkbox group component
|
|
2289
|
+
*/
|
|
2290
|
+
CHECKBOX_GROUP: 22,
|
|
2291
|
+
/**
|
|
2292
|
+
* Checkbox component
|
|
2293
|
+
*/
|
|
2294
|
+
CHECKBOX: 23,
|
|
2256
2295
|
} as const
|
|
2257
2296
|
export type MessageComponentTypes =
|
|
2258
2297
|
(typeof MessageComponentTypes)[keyof typeof MessageComponentTypes]
|
|
@@ -2304,8 +2343,8 @@ export interface ChannelSelectComponentResponse {
|
|
|
2304
2343
|
readonly id: number
|
|
2305
2344
|
readonly custom_id: string
|
|
2306
2345
|
readonly placeholder?: string | undefined
|
|
2307
|
-
readonly min_values
|
|
2308
|
-
readonly max_values
|
|
2346
|
+
readonly min_values: number | null
|
|
2347
|
+
readonly max_values: number | null
|
|
2309
2348
|
readonly disabled?: boolean | undefined
|
|
2310
2349
|
readonly channel_types?: ReadonlyArray<ChannelTypes> | undefined
|
|
2311
2350
|
readonly default_values?:
|
|
@@ -2328,8 +2367,8 @@ export interface MentionableSelectComponentResponse {
|
|
|
2328
2367
|
readonly id: number
|
|
2329
2368
|
readonly custom_id: string
|
|
2330
2369
|
readonly placeholder?: string | undefined
|
|
2331
|
-
readonly min_values
|
|
2332
|
-
readonly max_values
|
|
2370
|
+
readonly min_values: number | null
|
|
2371
|
+
readonly max_values: number | null
|
|
2333
2372
|
readonly disabled?: boolean | undefined
|
|
2334
2373
|
readonly default_values?:
|
|
2335
2374
|
| ReadonlyArray<
|
|
@@ -2343,8 +2382,8 @@ export interface RoleSelectComponentResponse {
|
|
|
2343
2382
|
readonly id: number
|
|
2344
2383
|
readonly custom_id: string
|
|
2345
2384
|
readonly placeholder?: string | undefined
|
|
2346
|
-
readonly min_values
|
|
2347
|
-
readonly max_values
|
|
2385
|
+
readonly min_values: number | null
|
|
2386
|
+
readonly max_values: number | null
|
|
2348
2387
|
readonly disabled?: boolean | undefined
|
|
2349
2388
|
readonly default_values?:
|
|
2350
2389
|
| ReadonlyArray<RoleSelectDefaultValueResponse>
|
|
@@ -2364,8 +2403,8 @@ export interface StringSelectComponentResponse {
|
|
|
2364
2403
|
readonly id: number
|
|
2365
2404
|
readonly custom_id: string
|
|
2366
2405
|
readonly placeholder?: string | undefined
|
|
2367
|
-
readonly min_values
|
|
2368
|
-
readonly max_values
|
|
2406
|
+
readonly min_values: number | null
|
|
2407
|
+
readonly max_values: number | null
|
|
2369
2408
|
readonly disabled?: boolean | undefined
|
|
2370
2409
|
readonly options: ReadonlyArray<StringSelectOptionResponse>
|
|
2371
2410
|
}
|
|
@@ -2388,12 +2427,12 @@ export interface TextInputComponentResponse {
|
|
|
2388
2427
|
readonly id: number
|
|
2389
2428
|
readonly custom_id: string
|
|
2390
2429
|
readonly style: TextInputStyleTypes
|
|
2391
|
-
readonly label
|
|
2430
|
+
readonly label: string | null
|
|
2392
2431
|
readonly value?: string | undefined
|
|
2393
2432
|
readonly placeholder?: string | undefined
|
|
2394
2433
|
readonly required?: boolean | undefined
|
|
2395
|
-
readonly min_length
|
|
2396
|
-
readonly max_length
|
|
2434
|
+
readonly min_length: number | null
|
|
2435
|
+
readonly max_length: number | null
|
|
2397
2436
|
}
|
|
2398
2437
|
|
|
2399
2438
|
export interface UserSelectComponentResponse {
|
|
@@ -2401,8 +2440,8 @@ export interface UserSelectComponentResponse {
|
|
|
2401
2440
|
readonly id: number
|
|
2402
2441
|
readonly custom_id: string
|
|
2403
2442
|
readonly placeholder?: string | undefined
|
|
2404
|
-
readonly min_values
|
|
2405
|
-
readonly max_values
|
|
2443
|
+
readonly min_values: number | null
|
|
2444
|
+
readonly max_values: number | null
|
|
2406
2445
|
readonly disabled?: boolean | undefined
|
|
2407
2446
|
readonly default_values?:
|
|
2408
2447
|
| ReadonlyArray<UserSelectDefaultValueResponse>
|
|
@@ -2437,14 +2476,14 @@ export interface FileComponentResponse {
|
|
|
2437
2476
|
readonly type: 13
|
|
2438
2477
|
readonly id: number
|
|
2439
2478
|
readonly file: UnfurledMediaResponse
|
|
2440
|
-
readonly name
|
|
2441
|
-
readonly size
|
|
2479
|
+
readonly name: string | null
|
|
2480
|
+
readonly size: number | null
|
|
2442
2481
|
readonly spoiler: boolean
|
|
2443
2482
|
}
|
|
2444
2483
|
|
|
2445
2484
|
export interface MediaGalleryItemResponse {
|
|
2446
2485
|
readonly media: UnfurledMediaResponse
|
|
2447
|
-
readonly description
|
|
2486
|
+
readonly description: string | null
|
|
2448
2487
|
readonly spoiler: boolean
|
|
2449
2488
|
}
|
|
2450
2489
|
|
|
@@ -2464,7 +2503,7 @@ export interface ThumbnailComponentResponse {
|
|
|
2464
2503
|
readonly type: 11
|
|
2465
2504
|
readonly id: number
|
|
2466
2505
|
readonly media: UnfurledMediaResponse
|
|
2467
|
-
readonly description
|
|
2506
|
+
readonly description: string | null
|
|
2468
2507
|
readonly spoiler: boolean
|
|
2469
2508
|
}
|
|
2470
2509
|
|
|
@@ -2498,7 +2537,7 @@ export interface SeparatorComponentResponse {
|
|
|
2498
2537
|
export interface ContainerComponentResponse {
|
|
2499
2538
|
readonly type: 17
|
|
2500
2539
|
readonly id: number
|
|
2501
|
-
readonly accent_color
|
|
2540
|
+
readonly accent_color: number | null
|
|
2502
2541
|
readonly components: ReadonlyArray<
|
|
2503
2542
|
| ActionRowComponentResponse
|
|
2504
2543
|
| FileComponentResponse
|
|
@@ -2536,8 +2575,8 @@ export interface GuildStickerResponse {
|
|
|
2536
2575
|
readonly name: string
|
|
2537
2576
|
readonly tags: string
|
|
2538
2577
|
readonly type: 2
|
|
2539
|
-
readonly format_type
|
|
2540
|
-
readonly description
|
|
2578
|
+
readonly format_type: StickerFormatTypes | null
|
|
2579
|
+
readonly description: string | null
|
|
2541
2580
|
readonly available: boolean
|
|
2542
2581
|
readonly guild_id: SnowflakeType
|
|
2543
2582
|
readonly user?: UserResponse | undefined
|
|
@@ -2548,8 +2587,8 @@ export interface StandardStickerResponse {
|
|
|
2548
2587
|
readonly name: string
|
|
2549
2588
|
readonly tags: string
|
|
2550
2589
|
readonly type: 1
|
|
2551
|
-
readonly format_type
|
|
2552
|
-
readonly description
|
|
2590
|
+
readonly format_type: StickerFormatTypes | null
|
|
2591
|
+
readonly description: string | null
|
|
2553
2592
|
readonly pack_id: SnowflakeType
|
|
2554
2593
|
readonly sort_value: number
|
|
2555
2594
|
}
|
|
@@ -2570,9 +2609,9 @@ export interface MessageActivityResponse {}
|
|
|
2570
2609
|
export interface BasicApplicationResponse {
|
|
2571
2610
|
readonly id: SnowflakeType
|
|
2572
2611
|
readonly name: string
|
|
2573
|
-
readonly icon
|
|
2612
|
+
readonly icon: string | null
|
|
2574
2613
|
readonly description: string
|
|
2575
|
-
readonly type
|
|
2614
|
+
readonly type: ApplicationTypes | null
|
|
2576
2615
|
readonly cover_image?: string | undefined
|
|
2577
2616
|
readonly primary_sku_id?: SnowflakeType | undefined
|
|
2578
2617
|
readonly bot?: UserResponse | undefined
|
|
@@ -2599,6 +2638,10 @@ export const InteractionTypes = {
|
|
|
2599
2638
|
* Sent when a user submits a modal previously sent by your application
|
|
2600
2639
|
*/
|
|
2601
2640
|
MODAL_SUBMIT: 5,
|
|
2641
|
+
/**
|
|
2642
|
+
* Sent when Discord is checking if a user can purchase a Social Layer SKU
|
|
2643
|
+
*/
|
|
2644
|
+
SOCIAL_LAYER_SKU_PURCHASE_ELIGIBILITY: 6,
|
|
2602
2645
|
} as const
|
|
2603
2646
|
export type InteractionTypes =
|
|
2604
2647
|
(typeof InteractionTypes)[keyof typeof InteractionTypes]
|
|
@@ -2654,8 +2697,8 @@ export interface ResolvedObjectsResponse {
|
|
|
2654
2697
|
}
|
|
2655
2698
|
|
|
2656
2699
|
export interface MessageReactionEmojiResponse {
|
|
2657
|
-
readonly id
|
|
2658
|
-
readonly name
|
|
2700
|
+
readonly id: SnowflakeType | null
|
|
2701
|
+
readonly name: string | null
|
|
2659
2702
|
readonly animated?: boolean | undefined
|
|
2660
2703
|
}
|
|
2661
2704
|
|
|
@@ -2761,7 +2804,7 @@ export interface MinimalContentMessageResponse {
|
|
|
2761
2804
|
readonly attachments: ReadonlyArray<MessageAttachmentResponse>
|
|
2762
2805
|
readonly embeds: ReadonlyArray<MessageEmbedResponse>
|
|
2763
2806
|
readonly timestamp: string
|
|
2764
|
-
readonly edited_timestamp
|
|
2807
|
+
readonly edited_timestamp: string | null
|
|
2765
2808
|
readonly flags: number
|
|
2766
2809
|
readonly components: ReadonlyArray<
|
|
2767
2810
|
| ActionRowComponentResponse
|
|
@@ -2804,7 +2847,7 @@ export interface BasicMessageResponse {
|
|
|
2804
2847
|
readonly attachments: ReadonlyArray<MessageAttachmentResponse>
|
|
2805
2848
|
readonly embeds: ReadonlyArray<MessageEmbedResponse>
|
|
2806
2849
|
readonly timestamp: string
|
|
2807
|
-
readonly edited_timestamp
|
|
2850
|
+
readonly edited_timestamp: string | null
|
|
2808
2851
|
readonly flags: number
|
|
2809
2852
|
readonly components: ReadonlyArray<
|
|
2810
2853
|
| ActionRowComponentResponse
|
|
@@ -2863,7 +2906,7 @@ export interface MessageResponse {
|
|
|
2863
2906
|
readonly attachments: ReadonlyArray<MessageAttachmentResponse>
|
|
2864
2907
|
readonly embeds: ReadonlyArray<MessageEmbedResponse>
|
|
2865
2908
|
readonly timestamp: string
|
|
2866
|
-
readonly edited_timestamp
|
|
2909
|
+
readonly edited_timestamp: string | null
|
|
2867
2910
|
readonly flags: number
|
|
2868
2911
|
readonly components: ReadonlyArray<
|
|
2869
2912
|
| ActionRowComponentResponse
|
|
@@ -3259,8 +3302,6 @@ export interface CustomClientThemeShareRequest {
|
|
|
3259
3302
|
readonly base_theme?: MessageShareCustomUserThemeBaseTheme | null | undefined
|
|
3260
3303
|
}
|
|
3261
3304
|
|
|
3262
|
-
export interface ConfettiPotionCreateRequest {}
|
|
3263
|
-
|
|
3264
3305
|
export interface MessageReferenceRequest {
|
|
3265
3306
|
readonly guild_id?: SnowflakeType | null | undefined
|
|
3266
3307
|
readonly channel_id?: SnowflakeType | null | undefined
|
|
@@ -3296,7 +3337,6 @@ export interface MessageCreateRequest {
|
|
|
3296
3337
|
| CustomClientThemeShareRequest
|
|
3297
3338
|
| null
|
|
3298
3339
|
| undefined
|
|
3299
|
-
readonly confetti_potion?: ConfettiPotionCreateRequest | null | undefined
|
|
3300
3340
|
readonly message_reference?: MessageReferenceRequest | null | undefined
|
|
3301
3341
|
readonly nonce?: number | string | null | undefined
|
|
3302
3342
|
readonly enforce_nonce?: boolean | null | undefined
|
|
@@ -3442,7 +3482,6 @@ export interface BaseCreateMessageCreateRequest {
|
|
|
3442
3482
|
| CustomClientThemeShareRequest
|
|
3443
3483
|
| null
|
|
3444
3484
|
| undefined
|
|
3445
|
-
readonly confetti_potion?: ConfettiPotionCreateRequest | null | undefined
|
|
3446
3485
|
}
|
|
3447
3486
|
|
|
3448
3487
|
export interface CreateForumThreadRequest {
|
|
@@ -3567,9 +3606,9 @@ export const WebhookTypes = {
|
|
|
3567
3606
|
export type WebhookTypes = (typeof WebhookTypes)[keyof typeof WebhookTypes]
|
|
3568
3607
|
|
|
3569
3608
|
export interface ApplicationIncomingWebhookResponse {
|
|
3570
|
-
readonly application_id
|
|
3571
|
-
readonly avatar
|
|
3572
|
-
readonly channel_id
|
|
3609
|
+
readonly application_id: SnowflakeType | null
|
|
3610
|
+
readonly avatar: string | null
|
|
3611
|
+
readonly channel_id: SnowflakeType | null
|
|
3573
3612
|
readonly guild_id?: SnowflakeType | null | undefined
|
|
3574
3613
|
readonly id: SnowflakeType
|
|
3575
3614
|
readonly name: string
|
|
@@ -3579,7 +3618,7 @@ export interface ApplicationIncomingWebhookResponse {
|
|
|
3579
3618
|
|
|
3580
3619
|
export interface WebhookSourceGuildResponse {
|
|
3581
3620
|
readonly id: SnowflakeType
|
|
3582
|
-
readonly icon
|
|
3621
|
+
readonly icon: string | null
|
|
3583
3622
|
readonly name: string
|
|
3584
3623
|
}
|
|
3585
3624
|
|
|
@@ -3589,9 +3628,9 @@ export interface WebhookSourceChannelResponse {
|
|
|
3589
3628
|
}
|
|
3590
3629
|
|
|
3591
3630
|
export interface ChannelFollowerWebhookResponse {
|
|
3592
|
-
readonly application_id
|
|
3593
|
-
readonly avatar
|
|
3594
|
-
readonly channel_id
|
|
3631
|
+
readonly application_id: SnowflakeType | null
|
|
3632
|
+
readonly avatar: string | null
|
|
3633
|
+
readonly channel_id: SnowflakeType | null
|
|
3595
3634
|
readonly guild_id?: SnowflakeType | null | undefined
|
|
3596
3635
|
readonly id: SnowflakeType
|
|
3597
3636
|
readonly name: string
|
|
@@ -3602,9 +3641,9 @@ export interface ChannelFollowerWebhookResponse {
|
|
|
3602
3641
|
}
|
|
3603
3642
|
|
|
3604
3643
|
export interface GuildIncomingWebhookResponse {
|
|
3605
|
-
readonly application_id
|
|
3606
|
-
readonly avatar
|
|
3607
|
-
readonly channel_id
|
|
3644
|
+
readonly application_id: SnowflakeType | null
|
|
3645
|
+
readonly avatar: string | null
|
|
3646
|
+
readonly channel_id: SnowflakeType | null
|
|
3608
3647
|
readonly guild_id?: SnowflakeType | null | undefined
|
|
3609
3648
|
readonly id: SnowflakeType
|
|
3610
3649
|
readonly name: string
|
|
@@ -3824,8 +3863,8 @@ export type AfkTimeouts = (typeof AfkTimeouts)[keyof typeof AfkTimeouts]
|
|
|
3824
3863
|
|
|
3825
3864
|
export interface GuildTemplateRoleColorsResponse {
|
|
3826
3865
|
readonly primary_color: number
|
|
3827
|
-
readonly secondary_color
|
|
3828
|
-
readonly tertiary_color
|
|
3866
|
+
readonly secondary_color: number | null
|
|
3867
|
+
readonly tertiary_color: number | null
|
|
3829
3868
|
}
|
|
3830
3869
|
|
|
3831
3870
|
export interface GuildTemplateRoleResponse {
|
|
@@ -3833,67 +3872,58 @@ export interface GuildTemplateRoleResponse {
|
|
|
3833
3872
|
readonly name: string
|
|
3834
3873
|
readonly permissions: string
|
|
3835
3874
|
readonly color: number
|
|
3836
|
-
readonly colors
|
|
3875
|
+
readonly colors: GuildTemplateRoleColorsResponse | null
|
|
3837
3876
|
readonly hoist: boolean
|
|
3838
3877
|
readonly mentionable: boolean
|
|
3839
|
-
readonly icon
|
|
3840
|
-
readonly unicode_emoji
|
|
3878
|
+
readonly icon: string | null
|
|
3879
|
+
readonly unicode_emoji: string | null
|
|
3841
3880
|
}
|
|
3842
3881
|
|
|
3843
3882
|
export interface GuildTemplateChannelTags {
|
|
3844
|
-
readonly id
|
|
3883
|
+
readonly id: number | null
|
|
3845
3884
|
readonly name: string
|
|
3846
|
-
readonly emoji_id
|
|
3847
|
-
readonly emoji_name
|
|
3848
|
-
readonly moderated
|
|
3885
|
+
readonly emoji_id: SnowflakeType | null
|
|
3886
|
+
readonly emoji_name: string | null
|
|
3887
|
+
readonly moderated: boolean | null
|
|
3849
3888
|
}
|
|
3850
3889
|
|
|
3851
3890
|
export interface IconEmojiResponse {}
|
|
3852
3891
|
|
|
3853
3892
|
export interface GuildTemplateChannelResponse {
|
|
3854
|
-
readonly id
|
|
3893
|
+
readonly id: number | null
|
|
3855
3894
|
readonly type: 0 | 2 | 4 | 15
|
|
3856
|
-
readonly name
|
|
3857
|
-
readonly position
|
|
3858
|
-
readonly topic
|
|
3895
|
+
readonly name: string | null
|
|
3896
|
+
readonly position: number | null
|
|
3897
|
+
readonly topic: string | null
|
|
3859
3898
|
readonly bitrate: number
|
|
3860
3899
|
readonly user_limit: number
|
|
3861
3900
|
readonly nsfw: boolean
|
|
3862
3901
|
readonly rate_limit_per_user: number
|
|
3863
|
-
readonly parent_id
|
|
3864
|
-
readonly default_auto_archive_duration
|
|
3865
|
-
| ThreadAutoArchiveDuration
|
|
3866
|
-
| null
|
|
3867
|
-
| undefined
|
|
3902
|
+
readonly parent_id: SnowflakeType | null
|
|
3903
|
+
readonly default_auto_archive_duration: ThreadAutoArchiveDuration | null
|
|
3868
3904
|
readonly permission_overwrites: ReadonlyArray<null | ChannelPermissionOverwriteResponse>
|
|
3869
|
-
readonly available_tags
|
|
3870
|
-
| ReadonlyArray<GuildTemplateChannelTags>
|
|
3871
|
-
| null
|
|
3872
|
-
| undefined
|
|
3905
|
+
readonly available_tags: ReadonlyArray<GuildTemplateChannelTags> | null
|
|
3873
3906
|
readonly template: string
|
|
3874
|
-
readonly default_reaction_emoji
|
|
3875
|
-
|
|
3876
|
-
|
|
3877
|
-
|
|
3878
|
-
readonly
|
|
3879
|
-
readonly
|
|
3880
|
-
readonly
|
|
3881
|
-
readonly default_tag_setting?: ThreadSearchTagSetting | null | undefined
|
|
3882
|
-
readonly icon_emoji?: IconEmojiResponse | null | undefined
|
|
3883
|
-
readonly theme_color?: number | null | undefined
|
|
3907
|
+
readonly default_reaction_emoji: DefaultReactionEmojiResponse | null
|
|
3908
|
+
readonly default_thread_rate_limit_per_user: number | null
|
|
3909
|
+
readonly default_sort_order: ThreadSortOrder | null
|
|
3910
|
+
readonly default_forum_layout: ForumLayout | null
|
|
3911
|
+
readonly default_tag_setting: ThreadSearchTagSetting | null
|
|
3912
|
+
readonly icon_emoji: IconEmojiResponse | null
|
|
3913
|
+
readonly theme_color: number | null
|
|
3884
3914
|
}
|
|
3885
3915
|
|
|
3886
3916
|
export interface GuildTemplateSnapshotResponse {
|
|
3887
3917
|
readonly name: string
|
|
3888
|
-
readonly description
|
|
3889
|
-
readonly region
|
|
3918
|
+
readonly description: string | null
|
|
3919
|
+
readonly region: string | null
|
|
3890
3920
|
readonly verification_level: VerificationLevels
|
|
3891
3921
|
readonly default_message_notifications: UserNotificationSettings
|
|
3892
3922
|
readonly explicit_content_filter: GuildExplicitContentFilterTypes
|
|
3893
3923
|
readonly preferred_locale: AvailableLocalesEnum
|
|
3894
|
-
readonly afk_channel_id
|
|
3924
|
+
readonly afk_channel_id: SnowflakeType | null
|
|
3895
3925
|
readonly afk_timeout: AfkTimeouts
|
|
3896
|
-
readonly system_channel_id
|
|
3926
|
+
readonly system_channel_id: SnowflakeType | null
|
|
3897
3927
|
readonly system_channel_flags: number
|
|
3898
3928
|
readonly roles: ReadonlyArray<GuildTemplateRoleResponse>
|
|
3899
3929
|
readonly channels: ReadonlyArray<GuildTemplateChannelResponse>
|
|
@@ -3902,27 +3932,21 @@ export interface GuildTemplateSnapshotResponse {
|
|
|
3902
3932
|
export interface GuildTemplateResponse {
|
|
3903
3933
|
readonly code: string
|
|
3904
3934
|
readonly name: string
|
|
3905
|
-
readonly description
|
|
3935
|
+
readonly description: string | null
|
|
3906
3936
|
readonly usage_count: number
|
|
3907
3937
|
readonly creator_id: SnowflakeType
|
|
3908
|
-
readonly creator
|
|
3938
|
+
readonly creator: UserResponse | null
|
|
3909
3939
|
readonly created_at: string
|
|
3910
3940
|
readonly updated_at: string
|
|
3911
3941
|
readonly source_guild_id: SnowflakeType
|
|
3912
3942
|
readonly serialized_source_guild: GuildTemplateSnapshotResponse
|
|
3913
|
-
readonly is_dirty
|
|
3943
|
+
readonly is_dirty: boolean | null
|
|
3914
3944
|
}
|
|
3915
3945
|
|
|
3916
3946
|
export interface GetGuildParams {
|
|
3917
3947
|
readonly with_counts?: boolean | undefined
|
|
3918
3948
|
}
|
|
3919
3949
|
|
|
3920
|
-
export interface GuildRoleColorsResponse {
|
|
3921
|
-
readonly primary_color: number
|
|
3922
|
-
readonly secondary_color?: number | null | undefined
|
|
3923
|
-
readonly tertiary_color?: number | null | undefined
|
|
3924
|
-
}
|
|
3925
|
-
|
|
3926
3950
|
export interface GuildRoleTagsResponse {
|
|
3927
3951
|
readonly premium_subscriber?: null | undefined
|
|
3928
3952
|
readonly bot_id?: SnowflakeType | undefined
|
|
@@ -3935,7 +3959,7 @@ export interface GuildRoleTagsResponse {
|
|
|
3935
3959
|
export interface GuildRoleResponse {
|
|
3936
3960
|
readonly id: SnowflakeType
|
|
3937
3961
|
readonly name: string
|
|
3938
|
-
readonly description
|
|
3962
|
+
readonly description: string | null
|
|
3939
3963
|
readonly permissions: string
|
|
3940
3964
|
readonly position: number
|
|
3941
3965
|
readonly color: number
|
|
@@ -3943,8 +3967,8 @@ export interface GuildRoleResponse {
|
|
|
3943
3967
|
readonly hoist: boolean
|
|
3944
3968
|
readonly managed: boolean
|
|
3945
3969
|
readonly mentionable: boolean
|
|
3946
|
-
readonly icon
|
|
3947
|
-
readonly unicode_emoji
|
|
3970
|
+
readonly icon: string | null
|
|
3971
|
+
readonly unicode_emoji: string | null
|
|
3948
3972
|
readonly tags?: GuildRoleTagsResponse | undefined
|
|
3949
3973
|
readonly flags: number
|
|
3950
3974
|
}
|
|
@@ -3985,39 +4009,43 @@ export type PremiumGuildTiers =
|
|
|
3985
4009
|
export interface GuildWithCountsResponse {
|
|
3986
4010
|
readonly id: SnowflakeType
|
|
3987
4011
|
readonly name: string
|
|
3988
|
-
readonly icon
|
|
3989
|
-
readonly description
|
|
3990
|
-
readonly home_header
|
|
3991
|
-
readonly splash
|
|
3992
|
-
readonly discovery_splash
|
|
4012
|
+
readonly icon: string | null
|
|
4013
|
+
readonly description: string | null
|
|
4014
|
+
readonly home_header: string | null
|
|
4015
|
+
readonly splash: string | null
|
|
4016
|
+
readonly discovery_splash: string | null
|
|
3993
4017
|
readonly features: ReadonlyArray<GuildFeatures>
|
|
3994
|
-
readonly banner
|
|
4018
|
+
readonly banner: string | null
|
|
3995
4019
|
readonly owner_id: SnowflakeType
|
|
3996
|
-
readonly application_id
|
|
4020
|
+
readonly application_id: SnowflakeType | null
|
|
3997
4021
|
readonly region: string
|
|
3998
|
-
readonly afk_channel_id
|
|
4022
|
+
readonly afk_channel_id: SnowflakeType | null
|
|
3999
4023
|
readonly afk_timeout: AfkTimeouts
|
|
4000
|
-
readonly system_channel_id
|
|
4024
|
+
readonly system_channel_id: SnowflakeType | null
|
|
4001
4025
|
readonly system_channel_flags: number
|
|
4002
4026
|
readonly widget_enabled: boolean
|
|
4003
|
-
readonly widget_channel_id
|
|
4027
|
+
readonly widget_channel_id: SnowflakeType | null
|
|
4004
4028
|
readonly verification_level: VerificationLevels
|
|
4005
4029
|
readonly roles: ReadonlyArray<GuildRoleResponse>
|
|
4006
4030
|
readonly default_message_notifications: UserNotificationSettings
|
|
4007
4031
|
readonly mfa_level: GuildMFALevel
|
|
4008
4032
|
readonly explicit_content_filter: GuildExplicitContentFilterTypes
|
|
4009
|
-
readonly max_presences
|
|
4033
|
+
readonly max_presences: number | null
|
|
4010
4034
|
readonly max_members: number
|
|
4011
4035
|
readonly max_stage_video_channel_users: number
|
|
4012
4036
|
readonly max_video_channel_users: number
|
|
4013
|
-
readonly vanity_url_code
|
|
4037
|
+
readonly vanity_url_code: string | null
|
|
4014
4038
|
readonly premium_tier: PremiumGuildTiers
|
|
4015
4039
|
readonly premium_subscription_count: number
|
|
4016
4040
|
readonly preferred_locale: AvailableLocalesEnum
|
|
4017
|
-
readonly rules_channel_id
|
|
4018
|
-
readonly safety_alerts_channel_id
|
|
4019
|
-
readonly public_updates_channel_id
|
|
4041
|
+
readonly rules_channel_id: SnowflakeType | null
|
|
4042
|
+
readonly safety_alerts_channel_id: SnowflakeType | null
|
|
4043
|
+
readonly public_updates_channel_id: SnowflakeType | null
|
|
4020
4044
|
readonly premium_progress_bar_enabled: boolean
|
|
4045
|
+
readonly premium_progress_bar_enabled_user_updated_at?:
|
|
4046
|
+
| string
|
|
4047
|
+
| null
|
|
4048
|
+
| undefined
|
|
4021
4049
|
readonly nsfw: boolean
|
|
4022
4050
|
readonly nsfw_level: GuildNSFWContentLevel
|
|
4023
4051
|
readonly emojis: ReadonlyArray<EmojiResponse>
|
|
@@ -4059,39 +4087,43 @@ export interface GuildPatchRequestPartial {
|
|
|
4059
4087
|
export interface GuildResponse {
|
|
4060
4088
|
readonly id: SnowflakeType
|
|
4061
4089
|
readonly name: string
|
|
4062
|
-
readonly icon
|
|
4063
|
-
readonly description
|
|
4064
|
-
readonly home_header
|
|
4065
|
-
readonly splash
|
|
4066
|
-
readonly discovery_splash
|
|
4090
|
+
readonly icon: string | null
|
|
4091
|
+
readonly description: string | null
|
|
4092
|
+
readonly home_header: string | null
|
|
4093
|
+
readonly splash: string | null
|
|
4094
|
+
readonly discovery_splash: string | null
|
|
4067
4095
|
readonly features: ReadonlyArray<GuildFeatures>
|
|
4068
|
-
readonly banner
|
|
4096
|
+
readonly banner: string | null
|
|
4069
4097
|
readonly owner_id: SnowflakeType
|
|
4070
|
-
readonly application_id
|
|
4098
|
+
readonly application_id: SnowflakeType | null
|
|
4071
4099
|
readonly region: string
|
|
4072
|
-
readonly afk_channel_id
|
|
4100
|
+
readonly afk_channel_id: SnowflakeType | null
|
|
4073
4101
|
readonly afk_timeout: AfkTimeouts
|
|
4074
|
-
readonly system_channel_id
|
|
4102
|
+
readonly system_channel_id: SnowflakeType | null
|
|
4075
4103
|
readonly system_channel_flags: number
|
|
4076
4104
|
readonly widget_enabled: boolean
|
|
4077
|
-
readonly widget_channel_id
|
|
4105
|
+
readonly widget_channel_id: SnowflakeType | null
|
|
4078
4106
|
readonly verification_level: VerificationLevels
|
|
4079
4107
|
readonly roles: ReadonlyArray<GuildRoleResponse>
|
|
4080
4108
|
readonly default_message_notifications: UserNotificationSettings
|
|
4081
4109
|
readonly mfa_level: GuildMFALevel
|
|
4082
4110
|
readonly explicit_content_filter: GuildExplicitContentFilterTypes
|
|
4083
|
-
readonly max_presences
|
|
4111
|
+
readonly max_presences: number | null
|
|
4084
4112
|
readonly max_members: number
|
|
4085
4113
|
readonly max_stage_video_channel_users: number
|
|
4086
4114
|
readonly max_video_channel_users: number
|
|
4087
|
-
readonly vanity_url_code
|
|
4115
|
+
readonly vanity_url_code: string | null
|
|
4088
4116
|
readonly premium_tier: PremiumGuildTiers
|
|
4089
4117
|
readonly premium_subscription_count: number
|
|
4090
4118
|
readonly preferred_locale: AvailableLocalesEnum
|
|
4091
|
-
readonly rules_channel_id
|
|
4092
|
-
readonly safety_alerts_channel_id
|
|
4093
|
-
readonly public_updates_channel_id
|
|
4119
|
+
readonly rules_channel_id: SnowflakeType | null
|
|
4120
|
+
readonly safety_alerts_channel_id: SnowflakeType | null
|
|
4121
|
+
readonly public_updates_channel_id: SnowflakeType | null
|
|
4094
4122
|
readonly premium_progress_bar_enabled: boolean
|
|
4123
|
+
readonly premium_progress_bar_enabled_user_updated_at?:
|
|
4124
|
+
| string
|
|
4125
|
+
| null
|
|
4126
|
+
| undefined
|
|
4095
4127
|
readonly nsfw: boolean
|
|
4096
4128
|
readonly nsfw_level: GuildNSFWContentLevel
|
|
4097
4129
|
readonly emojis: ReadonlyArray<EmojiResponse>
|
|
@@ -4186,14 +4218,14 @@ export interface ListGuildAuditLogEntriesParams {
|
|
|
4186
4218
|
}
|
|
4187
4219
|
|
|
4188
4220
|
export interface AuditLogObjectChangeResponse {
|
|
4189
|
-
readonly key
|
|
4221
|
+
readonly key: string | null
|
|
4190
4222
|
}
|
|
4191
4223
|
|
|
4192
4224
|
export interface AuditLogEntryResponse {
|
|
4193
4225
|
readonly id: SnowflakeType
|
|
4194
4226
|
readonly action_type: AuditLogActionTypes
|
|
4195
|
-
readonly user_id
|
|
4196
|
-
readonly target_id
|
|
4227
|
+
readonly user_id: SnowflakeType | null
|
|
4228
|
+
readonly target_id: SnowflakeType | null
|
|
4197
4229
|
readonly changes?: ReadonlyArray<AuditLogObjectChangeResponse> | undefined
|
|
4198
4230
|
readonly options?: Record<string, unknown> | undefined
|
|
4199
4231
|
readonly reason?: string | undefined
|
|
@@ -4210,13 +4242,13 @@ export type IntegrationTypes =
|
|
|
4210
4242
|
|
|
4211
4243
|
export interface AccountResponse {
|
|
4212
4244
|
readonly id: string
|
|
4213
|
-
readonly name
|
|
4245
|
+
readonly name: string | null
|
|
4214
4246
|
}
|
|
4215
4247
|
|
|
4216
4248
|
export interface PartialDiscordIntegrationResponse {
|
|
4217
4249
|
readonly id: SnowflakeType
|
|
4218
4250
|
readonly type: "discord"
|
|
4219
|
-
readonly name
|
|
4251
|
+
readonly name: string | null
|
|
4220
4252
|
readonly account: AccountResponse
|
|
4221
4253
|
readonly application_id: SnowflakeType
|
|
4222
4254
|
}
|
|
@@ -4224,14 +4256,14 @@ export interface PartialDiscordIntegrationResponse {
|
|
|
4224
4256
|
export interface PartialExternalConnectionIntegrationResponse {
|
|
4225
4257
|
readonly id: SnowflakeType
|
|
4226
4258
|
readonly type: "twitch" | "youtube"
|
|
4227
|
-
readonly name
|
|
4259
|
+
readonly name: string | null
|
|
4228
4260
|
readonly account: AccountResponse
|
|
4229
4261
|
}
|
|
4230
4262
|
|
|
4231
4263
|
export interface PartialGuildSubscriptionIntegrationResponse {
|
|
4232
4264
|
readonly id: SnowflakeType
|
|
4233
4265
|
readonly type: "guild_subscription"
|
|
4234
|
-
readonly name
|
|
4266
|
+
readonly name: string | null
|
|
4235
4267
|
readonly account: AccountResponse
|
|
4236
4268
|
}
|
|
4237
4269
|
|
|
@@ -4243,16 +4275,16 @@ export interface ExternalScheduledEventResponse {
|
|
|
4243
4275
|
readonly id: SnowflakeType
|
|
4244
4276
|
readonly guild_id: SnowflakeType
|
|
4245
4277
|
readonly name: string
|
|
4246
|
-
readonly description
|
|
4247
|
-
readonly channel_id
|
|
4248
|
-
readonly creator_id
|
|
4278
|
+
readonly description: string | null
|
|
4279
|
+
readonly channel_id: SnowflakeType | null
|
|
4280
|
+
readonly creator_id: SnowflakeType | null
|
|
4249
4281
|
readonly creator?: UserResponse | undefined
|
|
4250
|
-
readonly image
|
|
4282
|
+
readonly image: string | null
|
|
4251
4283
|
readonly scheduled_start_time: string
|
|
4252
|
-
readonly scheduled_end_time
|
|
4284
|
+
readonly scheduled_end_time: string | null
|
|
4253
4285
|
readonly status: GuildScheduledEventStatuses
|
|
4254
4286
|
readonly entity_type: 3
|
|
4255
|
-
readonly entity_id
|
|
4287
|
+
readonly entity_id: SnowflakeType | null
|
|
4256
4288
|
readonly user_count?: number | undefined
|
|
4257
4289
|
readonly privacy_level: GuildScheduledEventPrivacyLevels
|
|
4258
4290
|
readonly user_rsvp?: ScheduledEventUserResponse | null | undefined
|
|
@@ -4265,23 +4297,20 @@ export interface StageScheduledEventResponse {
|
|
|
4265
4297
|
readonly id: SnowflakeType
|
|
4266
4298
|
readonly guild_id: SnowflakeType
|
|
4267
4299
|
readonly name: string
|
|
4268
|
-
readonly description
|
|
4269
|
-
readonly channel_id
|
|
4270
|
-
readonly creator_id
|
|
4300
|
+
readonly description: string | null
|
|
4301
|
+
readonly channel_id: SnowflakeType | null
|
|
4302
|
+
readonly creator_id: SnowflakeType | null
|
|
4271
4303
|
readonly creator?: UserResponse | undefined
|
|
4272
|
-
readonly image
|
|
4304
|
+
readonly image: string | null
|
|
4273
4305
|
readonly scheduled_start_time: string
|
|
4274
|
-
readonly scheduled_end_time
|
|
4306
|
+
readonly scheduled_end_time: string | null
|
|
4275
4307
|
readonly status: GuildScheduledEventStatuses
|
|
4276
4308
|
readonly entity_type: 1
|
|
4277
|
-
readonly entity_id
|
|
4309
|
+
readonly entity_id: SnowflakeType | null
|
|
4278
4310
|
readonly user_count?: number | undefined
|
|
4279
4311
|
readonly privacy_level: GuildScheduledEventPrivacyLevels
|
|
4280
4312
|
readonly user_rsvp?: ScheduledEventUserResponse | null | undefined
|
|
4281
|
-
readonly entity_metadata
|
|
4282
|
-
| EntityMetadataStageInstanceResponse
|
|
4283
|
-
| null
|
|
4284
|
-
| undefined
|
|
4313
|
+
readonly entity_metadata: EntityMetadataStageInstanceResponse | null
|
|
4285
4314
|
}
|
|
4286
4315
|
|
|
4287
4316
|
export interface EntityMetadataVoiceResponse {}
|
|
@@ -4290,20 +4319,20 @@ export interface VoiceScheduledEventResponse {
|
|
|
4290
4319
|
readonly id: SnowflakeType
|
|
4291
4320
|
readonly guild_id: SnowflakeType
|
|
4292
4321
|
readonly name: string
|
|
4293
|
-
readonly description
|
|
4294
|
-
readonly channel_id
|
|
4295
|
-
readonly creator_id
|
|
4322
|
+
readonly description: string | null
|
|
4323
|
+
readonly channel_id: SnowflakeType | null
|
|
4324
|
+
readonly creator_id: SnowflakeType | null
|
|
4296
4325
|
readonly creator?: UserResponse | undefined
|
|
4297
|
-
readonly image
|
|
4326
|
+
readonly image: string | null
|
|
4298
4327
|
readonly scheduled_start_time: string
|
|
4299
|
-
readonly scheduled_end_time
|
|
4328
|
+
readonly scheduled_end_time: string | null
|
|
4300
4329
|
readonly status: GuildScheduledEventStatuses
|
|
4301
4330
|
readonly entity_type: 2
|
|
4302
|
-
readonly entity_id
|
|
4331
|
+
readonly entity_id: SnowflakeType | null
|
|
4303
4332
|
readonly user_count?: number | undefined
|
|
4304
4333
|
readonly privacy_level: GuildScheduledEventPrivacyLevels
|
|
4305
4334
|
readonly user_rsvp?: ScheduledEventUserResponse | null | undefined
|
|
4306
|
-
readonly entity_metadata
|
|
4335
|
+
readonly entity_metadata: EntityMetadataVoiceResponse | null
|
|
4307
4336
|
}
|
|
4308
4337
|
|
|
4309
4338
|
export const AutomodEventType = {
|
|
@@ -4815,7 +4844,7 @@ export interface ListGuildBansParams {
|
|
|
4815
4844
|
|
|
4816
4845
|
export interface GuildBanResponse {
|
|
4817
4846
|
readonly user: UserResponse
|
|
4818
|
-
readonly reason
|
|
4847
|
+
readonly reason: string | null
|
|
4819
4848
|
}
|
|
4820
4849
|
|
|
4821
4850
|
export type ListGuildBans200 = ReadonlyArray<GuildBanResponse>
|
|
@@ -4908,9 +4937,9 @@ export interface UpdateGuildEmojiRequest {
|
|
|
4908
4937
|
export interface IntegrationApplicationResponse {
|
|
4909
4938
|
readonly id: SnowflakeType
|
|
4910
4939
|
readonly name: string
|
|
4911
|
-
readonly icon
|
|
4940
|
+
readonly icon: string | null
|
|
4912
4941
|
readonly description: string
|
|
4913
|
-
readonly type
|
|
4942
|
+
readonly type: ApplicationTypes | null
|
|
4914
4943
|
readonly cover_image?: string | undefined
|
|
4915
4944
|
readonly primary_sku_id?: SnowflakeType | undefined
|
|
4916
4945
|
readonly bot?: UserResponse | undefined
|
|
@@ -4918,7 +4947,7 @@ export interface IntegrationApplicationResponse {
|
|
|
4918
4947
|
|
|
4919
4948
|
export interface DiscordIntegrationResponse {
|
|
4920
4949
|
readonly type: "discord"
|
|
4921
|
-
readonly name
|
|
4950
|
+
readonly name: string | null
|
|
4922
4951
|
readonly account: AccountResponse
|
|
4923
4952
|
readonly enabled: boolean
|
|
4924
4953
|
readonly id: SnowflakeType
|
|
@@ -4969,7 +4998,7 @@ export type IntegrationExpireGracePeriodTypes =
|
|
|
4969
4998
|
|
|
4970
4999
|
export interface ExternalConnectionIntegrationResponse {
|
|
4971
5000
|
readonly type: "twitch" | "youtube"
|
|
4972
|
-
readonly name
|
|
5001
|
+
readonly name: string | null
|
|
4973
5002
|
readonly account: AccountResponse
|
|
4974
5003
|
readonly enabled: boolean
|
|
4975
5004
|
readonly id: string
|
|
@@ -4986,7 +5015,7 @@ export interface ExternalConnectionIntegrationResponse {
|
|
|
4986
5015
|
|
|
4987
5016
|
export interface GuildSubscriptionIntegrationResponse {
|
|
4988
5017
|
readonly type: "guild_subscription"
|
|
4989
|
-
readonly name
|
|
5018
|
+
readonly name: string | null
|
|
4990
5019
|
readonly account: AccountResponse
|
|
4991
5020
|
readonly enabled: boolean
|
|
4992
5021
|
readonly id: SnowflakeType
|
|
@@ -5011,21 +5040,24 @@ export type ListGuildMembers200 = ReadonlyArray<GuildMemberResponse>
|
|
|
5011
5040
|
|
|
5012
5041
|
export interface UpdateMyGuildMemberRequest {
|
|
5013
5042
|
readonly nick?: string | null | undefined
|
|
5043
|
+
readonly avatar?: string | null | undefined
|
|
5044
|
+
readonly bio?: string | null | undefined
|
|
5045
|
+
readonly banner?: string | null | undefined
|
|
5014
5046
|
}
|
|
5015
5047
|
|
|
5016
5048
|
export interface PrivateGuildMemberResponse {
|
|
5017
|
-
readonly avatar
|
|
5049
|
+
readonly avatar: string | null
|
|
5018
5050
|
readonly avatar_decoration_data?:
|
|
5019
5051
|
| UserAvatarDecorationResponse
|
|
5020
5052
|
| null
|
|
5021
5053
|
| undefined
|
|
5022
|
-
readonly banner
|
|
5023
|
-
readonly communication_disabled_until
|
|
5054
|
+
readonly banner: string | null
|
|
5055
|
+
readonly communication_disabled_until: string | null
|
|
5024
5056
|
readonly flags: number
|
|
5025
5057
|
readonly joined_at: string
|
|
5026
|
-
readonly nick
|
|
5058
|
+
readonly nick: string | null
|
|
5027
5059
|
readonly pending: boolean
|
|
5028
|
-
readonly premium_since
|
|
5060
|
+
readonly premium_since: string | null
|
|
5029
5061
|
readonly roles: ReadonlyArray<SnowflakeType>
|
|
5030
5062
|
readonly collectibles?: UserCollectiblesResponse | null | undefined
|
|
5031
5063
|
readonly user: UserResponse
|
|
@@ -5073,8 +5105,8 @@ export type NewMemberActionType =
|
|
|
5073
5105
|
(typeof NewMemberActionType)[keyof typeof NewMemberActionType]
|
|
5074
5106
|
|
|
5075
5107
|
export interface SettingsEmojiResponse {
|
|
5076
|
-
readonly id
|
|
5077
|
-
readonly name
|
|
5108
|
+
readonly id: SnowflakeType | null
|
|
5109
|
+
readonly name: string | null
|
|
5078
5110
|
readonly animated: boolean
|
|
5079
5111
|
}
|
|
5080
5112
|
|
|
@@ -5196,11 +5228,11 @@ export interface GuildOnboardingResponse {
|
|
|
5196
5228
|
export interface GuildPreviewResponse {
|
|
5197
5229
|
readonly id: SnowflakeType
|
|
5198
5230
|
readonly name: string
|
|
5199
|
-
readonly icon
|
|
5200
|
-
readonly description
|
|
5201
|
-
readonly home_header
|
|
5202
|
-
readonly splash
|
|
5203
|
-
readonly discovery_splash
|
|
5231
|
+
readonly icon: string | null
|
|
5232
|
+
readonly description: string | null
|
|
5233
|
+
readonly home_header: string | null
|
|
5234
|
+
readonly splash: string | null
|
|
5235
|
+
readonly discovery_splash: string | null
|
|
5204
5236
|
readonly features: ReadonlyArray<GuildFeatures>
|
|
5205
5237
|
readonly approximate_member_count: number
|
|
5206
5238
|
readonly approximate_presence_count: number
|
|
@@ -5217,7 +5249,7 @@ export interface PreviewPruneGuildParams {
|
|
|
5217
5249
|
}
|
|
5218
5250
|
|
|
5219
5251
|
export interface GuildPruneResponse {
|
|
5220
|
-
readonly pruned
|
|
5252
|
+
readonly pruned: number | null
|
|
5221
5253
|
}
|
|
5222
5254
|
|
|
5223
5255
|
export interface PruneGuildRequest {
|
|
@@ -5242,10 +5274,17 @@ export type ListGuildVoiceRegions200 = ReadonlyArray<VoiceRegionResponse>
|
|
|
5242
5274
|
|
|
5243
5275
|
export type ListGuildRoles200 = ReadonlyArray<GuildRoleResponse>
|
|
5244
5276
|
|
|
5277
|
+
export interface RoleColors {
|
|
5278
|
+
readonly primary_color?: number | null | undefined
|
|
5279
|
+
readonly secondary_color?: number | null | undefined
|
|
5280
|
+
readonly tertiary_color?: number | null | undefined
|
|
5281
|
+
}
|
|
5282
|
+
|
|
5245
5283
|
export interface CreateRoleRequest {
|
|
5246
5284
|
readonly name?: string | null | undefined
|
|
5247
5285
|
readonly permissions?: number | null | undefined
|
|
5248
5286
|
readonly color?: number | null | undefined
|
|
5287
|
+
readonly colors?: RoleColors | null | undefined
|
|
5249
5288
|
readonly hoist?: boolean | null | undefined
|
|
5250
5289
|
readonly mentionable?: boolean | null | undefined
|
|
5251
5290
|
readonly icon?: string | null | undefined
|
|
@@ -5262,10 +5301,13 @@ export type BulkUpdateGuildRolesRequest =
|
|
|
5262
5301
|
|
|
5263
5302
|
export type BulkUpdateGuildRoles200 = ReadonlyArray<GuildRoleResponse>
|
|
5264
5303
|
|
|
5304
|
+
export type GuildRoleMemberCounts200 = Record<string, unknown>
|
|
5305
|
+
|
|
5265
5306
|
export interface UpdateRoleRequestPartial {
|
|
5266
5307
|
readonly name?: string | null | undefined
|
|
5267
5308
|
readonly permissions?: number | null | undefined
|
|
5268
5309
|
readonly color?: number | null | undefined
|
|
5310
|
+
readonly colors?: RoleColors | null | undefined
|
|
5269
5311
|
readonly hoist?: boolean | null | undefined
|
|
5270
5312
|
readonly mentionable?: boolean | null | undefined
|
|
5271
5313
|
readonly icon?: string | null | undefined
|
|
@@ -5408,8 +5450,8 @@ export interface SoundboardSoundResponse {
|
|
|
5408
5450
|
readonly name: string
|
|
5409
5451
|
readonly sound_id: SnowflakeType
|
|
5410
5452
|
readonly volume: number
|
|
5411
|
-
readonly emoji_id
|
|
5412
|
-
readonly emoji_name
|
|
5453
|
+
readonly emoji_id: SnowflakeType | null
|
|
5454
|
+
readonly emoji_name: string | null
|
|
5413
5455
|
readonly guild_id?: SnowflakeType | undefined
|
|
5414
5456
|
readonly available: boolean
|
|
5415
5457
|
readonly user?: UserResponse | undefined
|
|
@@ -5467,20 +5509,20 @@ export interface VanityURLErrorResponse {
|
|
|
5467
5509
|
}
|
|
5468
5510
|
|
|
5469
5511
|
export interface VanityURLResponse {
|
|
5470
|
-
readonly code
|
|
5512
|
+
readonly code: string | null
|
|
5471
5513
|
readonly uses: number
|
|
5472
5514
|
readonly error?: VanityURLErrorResponse | null | undefined
|
|
5473
5515
|
}
|
|
5474
5516
|
|
|
5475
5517
|
export interface VoiceStateResponse {
|
|
5476
|
-
readonly channel_id
|
|
5518
|
+
readonly channel_id: SnowflakeType | null
|
|
5477
5519
|
readonly deaf: boolean
|
|
5478
|
-
readonly guild_id
|
|
5520
|
+
readonly guild_id: SnowflakeType | null
|
|
5479
5521
|
readonly member?: GuildMemberResponse | undefined
|
|
5480
5522
|
readonly mute: boolean
|
|
5481
|
-
readonly request_to_speak_timestamp
|
|
5523
|
+
readonly request_to_speak_timestamp: string | null
|
|
5482
5524
|
readonly suppress: boolean
|
|
5483
|
-
readonly self_stream
|
|
5525
|
+
readonly self_stream: boolean | null
|
|
5484
5526
|
readonly self_deaf: boolean
|
|
5485
5527
|
readonly self_mute: boolean
|
|
5486
5528
|
readonly self_video: boolean
|
|
@@ -5508,12 +5550,12 @@ export type GetGuildWebhooks200 = ReadonlyArray<
|
|
|
5508
5550
|
export interface GuildWelcomeScreenChannelResponse {
|
|
5509
5551
|
readonly channel_id: SnowflakeType
|
|
5510
5552
|
readonly description: string
|
|
5511
|
-
readonly emoji_id
|
|
5512
|
-
readonly emoji_name
|
|
5553
|
+
readonly emoji_id: SnowflakeType | null
|
|
5554
|
+
readonly emoji_name: string | null
|
|
5513
5555
|
}
|
|
5514
5556
|
|
|
5515
5557
|
export interface GuildWelcomeScreenResponse {
|
|
5516
|
-
readonly description
|
|
5558
|
+
readonly description: string | null
|
|
5517
5559
|
readonly welcome_channels: ReadonlyArray<GuildWelcomeScreenChannelResponse>
|
|
5518
5560
|
}
|
|
5519
5561
|
|
|
@@ -5535,7 +5577,7 @@ export interface WelcomeScreenPatchRequestPartial {
|
|
|
5535
5577
|
|
|
5536
5578
|
export interface WidgetSettingsResponse {
|
|
5537
5579
|
readonly enabled: boolean
|
|
5538
|
-
readonly channel_id
|
|
5580
|
+
readonly channel_id: SnowflakeType | null
|
|
5539
5581
|
}
|
|
5540
5582
|
|
|
5541
5583
|
export interface UpdateGuildWidgetSettingsRequest {
|
|
@@ -5559,7 +5601,7 @@ export interface WidgetMember {
|
|
|
5559
5601
|
readonly id: string
|
|
5560
5602
|
readonly username: string
|
|
5561
5603
|
readonly discriminator: WidgetUserDiscriminator
|
|
5562
|
-
readonly avatar
|
|
5604
|
+
readonly avatar: null
|
|
5563
5605
|
readonly status: string
|
|
5564
5606
|
readonly avatar_url: string
|
|
5565
5607
|
readonly activity?: WidgetActivity | undefined
|
|
@@ -5574,7 +5616,7 @@ export interface WidgetMember {
|
|
|
5574
5616
|
export interface WidgetResponse {
|
|
5575
5617
|
readonly id: SnowflakeType
|
|
5576
5618
|
readonly name: string
|
|
5577
|
-
readonly instant_invite
|
|
5619
|
+
readonly instant_invite: string | null
|
|
5578
5620
|
readonly channels: ReadonlyArray<WidgetChannel>
|
|
5579
5621
|
readonly members: ReadonlyArray<WidgetMember>
|
|
5580
5622
|
readonly presence_count: number
|
|
@@ -5622,6 +5664,7 @@ export const InteractionCallbackTypes = {
|
|
|
5622
5664
|
APPLICATION_COMMAND_AUTOCOMPLETE_RESULT: 8,
|
|
5623
5665
|
MODAL: 9,
|
|
5624
5666
|
LAUNCH_ACTIVITY: 12,
|
|
5667
|
+
SOCIAL_LAYER_SKU_PURCHASE_ELIGIBILITY: 13,
|
|
5625
5668
|
} as const
|
|
5626
5669
|
export type InteractionCallbackTypes =
|
|
5627
5670
|
(typeof InteractionCallbackTypes)[keyof typeof InteractionCallbackTypes]
|
|
@@ -5724,6 +5767,39 @@ export interface ChannelSelectComponentForModalRequest {
|
|
|
5724
5767
|
readonly channel_types?: ReadonlyArray<ChannelTypes> | null | undefined
|
|
5725
5768
|
}
|
|
5726
5769
|
|
|
5770
|
+
export interface CheckboxComponentForModalRequest {
|
|
5771
|
+
readonly type: 23
|
|
5772
|
+
readonly id?: number | null | undefined
|
|
5773
|
+
readonly custom_id: string
|
|
5774
|
+
readonly default?: boolean | null | undefined
|
|
5775
|
+
}
|
|
5776
|
+
|
|
5777
|
+
export interface CheckboxGroupOptionForRequest {
|
|
5778
|
+
readonly label: string
|
|
5779
|
+
readonly value: string
|
|
5780
|
+
readonly description?: string | null | undefined
|
|
5781
|
+
readonly default?: boolean | null | undefined
|
|
5782
|
+
}
|
|
5783
|
+
|
|
5784
|
+
export interface CheckboxGroupComponentForModalRequest {
|
|
5785
|
+
readonly type: 22
|
|
5786
|
+
readonly id?: number | null | undefined
|
|
5787
|
+
readonly custom_id: string
|
|
5788
|
+
readonly min_values?: number | null | undefined
|
|
5789
|
+
readonly max_values?: number | null | undefined
|
|
5790
|
+
readonly required?: boolean | null | undefined
|
|
5791
|
+
readonly options: ReadonlyArray<CheckboxGroupOptionForRequest>
|
|
5792
|
+
}
|
|
5793
|
+
|
|
5794
|
+
export interface FileUploadComponentForModalRequest {
|
|
5795
|
+
readonly type: 19
|
|
5796
|
+
readonly id?: number | null | undefined
|
|
5797
|
+
readonly custom_id: string
|
|
5798
|
+
readonly min_values?: number | null | undefined
|
|
5799
|
+
readonly max_values?: number | null | undefined
|
|
5800
|
+
readonly required?: boolean | null | undefined
|
|
5801
|
+
}
|
|
5802
|
+
|
|
5727
5803
|
export interface MentionableSelectComponentForModalRequest {
|
|
5728
5804
|
readonly type: 7
|
|
5729
5805
|
readonly id?: number | null | undefined
|
|
@@ -5739,6 +5815,21 @@ export interface MentionableSelectComponentForModalRequest {
|
|
|
5739
5815
|
| undefined
|
|
5740
5816
|
}
|
|
5741
5817
|
|
|
5818
|
+
export interface RadioGroupOptionForRequest {
|
|
5819
|
+
readonly label: string
|
|
5820
|
+
readonly value: string
|
|
5821
|
+
readonly description?: string | null | undefined
|
|
5822
|
+
readonly default?: boolean | null | undefined
|
|
5823
|
+
}
|
|
5824
|
+
|
|
5825
|
+
export interface RadioGroupComponentForModalRequest {
|
|
5826
|
+
readonly type: 21
|
|
5827
|
+
readonly id?: number | null | undefined
|
|
5828
|
+
readonly custom_id: string
|
|
5829
|
+
readonly required?: boolean | null | undefined
|
|
5830
|
+
readonly options: ReadonlyArray<RadioGroupOptionForRequest>
|
|
5831
|
+
}
|
|
5832
|
+
|
|
5742
5833
|
export interface RoleSelectComponentForModalRequest {
|
|
5743
5834
|
readonly type: 6
|
|
5744
5835
|
readonly id?: number | null | undefined
|
|
@@ -5788,7 +5879,11 @@ export interface LabelComponentForModalRequest {
|
|
|
5788
5879
|
readonly description?: string | null | undefined
|
|
5789
5880
|
readonly component:
|
|
5790
5881
|
| ChannelSelectComponentForModalRequest
|
|
5882
|
+
| CheckboxComponentForModalRequest
|
|
5883
|
+
| CheckboxGroupComponentForModalRequest
|
|
5884
|
+
| FileUploadComponentForModalRequest
|
|
5791
5885
|
| MentionableSelectComponentForModalRequest
|
|
5886
|
+
| RadioGroupComponentForModalRequest
|
|
5792
5887
|
| RoleSelectComponentForModalRequest
|
|
5793
5888
|
| StringSelectComponentForModalRequest
|
|
5794
5889
|
| TextInputComponentForModalRequest
|
|
@@ -5820,6 +5915,15 @@ export interface PongInteractionCallbackRequest {
|
|
|
5820
5915
|
readonly type: 1
|
|
5821
5916
|
}
|
|
5822
5917
|
|
|
5918
|
+
export interface SocialLayerSKUPurchaseEligibilityCallbackData {
|
|
5919
|
+
readonly eligible: boolean
|
|
5920
|
+
}
|
|
5921
|
+
|
|
5922
|
+
export interface SocialLayerSKUPurchaseEligibilityInteractionCallbackRequest {
|
|
5923
|
+
readonly type: 13
|
|
5924
|
+
readonly data: SocialLayerSKUPurchaseEligibilityCallbackData
|
|
5925
|
+
}
|
|
5926
|
+
|
|
5823
5927
|
export interface IncomingWebhookUpdateForInteractionCallbackRequestPartial {
|
|
5824
5928
|
readonly content?: string | null | undefined
|
|
5825
5929
|
readonly embeds?: ReadonlyArray<RichEmbed> | null | undefined
|
|
@@ -5857,6 +5961,7 @@ export type CreateInteractionResponseRequest =
|
|
|
5857
5961
|
| LaunchActivityInteractionCallbackRequest
|
|
5858
5962
|
| ModalInteractionCallbackRequest
|
|
5859
5963
|
| PongInteractionCallbackRequest
|
|
5964
|
+
| SocialLayerSKUPurchaseEligibilityInteractionCallbackRequest
|
|
5860
5965
|
| UpdateMessageInteractionCallbackRequest
|
|
5861
5966
|
|
|
5862
5967
|
export interface InteractionResponse {
|
|
@@ -5907,6 +6012,58 @@ export type InviteRevoke200 =
|
|
|
5907
6012
|
| GroupDMInviteResponse
|
|
5908
6013
|
| GuildInviteResponse
|
|
5909
6014
|
|
|
6015
|
+
export interface UpdateInviteTargetUsersRequest {
|
|
6016
|
+
readonly target_users_file: Blob
|
|
6017
|
+
}
|
|
6018
|
+
|
|
6019
|
+
export const TargetUsersJobStatusTypes = {
|
|
6020
|
+
/**
|
|
6021
|
+
* The default value.
|
|
6022
|
+
*/
|
|
6023
|
+
UNSPECIFIED: 0,
|
|
6024
|
+
/**
|
|
6025
|
+
* The job is still being processed.
|
|
6026
|
+
*/
|
|
6027
|
+
PROCESSING: 1,
|
|
6028
|
+
/**
|
|
6029
|
+
* The job has been completed successfully.
|
|
6030
|
+
*/
|
|
6031
|
+
COMPLETED: 2,
|
|
6032
|
+
/**
|
|
6033
|
+
* The job has failed, see error_message field for more details.
|
|
6034
|
+
*/
|
|
6035
|
+
FAILED: 3,
|
|
6036
|
+
} as const
|
|
6037
|
+
export type TargetUsersJobStatusTypes =
|
|
6038
|
+
(typeof TargetUsersJobStatusTypes)[keyof typeof TargetUsersJobStatusTypes]
|
|
6039
|
+
|
|
6040
|
+
export interface TargetUsersJobStatusResponse {
|
|
6041
|
+
/**
|
|
6042
|
+
* The status of the job processing the target users.
|
|
6043
|
+
*/
|
|
6044
|
+
readonly status: TargetUsersJobStatusTypes
|
|
6045
|
+
/**
|
|
6046
|
+
* The total number of users in the provided list.
|
|
6047
|
+
*/
|
|
6048
|
+
readonly total_users: UInt32Type
|
|
6049
|
+
/**
|
|
6050
|
+
* The number of users processed so far.
|
|
6051
|
+
*/
|
|
6052
|
+
readonly processed_users: UInt32Type
|
|
6053
|
+
/**
|
|
6054
|
+
* The timestamp when the job was created.
|
|
6055
|
+
*/
|
|
6056
|
+
readonly created_at: string | null
|
|
6057
|
+
/**
|
|
6058
|
+
* The timestamp when the job was successfully completed.
|
|
6059
|
+
*/
|
|
6060
|
+
readonly completed_at: string | null
|
|
6061
|
+
/**
|
|
6062
|
+
* The error message if the job failed.
|
|
6063
|
+
*/
|
|
6064
|
+
readonly error_message: string | null
|
|
6065
|
+
}
|
|
6066
|
+
|
|
5910
6067
|
export type CreateOrJoinLobbyRequestFlagsEnum = 1
|
|
5911
6068
|
|
|
5912
6069
|
export interface CreateOrJoinLobbyRequest {
|
|
@@ -5919,14 +6076,14 @@ export interface CreateOrJoinLobbyRequest {
|
|
|
5919
6076
|
|
|
5920
6077
|
export interface LobbyMemberResponse {
|
|
5921
6078
|
readonly id: SnowflakeType
|
|
5922
|
-
readonly metadata
|
|
6079
|
+
readonly metadata: Record<string, unknown> | null
|
|
5923
6080
|
readonly flags: number
|
|
5924
6081
|
}
|
|
5925
6082
|
|
|
5926
6083
|
export interface LobbyResponse {
|
|
5927
6084
|
readonly id: SnowflakeType
|
|
5928
6085
|
readonly application_id: SnowflakeType
|
|
5929
|
-
readonly metadata
|
|
6086
|
+
readonly metadata: Record<string, unknown> | null
|
|
5930
6087
|
readonly members: ReadonlyArray<LobbyMemberResponse>
|
|
5931
6088
|
readonly linked_channel?: GuildChannelResponse | undefined
|
|
5932
6089
|
readonly flags: UInt32Type
|
|
@@ -6002,6 +6159,7 @@ export interface LobbyMessageResponse {
|
|
|
6002
6159
|
readonly channel_id: SnowflakeType
|
|
6003
6160
|
readonly author: UserResponse
|
|
6004
6161
|
readonly metadata?: Record<string, unknown> | undefined
|
|
6162
|
+
readonly moderation_metadata?: Record<string, unknown> | undefined
|
|
6005
6163
|
readonly flags: number
|
|
6006
6164
|
readonly application_id?: SnowflakeType | undefined
|
|
6007
6165
|
}
|
|
@@ -6035,13 +6193,20 @@ export interface SDKMessageRequest {
|
|
|
6035
6193
|
| CustomClientThemeShareRequest
|
|
6036
6194
|
| null
|
|
6037
6195
|
| undefined
|
|
6038
|
-
readonly confetti_potion?: ConfettiPotionCreateRequest | null | undefined
|
|
6039
6196
|
readonly message_reference?: MessageReferenceRequest | null | undefined
|
|
6040
6197
|
readonly nonce?: number | string | null | undefined
|
|
6041
6198
|
readonly enforce_nonce?: boolean | null | undefined
|
|
6042
6199
|
readonly tts?: boolean | null | undefined
|
|
6043
6200
|
}
|
|
6044
6201
|
|
|
6202
|
+
/**
|
|
6203
|
+
* The moderation metadata attached to the message
|
|
6204
|
+
*/
|
|
6205
|
+
export type UpdateLobbyMessageExternalModerationMetadataRequest = Record<
|
|
6206
|
+
string,
|
|
6207
|
+
unknown
|
|
6208
|
+
>
|
|
6209
|
+
|
|
6045
6210
|
export interface OAuth2GetAuthorizationResponse {
|
|
6046
6211
|
readonly application: ApplicationResponse
|
|
6047
6212
|
readonly expires: string
|
|
@@ -6072,6 +6237,14 @@ export interface OAuth2GetOpenIDConnectUserInfoResponse {
|
|
|
6072
6237
|
readonly locale?: string | undefined
|
|
6073
6238
|
}
|
|
6074
6239
|
|
|
6240
|
+
/**
|
|
6241
|
+
* The moderation metadata attached to the message
|
|
6242
|
+
*/
|
|
6243
|
+
export type UpdateUserMessageExternalModerationMetadataRequest = Record<
|
|
6244
|
+
string,
|
|
6245
|
+
unknown
|
|
6246
|
+
>
|
|
6247
|
+
|
|
6075
6248
|
export const ApplicationIdentityProviderAuthType = {
|
|
6076
6249
|
OIDC: "OIDC",
|
|
6077
6250
|
EPIC_ONLINE_SERVICES_ACCESS_TOKEN: "EPIC_ONLINE_SERVICES_ACCESS_TOKEN",
|
|
@@ -6150,7 +6323,7 @@ export interface StageInstanceResponse {
|
|
|
6150
6323
|
readonly privacy_level: StageInstancesPrivacyLevels
|
|
6151
6324
|
readonly id: SnowflakeType
|
|
6152
6325
|
readonly discoverable_disabled: boolean
|
|
6153
|
-
readonly guild_scheduled_event_id
|
|
6326
|
+
readonly guild_scheduled_event_id: SnowflakeType | null
|
|
6154
6327
|
}
|
|
6155
6328
|
|
|
6156
6329
|
export interface UpdateStageInstanceRequest {
|
|
@@ -6162,7 +6335,7 @@ export interface StickerPackResponse {
|
|
|
6162
6335
|
readonly id: SnowflakeType
|
|
6163
6336
|
readonly sku_id: SnowflakeType
|
|
6164
6337
|
readonly name: string
|
|
6165
|
-
readonly description
|
|
6338
|
+
readonly description: string | null
|
|
6166
6339
|
readonly stickers: ReadonlyArray<StandardStickerResponse>
|
|
6167
6340
|
readonly cover_sticker_id?: SnowflakeType | undefined
|
|
6168
6341
|
readonly banner_asset_id?: SnowflakeType | undefined
|
|
@@ -6197,7 +6370,7 @@ export type PremiumTypes = (typeof PremiumTypes)[keyof typeof PremiumTypes]
|
|
|
6197
6370
|
export interface UserPIIResponse {
|
|
6198
6371
|
readonly id: SnowflakeType
|
|
6199
6372
|
readonly username: string
|
|
6200
|
-
readonly avatar
|
|
6373
|
+
readonly avatar: string | null
|
|
6201
6374
|
readonly discriminator: string
|
|
6202
6375
|
readonly public_flags: number
|
|
6203
6376
|
readonly flags: Int53Type
|
|
@@ -6205,7 +6378,7 @@ export interface UserPIIResponse {
|
|
|
6205
6378
|
readonly system?: boolean | undefined
|
|
6206
6379
|
readonly banner?: string | null | undefined
|
|
6207
6380
|
readonly accent_color?: number | null | undefined
|
|
6208
|
-
readonly global_name
|
|
6381
|
+
readonly global_name: string | null
|
|
6209
6382
|
readonly avatar_decoration_data?:
|
|
6210
6383
|
| UserAvatarDecorationResponse
|
|
6211
6384
|
| null
|
|
@@ -6225,6 +6398,14 @@ export interface BotAccountPatchRequest {
|
|
|
6225
6398
|
readonly banner?: string | null | undefined
|
|
6226
6399
|
}
|
|
6227
6400
|
|
|
6401
|
+
export interface GetCurrentUserApplicationEntitlementsParams {
|
|
6402
|
+
readonly sku_ids?: string | ReadonlyArray<null | SnowflakeType> | undefined
|
|
6403
|
+
readonly exclude_consumed?: boolean | undefined
|
|
6404
|
+
}
|
|
6405
|
+
|
|
6406
|
+
export type GetCurrentUserApplicationEntitlements200 =
|
|
6407
|
+
ReadonlyArray<null | EntitlementResponse>
|
|
6408
|
+
|
|
6228
6409
|
export interface ApplicationUserRoleConnectionResponse {
|
|
6229
6410
|
readonly platform_name?: string | null | undefined
|
|
6230
6411
|
readonly platform_username?: string | null | undefined
|
|
@@ -6277,7 +6458,7 @@ export type ConnectedAccountProviders =
|
|
|
6277
6458
|
export interface ConnectedAccountGuildResponse {
|
|
6278
6459
|
readonly id: SnowflakeType
|
|
6279
6460
|
readonly name: string
|
|
6280
|
-
readonly icon
|
|
6461
|
+
readonly icon: string | null
|
|
6281
6462
|
}
|
|
6282
6463
|
|
|
6283
6464
|
export interface ConnectedAccountIntegrationResponse {
|
|
@@ -6296,7 +6477,7 @@ export type ConnectedAccountVisibility =
|
|
|
6296
6477
|
|
|
6297
6478
|
export interface ConnectedAccountResponse {
|
|
6298
6479
|
readonly id: string
|
|
6299
|
-
readonly name
|
|
6480
|
+
readonly name: string | null
|
|
6300
6481
|
readonly type: ConnectedAccountProviders
|
|
6301
6482
|
readonly friend_sync: boolean
|
|
6302
6483
|
readonly integrations?:
|
|
@@ -6321,8 +6502,8 @@ export interface ListMyGuildsParams {
|
|
|
6321
6502
|
export interface MyGuildResponse {
|
|
6322
6503
|
readonly id: SnowflakeType
|
|
6323
6504
|
readonly name: string
|
|
6324
|
-
readonly icon
|
|
6325
|
-
readonly banner
|
|
6505
|
+
readonly icon: string | null
|
|
6506
|
+
readonly banner: string | null
|
|
6326
6507
|
readonly owner: boolean
|
|
6327
6508
|
readonly permissions: string
|
|
6328
6509
|
readonly features: ReadonlyArray<GuildFeatures>
|
|
@@ -6637,14 +6818,15 @@ export const make = (
|
|
|
6637
6818
|
Effect.orElseSucceed(response.json, () => "Unexpected status code"),
|
|
6638
6819
|
description =>
|
|
6639
6820
|
Effect.fail(
|
|
6640
|
-
new HttpClientError.
|
|
6641
|
-
|
|
6642
|
-
|
|
6643
|
-
|
|
6644
|
-
|
|
6645
|
-
|
|
6646
|
-
|
|
6647
|
-
|
|
6821
|
+
new HttpClientError.HttpClientError({
|
|
6822
|
+
reason: new HttpClientError.StatusCodeError({
|
|
6823
|
+
request: response.request,
|
|
6824
|
+
response,
|
|
6825
|
+
description:
|
|
6826
|
+
typeof description === "string"
|
|
6827
|
+
? description
|
|
6828
|
+
: JSON.stringify(description),
|
|
6829
|
+
}),
|
|
6648
6830
|
}),
|
|
6649
6831
|
),
|
|
6650
6832
|
)
|
|
@@ -6662,7 +6844,7 @@ export const make = (
|
|
|
6662
6844
|
)
|
|
6663
6845
|
: f => request => Effect.flatMap(httpClient.execute(request), f)
|
|
6664
6846
|
const decodeSuccess = <A>(response: HttpClientResponse.HttpClientResponse) =>
|
|
6665
|
-
response.json as Effect.Effect<A, HttpClientError.
|
|
6847
|
+
response.json as Effect.Effect<A, HttpClientError.HttpClientError>
|
|
6666
6848
|
const decodeVoid = (_response: HttpClientResponse.HttpClientResponse) =>
|
|
6667
6849
|
Effect.void
|
|
6668
6850
|
const decodeError =
|
|
@@ -6671,10 +6853,10 @@ export const make = (
|
|
|
6671
6853
|
response: HttpClientResponse.HttpClientResponse,
|
|
6672
6854
|
): Effect.Effect<
|
|
6673
6855
|
never,
|
|
6674
|
-
DiscordRestError<Tag, E> | HttpClientError.
|
|
6856
|
+
DiscordRestError<Tag, E> | HttpClientError.HttpClientError
|
|
6675
6857
|
> =>
|
|
6676
6858
|
Effect.flatMap(
|
|
6677
|
-
response.json as Effect.Effect<E, HttpClientError.
|
|
6859
|
+
response.json as Effect.Effect<E, HttpClientError.HttpClientError>,
|
|
6678
6860
|
cause => Effect.fail(DiscordRestError(tag, cause, response)),
|
|
6679
6861
|
)
|
|
6680
6862
|
const onRequest = (
|
|
@@ -6706,7 +6888,7 @@ export const make = (
|
|
|
6706
6888
|
),
|
|
6707
6889
|
updateMyApplication: options =>
|
|
6708
6890
|
HttpClientRequest.patch(`/applications/@me`).pipe(
|
|
6709
|
-
HttpClientRequest.
|
|
6891
|
+
HttpClientRequest.bodyJsonUnsafe(options),
|
|
6710
6892
|
onRequest(["2xx"], {
|
|
6711
6893
|
"429": "RatelimitedResponse",
|
|
6712
6894
|
"4xx": "ErrorResponse",
|
|
@@ -6721,7 +6903,7 @@ export const make = (
|
|
|
6721
6903
|
),
|
|
6722
6904
|
updateApplication: (applicationId, options) =>
|
|
6723
6905
|
HttpClientRequest.patch(`/applications/${applicationId}`).pipe(
|
|
6724
|
-
HttpClientRequest.
|
|
6906
|
+
HttpClientRequest.bodyJsonUnsafe(options),
|
|
6725
6907
|
onRequest(["2xx"], {
|
|
6726
6908
|
"429": "RatelimitedResponse",
|
|
6727
6909
|
"4xx": "ErrorResponse",
|
|
@@ -6756,7 +6938,7 @@ export const make = (
|
|
|
6756
6938
|
),
|
|
6757
6939
|
bulkSetApplicationCommands: (applicationId, options) =>
|
|
6758
6940
|
HttpClientRequest.put(`/applications/${applicationId}/commands`).pipe(
|
|
6759
|
-
HttpClientRequest.
|
|
6941
|
+
HttpClientRequest.bodyJsonUnsafe(options),
|
|
6760
6942
|
onRequest(["2xx"], {
|
|
6761
6943
|
"429": "RatelimitedResponse",
|
|
6762
6944
|
"4xx": "ErrorResponse",
|
|
@@ -6764,7 +6946,7 @@ export const make = (
|
|
|
6764
6946
|
),
|
|
6765
6947
|
createApplicationCommand: (applicationId, options) =>
|
|
6766
6948
|
HttpClientRequest.post(`/applications/${applicationId}/commands`).pipe(
|
|
6767
|
-
HttpClientRequest.
|
|
6949
|
+
HttpClientRequest.bodyJsonUnsafe(options),
|
|
6768
6950
|
onRequest(["200", "201"], {
|
|
6769
6951
|
"429": "RatelimitedResponse",
|
|
6770
6952
|
"4xx": "ErrorResponse",
|
|
@@ -6789,7 +6971,7 @@ export const make = (
|
|
|
6789
6971
|
HttpClientRequest.patch(
|
|
6790
6972
|
`/applications/${applicationId}/commands/${commandId}`,
|
|
6791
6973
|
).pipe(
|
|
6792
|
-
HttpClientRequest.
|
|
6974
|
+
HttpClientRequest.bodyJsonUnsafe(options),
|
|
6793
6975
|
onRequest(["2xx"], {
|
|
6794
6976
|
"429": "RatelimitedResponse",
|
|
6795
6977
|
"4xx": "ErrorResponse",
|
|
@@ -6804,7 +6986,7 @@ export const make = (
|
|
|
6804
6986
|
),
|
|
6805
6987
|
createApplicationEmoji: (applicationId, options) =>
|
|
6806
6988
|
HttpClientRequest.post(`/applications/${applicationId}/emojis`).pipe(
|
|
6807
|
-
HttpClientRequest.
|
|
6989
|
+
HttpClientRequest.bodyJsonUnsafe(options),
|
|
6808
6990
|
onRequest(["2xx"], {
|
|
6809
6991
|
"429": "RatelimitedResponse",
|
|
6810
6992
|
"4xx": "ErrorResponse",
|
|
@@ -6829,7 +7011,7 @@ export const make = (
|
|
|
6829
7011
|
HttpClientRequest.patch(
|
|
6830
7012
|
`/applications/${applicationId}/emojis/${emojiId}`,
|
|
6831
7013
|
).pipe(
|
|
6832
|
-
HttpClientRequest.
|
|
7014
|
+
HttpClientRequest.bodyJsonUnsafe(options),
|
|
6833
7015
|
onRequest(["2xx"], {
|
|
6834
7016
|
"429": "RatelimitedResponse",
|
|
6835
7017
|
"4xx": "ErrorResponse",
|
|
@@ -6857,7 +7039,7 @@ export const make = (
|
|
|
6857
7039
|
HttpClientRequest.post(
|
|
6858
7040
|
`/applications/${applicationId}/entitlements`,
|
|
6859
7041
|
).pipe(
|
|
6860
|
-
HttpClientRequest.
|
|
7042
|
+
HttpClientRequest.bodyJsonUnsafe(options),
|
|
6861
7043
|
onRequest(["2xx"], {
|
|
6862
7044
|
"429": "RatelimitedResponse",
|
|
6863
7045
|
"4xx": "ErrorResponse",
|
|
@@ -6900,7 +7082,7 @@ export const make = (
|
|
|
6900
7082
|
HttpClientRequest.put(
|
|
6901
7083
|
`/applications/${applicationId}/guilds/${guildId}/commands`,
|
|
6902
7084
|
).pipe(
|
|
6903
|
-
HttpClientRequest.
|
|
7085
|
+
HttpClientRequest.bodyJsonUnsafe(options),
|
|
6904
7086
|
onRequest(["2xx"], {
|
|
6905
7087
|
"429": "RatelimitedResponse",
|
|
6906
7088
|
"4xx": "ErrorResponse",
|
|
@@ -6910,7 +7092,7 @@ export const make = (
|
|
|
6910
7092
|
HttpClientRequest.post(
|
|
6911
7093
|
`/applications/${applicationId}/guilds/${guildId}/commands`,
|
|
6912
7094
|
).pipe(
|
|
6913
|
-
HttpClientRequest.
|
|
7095
|
+
HttpClientRequest.bodyJsonUnsafe(options),
|
|
6914
7096
|
onRequest(["200", "201"], {
|
|
6915
7097
|
"429": "RatelimitedResponse",
|
|
6916
7098
|
"4xx": "ErrorResponse",
|
|
@@ -6949,7 +7131,7 @@ export const make = (
|
|
|
6949
7131
|
HttpClientRequest.patch(
|
|
6950
7132
|
`/applications/${applicationId}/guilds/${guildId}/commands/${commandId}`,
|
|
6951
7133
|
).pipe(
|
|
6952
|
-
HttpClientRequest.
|
|
7134
|
+
HttpClientRequest.bodyJsonUnsafe(options),
|
|
6953
7135
|
onRequest(["2xx"], {
|
|
6954
7136
|
"429": "RatelimitedResponse",
|
|
6955
7137
|
"4xx": "ErrorResponse",
|
|
@@ -6977,7 +7159,7 @@ export const make = (
|
|
|
6977
7159
|
HttpClientRequest.put(
|
|
6978
7160
|
`/applications/${applicationId}/guilds/${guildId}/commands/${commandId}/permissions`,
|
|
6979
7161
|
).pipe(
|
|
6980
|
-
HttpClientRequest.
|
|
7162
|
+
HttpClientRequest.bodyJsonUnsafe(options),
|
|
6981
7163
|
onRequest(["2xx"], {
|
|
6982
7164
|
"429": "RatelimitedResponse",
|
|
6983
7165
|
"4xx": "ErrorResponse",
|
|
@@ -6996,7 +7178,7 @@ export const make = (
|
|
|
6996
7178
|
HttpClientRequest.put(
|
|
6997
7179
|
`/applications/${applicationId}/role-connections/metadata`,
|
|
6998
7180
|
).pipe(
|
|
6999
|
-
HttpClientRequest.
|
|
7181
|
+
HttpClientRequest.bodyJsonUnsafe(options),
|
|
7000
7182
|
onRequest(["2xx"], {
|
|
7001
7183
|
"429": "RatelimitedResponse",
|
|
7002
7184
|
"4xx": "ErrorResponse",
|
|
@@ -7018,7 +7200,7 @@ export const make = (
|
|
|
7018
7200
|
),
|
|
7019
7201
|
updateChannel: (channelId, options) =>
|
|
7020
7202
|
HttpClientRequest.patch(`/channels/${channelId}`).pipe(
|
|
7021
|
-
HttpClientRequest.
|
|
7203
|
+
HttpClientRequest.bodyJsonUnsafe(options),
|
|
7022
7204
|
onRequest(["2xx"], {
|
|
7023
7205
|
"429": "RatelimitedResponse",
|
|
7024
7206
|
"4xx": "ErrorResponse",
|
|
@@ -7026,7 +7208,7 @@ export const make = (
|
|
|
7026
7208
|
),
|
|
7027
7209
|
followChannel: (channelId, options) =>
|
|
7028
7210
|
HttpClientRequest.post(`/channels/${channelId}/followers`).pipe(
|
|
7029
|
-
HttpClientRequest.
|
|
7211
|
+
HttpClientRequest.bodyJsonUnsafe(options),
|
|
7030
7212
|
onRequest(["2xx"], {
|
|
7031
7213
|
"429": "RatelimitedResponse",
|
|
7032
7214
|
"4xx": "ErrorResponse",
|
|
@@ -7041,7 +7223,7 @@ export const make = (
|
|
|
7041
7223
|
),
|
|
7042
7224
|
createChannelInvite: (channelId, options) =>
|
|
7043
7225
|
HttpClientRequest.post(`/channels/${channelId}/invites`).pipe(
|
|
7044
|
-
HttpClientRequest.
|
|
7226
|
+
HttpClientRequest.bodyJsonUnsafe(options),
|
|
7045
7227
|
onRequest(["2xx"], {
|
|
7046
7228
|
"429": "RatelimitedResponse",
|
|
7047
7229
|
"4xx": "ErrorResponse",
|
|
@@ -7062,7 +7244,7 @@ export const make = (
|
|
|
7062
7244
|
),
|
|
7063
7245
|
createMessage: (channelId, options) =>
|
|
7064
7246
|
HttpClientRequest.post(`/channels/${channelId}/messages`).pipe(
|
|
7065
|
-
HttpClientRequest.
|
|
7247
|
+
HttpClientRequest.bodyJsonUnsafe(options),
|
|
7066
7248
|
onRequest(["2xx"], {
|
|
7067
7249
|
"429": "RatelimitedResponse",
|
|
7068
7250
|
"4xx": "ErrorResponse",
|
|
@@ -7072,7 +7254,7 @@ export const make = (
|
|
|
7072
7254
|
HttpClientRequest.post(
|
|
7073
7255
|
`/channels/${channelId}/messages/bulk-delete`,
|
|
7074
7256
|
).pipe(
|
|
7075
|
-
HttpClientRequest.
|
|
7257
|
+
HttpClientRequest.bodyJsonUnsafe(options),
|
|
7076
7258
|
onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" }),
|
|
7077
7259
|
),
|
|
7078
7260
|
listPins: (channelId, options) =>
|
|
@@ -7117,7 +7299,7 @@ export const make = (
|
|
|
7117
7299
|
HttpClientRequest.patch(
|
|
7118
7300
|
`/channels/${channelId}/messages/${messageId}`,
|
|
7119
7301
|
).pipe(
|
|
7120
|
-
HttpClientRequest.
|
|
7302
|
+
HttpClientRequest.bodyJsonUnsafe(options),
|
|
7121
7303
|
onRequest(["2xx"], {
|
|
7122
7304
|
"429": "RatelimitedResponse",
|
|
7123
7305
|
"4xx": "ErrorResponse",
|
|
@@ -7180,7 +7362,7 @@ export const make = (
|
|
|
7180
7362
|
HttpClientRequest.post(
|
|
7181
7363
|
`/channels/${channelId}/messages/${messageId}/threads`,
|
|
7182
7364
|
).pipe(
|
|
7183
|
-
HttpClientRequest.
|
|
7365
|
+
HttpClientRequest.bodyJsonUnsafe(options),
|
|
7184
7366
|
onRequest(["2xx"], {
|
|
7185
7367
|
"429": "RatelimitedResponse",
|
|
7186
7368
|
"4xx": "ErrorResponse",
|
|
@@ -7190,7 +7372,7 @@ export const make = (
|
|
|
7190
7372
|
HttpClientRequest.put(
|
|
7191
7373
|
`/channels/${channelId}/permissions/${overwriteId}`,
|
|
7192
7374
|
).pipe(
|
|
7193
|
-
HttpClientRequest.
|
|
7375
|
+
HttpClientRequest.bodyJsonUnsafe(options),
|
|
7194
7376
|
onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" }),
|
|
7195
7377
|
),
|
|
7196
7378
|
deleteChannelPermissionOverwrite: (channelId, overwriteId) =>
|
|
@@ -7238,7 +7420,7 @@ export const make = (
|
|
|
7238
7420
|
),
|
|
7239
7421
|
addGroupDmUser: (channelId, userId, options) =>
|
|
7240
7422
|
HttpClientRequest.put(`/channels/${channelId}/recipients/${userId}`).pipe(
|
|
7241
|
-
HttpClientRequest.
|
|
7423
|
+
HttpClientRequest.bodyJsonUnsafe(options),
|
|
7242
7424
|
onRequest(["2xx"], {
|
|
7243
7425
|
"429": "RatelimitedResponse",
|
|
7244
7426
|
"4xx": "ErrorResponse",
|
|
@@ -7252,7 +7434,7 @@ export const make = (
|
|
|
7252
7434
|
HttpClientRequest.post(
|
|
7253
7435
|
`/channels/${channelId}/send-soundboard-sound`,
|
|
7254
7436
|
).pipe(
|
|
7255
|
-
HttpClientRequest.
|
|
7437
|
+
HttpClientRequest.bodyJsonUnsafe(options),
|
|
7256
7438
|
onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" }),
|
|
7257
7439
|
),
|
|
7258
7440
|
listThreadMembers: (channelId, options) =>
|
|
@@ -7301,7 +7483,7 @@ export const make = (
|
|
|
7301
7483
|
),
|
|
7302
7484
|
createThread: (channelId, options) =>
|
|
7303
7485
|
HttpClientRequest.post(`/channels/${channelId}/threads`).pipe(
|
|
7304
|
-
HttpClientRequest.
|
|
7486
|
+
HttpClientRequest.bodyJsonUnsafe(options),
|
|
7305
7487
|
onRequest(["2xx"], {
|
|
7306
7488
|
"429": "RatelimitedResponse",
|
|
7307
7489
|
"4xx": "ErrorResponse",
|
|
@@ -7382,7 +7564,7 @@ export const make = (
|
|
|
7382
7564
|
),
|
|
7383
7565
|
createWebhook: (channelId, options) =>
|
|
7384
7566
|
HttpClientRequest.post(`/channels/${channelId}/webhooks`).pipe(
|
|
7385
|
-
HttpClientRequest.
|
|
7567
|
+
HttpClientRequest.bodyJsonUnsafe(options),
|
|
7386
7568
|
onRequest(["2xx"], {
|
|
7387
7569
|
"429": "RatelimitedResponse",
|
|
7388
7570
|
"4xx": "ErrorResponse",
|
|
@@ -7421,7 +7603,7 @@ export const make = (
|
|
|
7421
7603
|
),
|
|
7422
7604
|
updateGuild: (guildId, options) =>
|
|
7423
7605
|
HttpClientRequest.patch(`/guilds/${guildId}`).pipe(
|
|
7424
|
-
HttpClientRequest.
|
|
7606
|
+
HttpClientRequest.bodyJsonUnsafe(options),
|
|
7425
7607
|
onRequest(["2xx"], {
|
|
7426
7608
|
"429": "RatelimitedResponse",
|
|
7427
7609
|
"4xx": "ErrorResponse",
|
|
@@ -7451,7 +7633,7 @@ export const make = (
|
|
|
7451
7633
|
),
|
|
7452
7634
|
createAutoModerationRule: (guildId, options) =>
|
|
7453
7635
|
HttpClientRequest.post(`/guilds/${guildId}/auto-moderation/rules`).pipe(
|
|
7454
|
-
HttpClientRequest.
|
|
7636
|
+
HttpClientRequest.bodyJsonUnsafe(options),
|
|
7455
7637
|
onRequest(["2xx"], {
|
|
7456
7638
|
"429": "RatelimitedResponse",
|
|
7457
7639
|
"4xx": "ErrorResponse",
|
|
@@ -7476,7 +7658,7 @@ export const make = (
|
|
|
7476
7658
|
HttpClientRequest.patch(
|
|
7477
7659
|
`/guilds/${guildId}/auto-moderation/rules/${ruleId}`,
|
|
7478
7660
|
).pipe(
|
|
7479
|
-
HttpClientRequest.
|
|
7661
|
+
HttpClientRequest.bodyJsonUnsafe(options),
|
|
7480
7662
|
onRequest(["2xx"], {
|
|
7481
7663
|
"429": "RatelimitedResponse",
|
|
7482
7664
|
"4xx": "ErrorResponse",
|
|
@@ -7503,17 +7685,17 @@ export const make = (
|
|
|
7503
7685
|
),
|
|
7504
7686
|
banUserFromGuild: (guildId, userId, options) =>
|
|
7505
7687
|
HttpClientRequest.put(`/guilds/${guildId}/bans/${userId}`).pipe(
|
|
7506
|
-
HttpClientRequest.
|
|
7688
|
+
HttpClientRequest.bodyJsonUnsafe(options),
|
|
7507
7689
|
onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" }),
|
|
7508
7690
|
),
|
|
7509
7691
|
unbanUserFromGuild: (guildId, userId, options) =>
|
|
7510
7692
|
HttpClientRequest.del(`/guilds/${guildId}/bans/${userId}`).pipe(
|
|
7511
|
-
HttpClientRequest.
|
|
7693
|
+
HttpClientRequest.bodyJsonUnsafe(options),
|
|
7512
7694
|
onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" }),
|
|
7513
7695
|
),
|
|
7514
7696
|
bulkBanUsersFromGuild: (guildId, options) =>
|
|
7515
7697
|
HttpClientRequest.post(`/guilds/${guildId}/bulk-ban`).pipe(
|
|
7516
|
-
HttpClientRequest.
|
|
7698
|
+
HttpClientRequest.bodyJsonUnsafe(options),
|
|
7517
7699
|
onRequest(["2xx"], {
|
|
7518
7700
|
"429": "RatelimitedResponse",
|
|
7519
7701
|
"4xx": "ErrorResponse",
|
|
@@ -7528,7 +7710,7 @@ export const make = (
|
|
|
7528
7710
|
),
|
|
7529
7711
|
createGuildChannel: (guildId, options) =>
|
|
7530
7712
|
HttpClientRequest.post(`/guilds/${guildId}/channels`).pipe(
|
|
7531
|
-
HttpClientRequest.
|
|
7713
|
+
HttpClientRequest.bodyJsonUnsafe(options),
|
|
7532
7714
|
onRequest(["2xx"], {
|
|
7533
7715
|
"429": "RatelimitedResponse",
|
|
7534
7716
|
"4xx": "ErrorResponse",
|
|
@@ -7536,7 +7718,7 @@ export const make = (
|
|
|
7536
7718
|
),
|
|
7537
7719
|
bulkUpdateGuildChannels: (guildId, options) =>
|
|
7538
7720
|
HttpClientRequest.patch(`/guilds/${guildId}/channels`).pipe(
|
|
7539
|
-
HttpClientRequest.
|
|
7721
|
+
HttpClientRequest.bodyJsonUnsafe(options),
|
|
7540
7722
|
onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" }),
|
|
7541
7723
|
),
|
|
7542
7724
|
listGuildEmojis: guildId =>
|
|
@@ -7548,7 +7730,7 @@ export const make = (
|
|
|
7548
7730
|
),
|
|
7549
7731
|
createGuildEmoji: (guildId, options) =>
|
|
7550
7732
|
HttpClientRequest.post(`/guilds/${guildId}/emojis`).pipe(
|
|
7551
|
-
HttpClientRequest.
|
|
7733
|
+
HttpClientRequest.bodyJsonUnsafe(options),
|
|
7552
7734
|
onRequest(["2xx"], {
|
|
7553
7735
|
"429": "RatelimitedResponse",
|
|
7554
7736
|
"4xx": "ErrorResponse",
|
|
@@ -7567,7 +7749,7 @@ export const make = (
|
|
|
7567
7749
|
),
|
|
7568
7750
|
updateGuildEmoji: (guildId, emojiId, options) =>
|
|
7569
7751
|
HttpClientRequest.patch(`/guilds/${guildId}/emojis/${emojiId}`).pipe(
|
|
7570
|
-
HttpClientRequest.
|
|
7752
|
+
HttpClientRequest.bodyJsonUnsafe(options),
|
|
7571
7753
|
onRequest(["2xx"], {
|
|
7572
7754
|
"429": "RatelimitedResponse",
|
|
7573
7755
|
"4xx": "ErrorResponse",
|
|
@@ -7606,7 +7788,7 @@ export const make = (
|
|
|
7606
7788
|
),
|
|
7607
7789
|
updateMyGuildMember: (guildId, options) =>
|
|
7608
7790
|
HttpClientRequest.patch(`/guilds/${guildId}/members/@me`).pipe(
|
|
7609
|
-
HttpClientRequest.
|
|
7791
|
+
HttpClientRequest.bodyJsonUnsafe(options),
|
|
7610
7792
|
onRequest(["2xx"], {
|
|
7611
7793
|
"429": "RatelimitedResponse",
|
|
7612
7794
|
"4xx": "ErrorResponse",
|
|
@@ -7632,7 +7814,7 @@ export const make = (
|
|
|
7632
7814
|
),
|
|
7633
7815
|
addGuildMember: (guildId, userId, options) =>
|
|
7634
7816
|
HttpClientRequest.put(`/guilds/${guildId}/members/${userId}`).pipe(
|
|
7635
|
-
HttpClientRequest.
|
|
7817
|
+
HttpClientRequest.bodyJsonUnsafe(options),
|
|
7636
7818
|
onRequest(["2xx"], {
|
|
7637
7819
|
"429": "RatelimitedResponse",
|
|
7638
7820
|
"4xx": "ErrorResponse",
|
|
@@ -7644,7 +7826,7 @@ export const make = (
|
|
|
7644
7826
|
),
|
|
7645
7827
|
updateGuildMember: (guildId, userId, options) =>
|
|
7646
7828
|
HttpClientRequest.patch(`/guilds/${guildId}/members/${userId}`).pipe(
|
|
7647
|
-
HttpClientRequest.
|
|
7829
|
+
HttpClientRequest.bodyJsonUnsafe(options),
|
|
7648
7830
|
onRequest(["2xx"], {
|
|
7649
7831
|
"429": "RatelimitedResponse",
|
|
7650
7832
|
"4xx": "ErrorResponse",
|
|
@@ -7678,7 +7860,7 @@ export const make = (
|
|
|
7678
7860
|
),
|
|
7679
7861
|
putGuildsOnboarding: (guildId, options) =>
|
|
7680
7862
|
HttpClientRequest.put(`/guilds/${guildId}/onboarding`).pipe(
|
|
7681
|
-
HttpClientRequest.
|
|
7863
|
+
HttpClientRequest.bodyJsonUnsafe(options),
|
|
7682
7864
|
onRequest(["2xx"], {
|
|
7683
7865
|
"429": "RatelimitedResponse",
|
|
7684
7866
|
"4xx": "ErrorResponse",
|
|
@@ -7704,7 +7886,7 @@ export const make = (
|
|
|
7704
7886
|
),
|
|
7705
7887
|
pruneGuild: (guildId, options) =>
|
|
7706
7888
|
HttpClientRequest.post(`/guilds/${guildId}/prune`).pipe(
|
|
7707
|
-
HttpClientRequest.
|
|
7889
|
+
HttpClientRequest.bodyJsonUnsafe(options),
|
|
7708
7890
|
onRequest(["2xx"], {
|
|
7709
7891
|
"429": "RatelimitedResponse",
|
|
7710
7892
|
"4xx": "ErrorResponse",
|
|
@@ -7726,7 +7908,7 @@ export const make = (
|
|
|
7726
7908
|
),
|
|
7727
7909
|
createGuildRole: (guildId, options) =>
|
|
7728
7910
|
HttpClientRequest.post(`/guilds/${guildId}/roles`).pipe(
|
|
7729
|
-
HttpClientRequest.
|
|
7911
|
+
HttpClientRequest.bodyJsonUnsafe(options),
|
|
7730
7912
|
onRequest(["2xx"], {
|
|
7731
7913
|
"429": "RatelimitedResponse",
|
|
7732
7914
|
"4xx": "ErrorResponse",
|
|
@@ -7734,7 +7916,14 @@ export const make = (
|
|
|
7734
7916
|
),
|
|
7735
7917
|
bulkUpdateGuildRoles: (guildId, options) =>
|
|
7736
7918
|
HttpClientRequest.patch(`/guilds/${guildId}/roles`).pipe(
|
|
7737
|
-
HttpClientRequest.
|
|
7919
|
+
HttpClientRequest.bodyJsonUnsafe(options),
|
|
7920
|
+
onRequest(["2xx"], {
|
|
7921
|
+
"429": "RatelimitedResponse",
|
|
7922
|
+
"4xx": "ErrorResponse",
|
|
7923
|
+
}),
|
|
7924
|
+
),
|
|
7925
|
+
guildRoleMemberCounts: guildId =>
|
|
7926
|
+
HttpClientRequest.get(`/guilds/${guildId}/roles/member-counts`).pipe(
|
|
7738
7927
|
onRequest(["2xx"], {
|
|
7739
7928
|
"429": "RatelimitedResponse",
|
|
7740
7929
|
"4xx": "ErrorResponse",
|
|
@@ -7753,7 +7942,7 @@ export const make = (
|
|
|
7753
7942
|
),
|
|
7754
7943
|
updateGuildRole: (guildId, roleId, options) =>
|
|
7755
7944
|
HttpClientRequest.patch(`/guilds/${guildId}/roles/${roleId}`).pipe(
|
|
7756
|
-
HttpClientRequest.
|
|
7945
|
+
HttpClientRequest.bodyJsonUnsafe(options),
|
|
7757
7946
|
onRequest(["2xx"], {
|
|
7758
7947
|
"429": "RatelimitedResponse",
|
|
7759
7948
|
"4xx": "ErrorResponse",
|
|
@@ -7771,7 +7960,7 @@ export const make = (
|
|
|
7771
7960
|
),
|
|
7772
7961
|
createGuildScheduledEvent: (guildId, options) =>
|
|
7773
7962
|
HttpClientRequest.post(`/guilds/${guildId}/scheduled-events`).pipe(
|
|
7774
|
-
HttpClientRequest.
|
|
7963
|
+
HttpClientRequest.bodyJsonUnsafe(options),
|
|
7775
7964
|
onRequest(["2xx"], {
|
|
7776
7965
|
"429": "RatelimitedResponse",
|
|
7777
7966
|
"4xx": "ErrorResponse",
|
|
@@ -7799,7 +7988,7 @@ export const make = (
|
|
|
7799
7988
|
HttpClientRequest.patch(
|
|
7800
7989
|
`/guilds/${guildId}/scheduled-events/${guildScheduledEventId}`,
|
|
7801
7990
|
).pipe(
|
|
7802
|
-
HttpClientRequest.
|
|
7991
|
+
HttpClientRequest.bodyJsonUnsafe(options),
|
|
7803
7992
|
onRequest(["2xx"], {
|
|
7804
7993
|
"429": "RatelimitedResponse",
|
|
7805
7994
|
"4xx": "ErrorResponse",
|
|
@@ -7829,7 +8018,7 @@ export const make = (
|
|
|
7829
8018
|
),
|
|
7830
8019
|
createGuildSoundboardSound: (guildId, options) =>
|
|
7831
8020
|
HttpClientRequest.post(`/guilds/${guildId}/soundboard-sounds`).pipe(
|
|
7832
|
-
HttpClientRequest.
|
|
8021
|
+
HttpClientRequest.bodyJsonUnsafe(options),
|
|
7833
8022
|
onRequest(["2xx"], {
|
|
7834
8023
|
"429": "RatelimitedResponse",
|
|
7835
8024
|
"4xx": "ErrorResponse",
|
|
@@ -7854,7 +8043,7 @@ export const make = (
|
|
|
7854
8043
|
HttpClientRequest.patch(
|
|
7855
8044
|
`/guilds/${guildId}/soundboard-sounds/${soundId}`,
|
|
7856
8045
|
).pipe(
|
|
7857
|
-
HttpClientRequest.
|
|
8046
|
+
HttpClientRequest.bodyJsonUnsafe(options),
|
|
7858
8047
|
onRequest(["2xx"], {
|
|
7859
8048
|
"429": "RatelimitedResponse",
|
|
7860
8049
|
"4xx": "ErrorResponse",
|
|
@@ -7888,7 +8077,7 @@ export const make = (
|
|
|
7888
8077
|
),
|
|
7889
8078
|
updateGuildSticker: (guildId, stickerId, options) =>
|
|
7890
8079
|
HttpClientRequest.patch(`/guilds/${guildId}/stickers/${stickerId}`).pipe(
|
|
7891
|
-
HttpClientRequest.
|
|
8080
|
+
HttpClientRequest.bodyJsonUnsafe(options),
|
|
7892
8081
|
onRequest(["2xx"], {
|
|
7893
8082
|
"429": "RatelimitedResponse",
|
|
7894
8083
|
"4xx": "ErrorResponse",
|
|
@@ -7903,7 +8092,7 @@ export const make = (
|
|
|
7903
8092
|
),
|
|
7904
8093
|
createGuildTemplate: (guildId, options) =>
|
|
7905
8094
|
HttpClientRequest.post(`/guilds/${guildId}/templates`).pipe(
|
|
7906
|
-
HttpClientRequest.
|
|
8095
|
+
HttpClientRequest.bodyJsonUnsafe(options),
|
|
7907
8096
|
onRequest(["2xx"], {
|
|
7908
8097
|
"429": "RatelimitedResponse",
|
|
7909
8098
|
"4xx": "ErrorResponse",
|
|
@@ -7925,7 +8114,7 @@ export const make = (
|
|
|
7925
8114
|
),
|
|
7926
8115
|
updateGuildTemplate: (guildId, code, options) =>
|
|
7927
8116
|
HttpClientRequest.patch(`/guilds/${guildId}/templates/${code}`).pipe(
|
|
7928
|
-
HttpClientRequest.
|
|
8117
|
+
HttpClientRequest.bodyJsonUnsafe(options),
|
|
7929
8118
|
onRequest(["2xx"], {
|
|
7930
8119
|
"429": "RatelimitedResponse",
|
|
7931
8120
|
"4xx": "ErrorResponse",
|
|
@@ -7954,7 +8143,7 @@ export const make = (
|
|
|
7954
8143
|
),
|
|
7955
8144
|
updateSelfVoiceState: (guildId, options) =>
|
|
7956
8145
|
HttpClientRequest.patch(`/guilds/${guildId}/voice-states/@me`).pipe(
|
|
7957
|
-
HttpClientRequest.
|
|
8146
|
+
HttpClientRequest.bodyJsonUnsafe(options),
|
|
7958
8147
|
onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" }),
|
|
7959
8148
|
),
|
|
7960
8149
|
getVoiceState: (guildId, userId) =>
|
|
@@ -7966,7 +8155,7 @@ export const make = (
|
|
|
7966
8155
|
),
|
|
7967
8156
|
updateVoiceState: (guildId, userId, options) =>
|
|
7968
8157
|
HttpClientRequest.patch(`/guilds/${guildId}/voice-states/${userId}`).pipe(
|
|
7969
|
-
HttpClientRequest.
|
|
8158
|
+
HttpClientRequest.bodyJsonUnsafe(options),
|
|
7970
8159
|
onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" }),
|
|
7971
8160
|
),
|
|
7972
8161
|
getGuildWebhooks: guildId =>
|
|
@@ -7985,7 +8174,7 @@ export const make = (
|
|
|
7985
8174
|
),
|
|
7986
8175
|
updateGuildWelcomeScreen: (guildId, options) =>
|
|
7987
8176
|
HttpClientRequest.patch(`/guilds/${guildId}/welcome-screen`).pipe(
|
|
7988
|
-
HttpClientRequest.
|
|
8177
|
+
HttpClientRequest.bodyJsonUnsafe(options),
|
|
7989
8178
|
onRequest(["2xx"], {
|
|
7990
8179
|
"429": "RatelimitedResponse",
|
|
7991
8180
|
"4xx": "ErrorResponse",
|
|
@@ -8000,7 +8189,7 @@ export const make = (
|
|
|
8000
8189
|
),
|
|
8001
8190
|
updateGuildWidgetSettings: (guildId, options) =>
|
|
8002
8191
|
HttpClientRequest.patch(`/guilds/${guildId}/widget`).pipe(
|
|
8003
|
-
HttpClientRequest.
|
|
8192
|
+
HttpClientRequest.bodyJsonUnsafe(options),
|
|
8004
8193
|
onRequest(["2xx"], {
|
|
8005
8194
|
"429": "RatelimitedResponse",
|
|
8006
8195
|
"4xx": "ErrorResponse",
|
|
@@ -8025,7 +8214,7 @@ export const make = (
|
|
|
8025
8214
|
HttpClientRequest.setUrlParams({
|
|
8026
8215
|
with_response: options.params?.["with_response"] as any,
|
|
8027
8216
|
}),
|
|
8028
|
-
HttpClientRequest.
|
|
8217
|
+
HttpClientRequest.bodyJsonUnsafe(options.payload),
|
|
8029
8218
|
onRequest(["2xx"], {
|
|
8030
8219
|
"429": "RatelimitedResponse",
|
|
8031
8220
|
"4xx": "ErrorResponse",
|
|
@@ -8051,9 +8240,25 @@ export const make = (
|
|
|
8051
8240
|
"4xx": "ErrorResponse",
|
|
8052
8241
|
}),
|
|
8053
8242
|
),
|
|
8243
|
+
getInviteTargetUsers: code =>
|
|
8244
|
+
HttpClientRequest.get(`/invites/${code}/target-users`).pipe(
|
|
8245
|
+
onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" }),
|
|
8246
|
+
),
|
|
8247
|
+
updateInviteTargetUsers: (code, options) =>
|
|
8248
|
+
HttpClientRequest.put(`/invites/${code}/target-users`).pipe(
|
|
8249
|
+
HttpClientRequest.bodyFormDataRecord(options as any),
|
|
8250
|
+
onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" }),
|
|
8251
|
+
),
|
|
8252
|
+
getInviteTargetUsersJobStatus: code =>
|
|
8253
|
+
HttpClientRequest.get(`/invites/${code}/target-users/job-status`).pipe(
|
|
8254
|
+
onRequest(["2xx"], {
|
|
8255
|
+
"429": "RatelimitedResponse",
|
|
8256
|
+
"4xx": "ErrorResponse",
|
|
8257
|
+
}),
|
|
8258
|
+
),
|
|
8054
8259
|
createOrJoinLobby: options =>
|
|
8055
8260
|
HttpClientRequest.put(`/lobbies`).pipe(
|
|
8056
|
-
HttpClientRequest.
|
|
8261
|
+
HttpClientRequest.bodyJsonUnsafe(options),
|
|
8057
8262
|
onRequest(["2xx"], {
|
|
8058
8263
|
"429": "RatelimitedResponse",
|
|
8059
8264
|
"4xx": "ErrorResponse",
|
|
@@ -8061,7 +8266,7 @@ export const make = (
|
|
|
8061
8266
|
),
|
|
8062
8267
|
createLobby: options =>
|
|
8063
8268
|
HttpClientRequest.post(`/lobbies`).pipe(
|
|
8064
|
-
HttpClientRequest.
|
|
8269
|
+
HttpClientRequest.bodyJsonUnsafe(options),
|
|
8065
8270
|
onRequest(["2xx"], {
|
|
8066
8271
|
"429": "RatelimitedResponse",
|
|
8067
8272
|
"4xx": "ErrorResponse",
|
|
@@ -8076,7 +8281,7 @@ export const make = (
|
|
|
8076
8281
|
),
|
|
8077
8282
|
editLobby: (lobbyId, options) =>
|
|
8078
8283
|
HttpClientRequest.patch(`/lobbies/${lobbyId}`).pipe(
|
|
8079
|
-
HttpClientRequest.
|
|
8284
|
+
HttpClientRequest.bodyJsonUnsafe(options),
|
|
8080
8285
|
onRequest(["2xx"], {
|
|
8081
8286
|
"429": "RatelimitedResponse",
|
|
8082
8287
|
"4xx": "ErrorResponse",
|
|
@@ -8084,7 +8289,7 @@ export const make = (
|
|
|
8084
8289
|
),
|
|
8085
8290
|
editLobbyChannelLink: (lobbyId, options) =>
|
|
8086
8291
|
HttpClientRequest.patch(`/lobbies/${lobbyId}/channel-linking`).pipe(
|
|
8087
|
-
HttpClientRequest.
|
|
8292
|
+
HttpClientRequest.bodyJsonUnsafe(options),
|
|
8088
8293
|
onRequest(["2xx"], {
|
|
8089
8294
|
"429": "RatelimitedResponse",
|
|
8090
8295
|
"4xx": "ErrorResponse",
|
|
@@ -8103,7 +8308,7 @@ export const make = (
|
|
|
8103
8308
|
),
|
|
8104
8309
|
bulkUpdateLobbyMembers: (lobbyId, options) =>
|
|
8105
8310
|
HttpClientRequest.post(`/lobbies/${lobbyId}/members/bulk`).pipe(
|
|
8106
|
-
HttpClientRequest.
|
|
8311
|
+
HttpClientRequest.bodyJsonUnsafe(options),
|
|
8107
8312
|
onRequest(["2xx"], {
|
|
8108
8313
|
"429": "RatelimitedResponse",
|
|
8109
8314
|
"4xx": "ErrorResponse",
|
|
@@ -8111,7 +8316,7 @@ export const make = (
|
|
|
8111
8316
|
),
|
|
8112
8317
|
addLobbyMember: (lobbyId, userId, options) =>
|
|
8113
8318
|
HttpClientRequest.put(`/lobbies/${lobbyId}/members/${userId}`).pipe(
|
|
8114
|
-
HttpClientRequest.
|
|
8319
|
+
HttpClientRequest.bodyJsonUnsafe(options),
|
|
8115
8320
|
onRequest(["2xx"], {
|
|
8116
8321
|
"429": "RatelimitedResponse",
|
|
8117
8322
|
"4xx": "ErrorResponse",
|
|
@@ -8140,12 +8345,23 @@ export const make = (
|
|
|
8140
8345
|
),
|
|
8141
8346
|
createLobbyMessage: (lobbyId, options) =>
|
|
8142
8347
|
HttpClientRequest.post(`/lobbies/${lobbyId}/messages`).pipe(
|
|
8143
|
-
HttpClientRequest.
|
|
8348
|
+
HttpClientRequest.bodyJsonUnsafe(options),
|
|
8144
8349
|
onRequest(["2xx"], {
|
|
8145
8350
|
"429": "RatelimitedResponse",
|
|
8146
8351
|
"4xx": "ErrorResponse",
|
|
8147
8352
|
}),
|
|
8148
8353
|
),
|
|
8354
|
+
updateLobbyMessageExternalModerationMetadata: (
|
|
8355
|
+
lobbyId,
|
|
8356
|
+
messageId,
|
|
8357
|
+
options,
|
|
8358
|
+
) =>
|
|
8359
|
+
HttpClientRequest.put(
|
|
8360
|
+
`/lobbies/${lobbyId}/messages/${messageId}/moderation-metadata`,
|
|
8361
|
+
).pipe(
|
|
8362
|
+
HttpClientRequest.bodyJsonUnsafe(options),
|
|
8363
|
+
onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" }),
|
|
8364
|
+
),
|
|
8149
8365
|
getMyOauth2Authorization: () =>
|
|
8150
8366
|
HttpClientRequest.get(`/oauth2/@me`).pipe(
|
|
8151
8367
|
onRequest(["2xx"], {
|
|
@@ -8174,21 +8390,33 @@ export const make = (
|
|
|
8174
8390
|
"4xx": "ErrorResponse",
|
|
8175
8391
|
}),
|
|
8176
8392
|
),
|
|
8393
|
+
updateUserMessageExternalModerationMetadata: (
|
|
8394
|
+
userId1,
|
|
8395
|
+
userId2,
|
|
8396
|
+
messageId,
|
|
8397
|
+
options,
|
|
8398
|
+
) =>
|
|
8399
|
+
HttpClientRequest.put(
|
|
8400
|
+
`/partner-sdk/dms/${userId1}/${userId2}/messages/${messageId}/moderation-metadata`,
|
|
8401
|
+
).pipe(
|
|
8402
|
+
HttpClientRequest.bodyJsonUnsafe(options),
|
|
8403
|
+
onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" }),
|
|
8404
|
+
),
|
|
8177
8405
|
partnerSdkUnmergeProvisionalAccount: options =>
|
|
8178
8406
|
HttpClientRequest.post(`/partner-sdk/provisional-accounts/unmerge`).pipe(
|
|
8179
|
-
HttpClientRequest.
|
|
8407
|
+
HttpClientRequest.bodyJsonUnsafe(options),
|
|
8180
8408
|
onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" }),
|
|
8181
8409
|
),
|
|
8182
8410
|
botPartnerSdkUnmergeProvisionalAccount: options =>
|
|
8183
8411
|
HttpClientRequest.post(
|
|
8184
8412
|
`/partner-sdk/provisional-accounts/unmerge/bot`,
|
|
8185
8413
|
).pipe(
|
|
8186
|
-
HttpClientRequest.
|
|
8414
|
+
HttpClientRequest.bodyJsonUnsafe(options),
|
|
8187
8415
|
onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" }),
|
|
8188
8416
|
),
|
|
8189
8417
|
partnerSdkToken: options =>
|
|
8190
8418
|
HttpClientRequest.post(`/partner-sdk/token`).pipe(
|
|
8191
|
-
HttpClientRequest.
|
|
8419
|
+
HttpClientRequest.bodyJsonUnsafe(options),
|
|
8192
8420
|
onRequest(["2xx"], {
|
|
8193
8421
|
"429": "RatelimitedResponse",
|
|
8194
8422
|
"4xx": "ErrorResponse",
|
|
@@ -8196,7 +8424,7 @@ export const make = (
|
|
|
8196
8424
|
),
|
|
8197
8425
|
botPartnerSdkToken: options =>
|
|
8198
8426
|
HttpClientRequest.post(`/partner-sdk/token/bot`).pipe(
|
|
8199
|
-
HttpClientRequest.
|
|
8427
|
+
HttpClientRequest.bodyJsonUnsafe(options),
|
|
8200
8428
|
onRequest(["2xx"], {
|
|
8201
8429
|
"429": "RatelimitedResponse",
|
|
8202
8430
|
"4xx": "ErrorResponse",
|
|
@@ -8211,7 +8439,7 @@ export const make = (
|
|
|
8211
8439
|
),
|
|
8212
8440
|
createStageInstance: options =>
|
|
8213
8441
|
HttpClientRequest.post(`/stage-instances`).pipe(
|
|
8214
|
-
HttpClientRequest.
|
|
8442
|
+
HttpClientRequest.bodyJsonUnsafe(options),
|
|
8215
8443
|
onRequest(["2xx"], {
|
|
8216
8444
|
"429": "RatelimitedResponse",
|
|
8217
8445
|
"4xx": "ErrorResponse",
|
|
@@ -8230,7 +8458,7 @@ export const make = (
|
|
|
8230
8458
|
),
|
|
8231
8459
|
updateStageInstance: (channelId, options) =>
|
|
8232
8460
|
HttpClientRequest.patch(`/stage-instances/${channelId}`).pipe(
|
|
8233
|
-
HttpClientRequest.
|
|
8461
|
+
HttpClientRequest.bodyJsonUnsafe(options),
|
|
8234
8462
|
onRequest(["2xx"], {
|
|
8235
8463
|
"429": "RatelimitedResponse",
|
|
8236
8464
|
"4xx": "ErrorResponse",
|
|
@@ -8266,7 +8494,20 @@ export const make = (
|
|
|
8266
8494
|
),
|
|
8267
8495
|
updateMyUser: options =>
|
|
8268
8496
|
HttpClientRequest.patch(`/users/@me`).pipe(
|
|
8269
|
-
HttpClientRequest.
|
|
8497
|
+
HttpClientRequest.bodyJsonUnsafe(options),
|
|
8498
|
+
onRequest(["2xx"], {
|
|
8499
|
+
"429": "RatelimitedResponse",
|
|
8500
|
+
"4xx": "ErrorResponse",
|
|
8501
|
+
}),
|
|
8502
|
+
),
|
|
8503
|
+
getCurrentUserApplicationEntitlements: (applicationId, options) =>
|
|
8504
|
+
HttpClientRequest.get(
|
|
8505
|
+
`/users/@me/applications/${applicationId}/entitlements`,
|
|
8506
|
+
).pipe(
|
|
8507
|
+
HttpClientRequest.setUrlParams({
|
|
8508
|
+
sku_ids: options?.["sku_ids"] as any,
|
|
8509
|
+
exclude_consumed: options?.["exclude_consumed"] as any,
|
|
8510
|
+
}),
|
|
8270
8511
|
onRequest(["2xx"], {
|
|
8271
8512
|
"429": "RatelimitedResponse",
|
|
8272
8513
|
"4xx": "ErrorResponse",
|
|
@@ -8285,7 +8526,7 @@ export const make = (
|
|
|
8285
8526
|
HttpClientRequest.put(
|
|
8286
8527
|
`/users/@me/applications/${applicationId}/role-connection`,
|
|
8287
8528
|
).pipe(
|
|
8288
|
-
HttpClientRequest.
|
|
8529
|
+
HttpClientRequest.bodyJsonUnsafe(options),
|
|
8289
8530
|
onRequest(["2xx"], {
|
|
8290
8531
|
"429": "RatelimitedResponse",
|
|
8291
8532
|
"4xx": "ErrorResponse",
|
|
@@ -8299,7 +8540,7 @@ export const make = (
|
|
|
8299
8540
|
),
|
|
8300
8541
|
createDm: options =>
|
|
8301
8542
|
HttpClientRequest.post(`/users/@me/channels`).pipe(
|
|
8302
|
-
HttpClientRequest.
|
|
8543
|
+
HttpClientRequest.bodyJsonUnsafe(options),
|
|
8303
8544
|
onRequest(["2xx"], {
|
|
8304
8545
|
"429": "RatelimitedResponse",
|
|
8305
8546
|
"4xx": "ErrorResponse",
|
|
@@ -8363,7 +8604,7 @@ export const make = (
|
|
|
8363
8604
|
),
|
|
8364
8605
|
updateWebhook: (webhookId, options) =>
|
|
8365
8606
|
HttpClientRequest.patch(`/webhooks/${webhookId}`).pipe(
|
|
8366
|
-
HttpClientRequest.
|
|
8607
|
+
HttpClientRequest.bodyJsonUnsafe(options),
|
|
8367
8608
|
onRequest(["2xx"], {
|
|
8368
8609
|
"429": "RatelimitedResponse",
|
|
8369
8610
|
"4xx": "ErrorResponse",
|
|
@@ -8383,7 +8624,7 @@ export const make = (
|
|
|
8383
8624
|
thread_id: options.params?.["thread_id"] as any,
|
|
8384
8625
|
with_components: options.params?.["with_components"] as any,
|
|
8385
8626
|
}),
|
|
8386
|
-
HttpClientRequest.
|
|
8627
|
+
HttpClientRequest.bodyJsonUnsafe(options.payload),
|
|
8387
8628
|
onRequest(["2xx"], {
|
|
8388
8629
|
"429": "RatelimitedResponse",
|
|
8389
8630
|
"4xx": "ErrorResponse",
|
|
@@ -8395,7 +8636,7 @@ export const make = (
|
|
|
8395
8636
|
),
|
|
8396
8637
|
updateWebhookByToken: (webhookId, webhookToken, options) =>
|
|
8397
8638
|
HttpClientRequest.patch(`/webhooks/${webhookId}/${webhookToken}`).pipe(
|
|
8398
|
-
HttpClientRequest.
|
|
8639
|
+
HttpClientRequest.bodyJsonUnsafe(options),
|
|
8399
8640
|
onRequest(["2xx"], {
|
|
8400
8641
|
"429": "RatelimitedResponse",
|
|
8401
8642
|
"4xx": "ErrorResponse",
|
|
@@ -8409,7 +8650,7 @@ export const make = (
|
|
|
8409
8650
|
wait: options.params?.["wait"] as any,
|
|
8410
8651
|
thread_id: options.params?.["thread_id"] as any,
|
|
8411
8652
|
}),
|
|
8412
|
-
HttpClientRequest.
|
|
8653
|
+
HttpClientRequest.bodyJsonUnsafe(options.payload),
|
|
8413
8654
|
onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" }),
|
|
8414
8655
|
),
|
|
8415
8656
|
getOriginalWebhookMessage: (webhookId, webhookToken, options) =>
|
|
@@ -8441,7 +8682,7 @@ export const make = (
|
|
|
8441
8682
|
thread_id: options.params?.["thread_id"] as any,
|
|
8442
8683
|
with_components: options.params?.["with_components"] as any,
|
|
8443
8684
|
}),
|
|
8444
|
-
HttpClientRequest.
|
|
8685
|
+
HttpClientRequest.bodyJsonUnsafe(options.payload),
|
|
8445
8686
|
onRequest(["2xx"], {
|
|
8446
8687
|
"429": "RatelimitedResponse",
|
|
8447
8688
|
"4xx": "ErrorResponse",
|
|
@@ -8476,7 +8717,7 @@ export const make = (
|
|
|
8476
8717
|
thread_id: options.params?.["thread_id"] as any,
|
|
8477
8718
|
with_components: options.params?.["with_components"] as any,
|
|
8478
8719
|
}),
|
|
8479
|
-
HttpClientRequest.
|
|
8720
|
+
HttpClientRequest.bodyJsonUnsafe(options.payload),
|
|
8480
8721
|
onRequest(["2xx"], {
|
|
8481
8722
|
"429": "RatelimitedResponse",
|
|
8482
8723
|
"4xx": "ErrorResponse",
|
|
@@ -8490,7 +8731,7 @@ export const make = (
|
|
|
8490
8731
|
wait: options.params?.["wait"] as any,
|
|
8491
8732
|
thread_id: options.params?.["thread_id"] as any,
|
|
8492
8733
|
}),
|
|
8493
|
-
HttpClientRequest.
|
|
8734
|
+
HttpClientRequest.bodyJsonUnsafe(options.payload),
|
|
8494
8735
|
onRequest(["2xx"], {
|
|
8495
8736
|
"429": "RatelimitedResponse",
|
|
8496
8737
|
"4xx": "ErrorResponse",
|
|
@@ -9637,6 +9878,14 @@ export interface DiscordRest {
|
|
|
9637
9878
|
| DiscordRestError<"RatelimitedResponse", RatelimitedResponse>
|
|
9638
9879
|
| DiscordRestError<"ErrorResponse", ErrorResponse>
|
|
9639
9880
|
>
|
|
9881
|
+
readonly guildRoleMemberCounts: (
|
|
9882
|
+
guildId: string,
|
|
9883
|
+
) => Effect.Effect<
|
|
9884
|
+
GuildRoleMemberCounts200,
|
|
9885
|
+
| HttpClientError.HttpClientError
|
|
9886
|
+
| DiscordRestError<"RatelimitedResponse", RatelimitedResponse>
|
|
9887
|
+
| DiscordRestError<"ErrorResponse", ErrorResponse>
|
|
9888
|
+
>
|
|
9640
9889
|
readonly getGuildRole: (
|
|
9641
9890
|
guildId: string,
|
|
9642
9891
|
roleId: string,
|
|
@@ -9998,6 +10247,40 @@ export interface DiscordRest {
|
|
|
9998
10247
|
| DiscordRestError<"RatelimitedResponse", RatelimitedResponse>
|
|
9999
10248
|
| DiscordRestError<"ErrorResponse", ErrorResponse>
|
|
10000
10249
|
>
|
|
10250
|
+
/**
|
|
10251
|
+
* Get the target users for an invite.
|
|
10252
|
+
*/
|
|
10253
|
+
readonly getInviteTargetUsers: (
|
|
10254
|
+
code: string,
|
|
10255
|
+
) => Effect.Effect<
|
|
10256
|
+
void,
|
|
10257
|
+
| HttpClientError.HttpClientError
|
|
10258
|
+
| DiscordRestError<"RatelimitedResponse", RatelimitedResponse>
|
|
10259
|
+
| DiscordRestError<"ErrorResponse", ErrorResponse>
|
|
10260
|
+
>
|
|
10261
|
+
/**
|
|
10262
|
+
* Update the target users for an existing invite.
|
|
10263
|
+
*/
|
|
10264
|
+
readonly updateInviteTargetUsers: (
|
|
10265
|
+
code: string,
|
|
10266
|
+
options: UpdateInviteTargetUsersRequest,
|
|
10267
|
+
) => Effect.Effect<
|
|
10268
|
+
void,
|
|
10269
|
+
| HttpClientError.HttpClientError
|
|
10270
|
+
| DiscordRestError<"RatelimitedResponse", RatelimitedResponse>
|
|
10271
|
+
| DiscordRestError<"ErrorResponse", ErrorResponse>
|
|
10272
|
+
>
|
|
10273
|
+
/**
|
|
10274
|
+
* Get the target users job status for an invite.
|
|
10275
|
+
*/
|
|
10276
|
+
readonly getInviteTargetUsersJobStatus: (
|
|
10277
|
+
code: string,
|
|
10278
|
+
) => Effect.Effect<
|
|
10279
|
+
TargetUsersJobStatusResponse,
|
|
10280
|
+
| HttpClientError.HttpClientError
|
|
10281
|
+
| DiscordRestError<"RatelimitedResponse", RatelimitedResponse>
|
|
10282
|
+
| DiscordRestError<"ErrorResponse", ErrorResponse>
|
|
10283
|
+
>
|
|
10001
10284
|
readonly createOrJoinLobby: (
|
|
10002
10285
|
options: CreateOrJoinLobbyRequest,
|
|
10003
10286
|
) => Effect.Effect<
|
|
@@ -10111,6 +10394,19 @@ export interface DiscordRest {
|
|
|
10111
10394
|
| DiscordRestError<"RatelimitedResponse", RatelimitedResponse>
|
|
10112
10395
|
| DiscordRestError<"ErrorResponse", ErrorResponse>
|
|
10113
10396
|
>
|
|
10397
|
+
/**
|
|
10398
|
+
* Update the external moderation metadata for a lobby message.
|
|
10399
|
+
*/
|
|
10400
|
+
readonly updateLobbyMessageExternalModerationMetadata: (
|
|
10401
|
+
lobbyId: string,
|
|
10402
|
+
messageId: string,
|
|
10403
|
+
options: UpdateLobbyMessageExternalModerationMetadataRequest,
|
|
10404
|
+
) => Effect.Effect<
|
|
10405
|
+
void,
|
|
10406
|
+
| HttpClientError.HttpClientError
|
|
10407
|
+
| DiscordRestError<"RatelimitedResponse", RatelimitedResponse>
|
|
10408
|
+
| DiscordRestError<"ErrorResponse", ErrorResponse>
|
|
10409
|
+
>
|
|
10114
10410
|
readonly getMyOauth2Authorization: () => Effect.Effect<
|
|
10115
10411
|
OAuth2GetAuthorizationResponse,
|
|
10116
10412
|
| HttpClientError.HttpClientError
|
|
@@ -10135,6 +10431,20 @@ export interface DiscordRest {
|
|
|
10135
10431
|
| DiscordRestError<"RatelimitedResponse", RatelimitedResponse>
|
|
10136
10432
|
| DiscordRestError<"ErrorResponse", ErrorResponse>
|
|
10137
10433
|
>
|
|
10434
|
+
/**
|
|
10435
|
+
* Update the external moderation metadata for a user message (DM).
|
|
10436
|
+
*/
|
|
10437
|
+
readonly updateUserMessageExternalModerationMetadata: (
|
|
10438
|
+
userId1: string,
|
|
10439
|
+
userId2: string,
|
|
10440
|
+
messageId: string,
|
|
10441
|
+
options: UpdateUserMessageExternalModerationMetadataRequest,
|
|
10442
|
+
) => Effect.Effect<
|
|
10443
|
+
void,
|
|
10444
|
+
| HttpClientError.HttpClientError
|
|
10445
|
+
| DiscordRestError<"RatelimitedResponse", RatelimitedResponse>
|
|
10446
|
+
| DiscordRestError<"ErrorResponse", ErrorResponse>
|
|
10447
|
+
>
|
|
10138
10448
|
readonly partnerSdkUnmergeProvisionalAccount: (
|
|
10139
10449
|
options: PartnerSdkUnmergeProvisionalAccountRequest,
|
|
10140
10450
|
) => Effect.Effect<
|
|
@@ -10242,6 +10552,15 @@ export interface DiscordRest {
|
|
|
10242
10552
|
| DiscordRestError<"RatelimitedResponse", RatelimitedResponse>
|
|
10243
10553
|
| DiscordRestError<"ErrorResponse", ErrorResponse>
|
|
10244
10554
|
>
|
|
10555
|
+
readonly getCurrentUserApplicationEntitlements: (
|
|
10556
|
+
applicationId: string,
|
|
10557
|
+
options?: GetCurrentUserApplicationEntitlementsParams | undefined,
|
|
10558
|
+
) => Effect.Effect<
|
|
10559
|
+
GetCurrentUserApplicationEntitlements200,
|
|
10560
|
+
| HttpClientError.HttpClientError
|
|
10561
|
+
| DiscordRestError<"RatelimitedResponse", RatelimitedResponse>
|
|
10562
|
+
| DiscordRestError<"ErrorResponse", ErrorResponse>
|
|
10563
|
+
>
|
|
10245
10564
|
readonly getApplicationUserRoleConnection: (
|
|
10246
10565
|
applicationId: string,
|
|
10247
10566
|
) => Effect.Effect<
|