mirror of
https://github.com/discordjs/discord-api-types.git
synced 2026-05-28 06:20:11 +00:00
Compare commits
52 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
aca4683388 | ||
|
|
e316373609 | ||
|
|
cf57fc92dd | ||
|
|
14963d61d4 | ||
|
|
041583d8da | ||
|
|
35a4084647 | ||
|
|
35867c19e6 | ||
|
|
8eb66a1512 | ||
|
|
5a07684ef9 | ||
|
|
464a9c8cbf | ||
|
|
4d3d83d09e | ||
|
|
af3907b106 | ||
|
|
fa05a7503f | ||
|
|
36567c75e8 | ||
|
|
51106df44d | ||
|
|
7df81ce484 | ||
|
|
28dfa78080 | ||
|
|
9f7933dd03 | ||
|
|
ae09e2b9e4 | ||
|
|
d3dc8c13d7 | ||
|
|
e665ddc003 | ||
|
|
a4063bd034 | ||
|
|
3659c59ce7 | ||
|
|
e849c17e84 | ||
|
|
8947930088 | ||
|
|
ad46fc3d38 | ||
|
|
4d1f9d96bc | ||
|
|
72445f8ae2 | ||
|
|
1a37ae3eea | ||
|
|
b05df17466 | ||
|
|
51705cba50 | ||
|
|
77ffcfecb9 | ||
|
|
3cb4bb409b | ||
|
|
8db0929ba1 | ||
|
|
5e096f7e61 | ||
|
|
4a6bfd2a56 | ||
|
|
f35fc69267 | ||
|
|
2a7c1d271f | ||
|
|
b7e8a9f527 | ||
|
|
e428c7590f | ||
|
|
5f9c1e1b1c | ||
|
|
87b52b7890 | ||
|
|
256911b9ad | ||
|
|
26a6dd5c77 | ||
|
|
a45f0161e7 | ||
|
|
53f47105dc | ||
|
|
36b23c126b | ||
|
|
53ac69e1a7 | ||
|
|
fe08e2d1e2 | ||
|
|
4afd0c13fd | ||
|
|
03f02a5a9e | ||
|
|
b4285c1d7e |
4
.github/workflows/cicd.yml
vendored
4
.github/workflows/cicd.yml
vendored
@@ -12,13 +12,13 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout Project
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v5
|
||||
|
||||
- name: Add problem matcher
|
||||
run: echo "::add-matcher::.github/problemMatchers/eslint.json" && echo "::add-matcher::.github/problemMatchers/tsc.json"
|
||||
|
||||
- name: Use Node.js
|
||||
uses: actions/setup-node@v4
|
||||
uses: actions/setup-node@v5
|
||||
with:
|
||||
cache: 'yarn'
|
||||
node-version-file: package.json
|
||||
|
||||
@@ -17,12 +17,12 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v5
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Use Node.js
|
||||
uses: actions/setup-node@v4
|
||||
uses: actions/setup-node@v5
|
||||
with:
|
||||
cache: 'yarn'
|
||||
node-version-file: package.json
|
||||
@@ -73,12 +73,12 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v5
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Use Node.js
|
||||
uses: actions/setup-node@v4
|
||||
uses: actions/setup-node@v5
|
||||
with:
|
||||
cache: 'yarn'
|
||||
node-version-file: package.json
|
||||
|
||||
6
.github/workflows/documentation.yml
vendored
6
.github/workflows/documentation.yml
vendored
@@ -39,12 +39,12 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout discord-api-types
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v5
|
||||
with:
|
||||
ref: ${{ inputs.ref || '' }}
|
||||
|
||||
- name: Use Node.js
|
||||
uses: actions/setup-node@v4
|
||||
uses: actions/setup-node@v5
|
||||
with:
|
||||
cache: 'yarn'
|
||||
node-version-file: package.json
|
||||
@@ -56,7 +56,7 @@ jobs:
|
||||
# pnpm --filter="*api-*" --filter="scripts" --filter="actions" run build
|
||||
|
||||
- name: Checkout discord.js
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v5
|
||||
with:
|
||||
repository: discordjs/discord.js
|
||||
path: djs
|
||||
|
||||
2
.github/workflows/labelsync.yml
vendored
2
.github/workflows/labelsync.yml
vendored
@@ -14,7 +14,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v5
|
||||
|
||||
- name: Label sync
|
||||
uses: crazy-max/ghaction-github-labeler@v5
|
||||
|
||||
2
.github/workflows/pr-automation.yml
vendored
2
.github/workflows/pr-automation.yml
vendored
@@ -11,7 +11,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Automatically label PR
|
||||
uses: actions/labeler@v5
|
||||
uses: actions/labeler@v6
|
||||
with:
|
||||
repo-token: '${{ secrets.GITHUB_TOKEN }}'
|
||||
sync-labels: true
|
||||
|
||||
4
.github/workflows/publish-next.yml
vendored
4
.github/workflows/publish-next.yml
vendored
@@ -23,12 +23,12 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v5
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Use Node.js
|
||||
uses: actions/setup-node@v4
|
||||
uses: actions/setup-node@v5
|
||||
with:
|
||||
cache: 'yarn'
|
||||
node-version-file: package.json
|
||||
|
||||
4
.github/workflows/validate-pull-request.yml
vendored
4
.github/workflows/validate-pull-request.yml
vendored
@@ -10,10 +10,10 @@ jobs:
|
||||
pull-requests: write
|
||||
steps:
|
||||
- name: Checkout Project
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v5
|
||||
|
||||
- name: Use Node.js
|
||||
uses: actions/setup-node@v4
|
||||
uses: actions/setup-node@v5
|
||||
with:
|
||||
cache: 'yarn'
|
||||
node-version-file: package.json
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -2,7 +2,7 @@ enableGlobalCache: true
|
||||
|
||||
nodeLinker: node-modules
|
||||
|
||||
yarnPath: .yarn/releases/yarn-4.9.2.cjs
|
||||
yarnPath: .yarn/releases/yarn-4.9.4.cjs
|
||||
|
||||
plugins:
|
||||
- path: ./.yarn/plugins/postinstallDev.cjs
|
||||
|
||||
82
CHANGELOG.md
82
CHANGELOG.md
@@ -1,3 +1,85 @@
|
||||
## [0.38.25](https://github.com/discordjs/discord-api-types/compare/0.38.24...0.38.25) (2025-09-15)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* add RateLimited gateway event ([#1334](https://github.com/discordjs/discord-api-types/issues/1334)) ([14963d6](https://github.com/discordjs/discord-api-types/commit/14963d61d488af2be8d3655651fd0677ad4c46ed))
|
||||
|
||||
|
||||
|
||||
## [0.38.24](https://github.com/discordjs/discord-api-types/compare/0.38.23...0.38.24) (2025-09-10)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* **RESTPatchAPICurrentGuildMemberJSONBody:** Add `banner`, `avatar`, and `bio` ([#1356](https://github.com/discordjs/discord-api-types/issues/1356)) ([35a4084](https://github.com/discordjs/discord-api-types/commit/35a40846473eebfe5245656ee5437347ff2fa88f))
|
||||
* **RESTPostAPIChannelThreadsResult:** narrow response ([#1364](https://github.com/discordjs/discord-api-types/issues/1364)) ([8eb66a1](https://github.com/discordjs/discord-api-types/commit/8eb66a1512e5b8c57ba7e4a85a18380664ac6219))
|
||||
* Update invite types ([#1365](https://github.com/discordjs/discord-api-types/issues/1365)) ([35867c1](https://github.com/discordjs/discord-api-types/commit/35867c19e6942e82ac6b2bcd93f61853b0b41666))
|
||||
|
||||
|
||||
|
||||
## [0.38.23](https://github.com/discordjs/discord-api-types/compare/0.38.22...0.38.23) (2025-09-05)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* add missing text display in modal submission ([#1362](https://github.com/discordjs/discord-api-types/issues/1362)) ([464a9c8](https://github.com/discordjs/discord-api-types/commit/464a9c8cbf613428c3da6b3a9ebd0da4bd827c2b))
|
||||
* **RESTPatchAPIWebhookWithTokenMessageJSONBody:** add `flags` ([#1354](https://github.com/discordjs/discord-api-types/issues/1354)) ([af3907b](https://github.com/discordjs/discord-api-types/commit/af3907b10690c224dcd3106127fd67491262cc6c))
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* add 400001 ([#1352](https://github.com/discordjs/discord-api-types/issues/1352)) ([ae09e2b](https://github.com/discordjs/discord-api-types/commit/ae09e2b9e47460b07907fc3b6e317bc1ae426663))
|
||||
* More label components and text display in modals ([#1351](https://github.com/discordjs/discord-api-types/issues/1351)) ([fa05a75](https://github.com/discordjs/discord-api-types/commit/fa05a7503f59017efc16ba2ca6cfb3fc99d331a3))
|
||||
|
||||
|
||||
|
||||
## [0.38.22](https://github.com/discordjs/discord-api-types/compare/0.38.21...0.38.22) (2025-08-29)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* Support select in modals ([#1321](https://github.com/discordjs/discord-api-types/issues/1321)) ([3659c59](https://github.com/discordjs/discord-api-types/commit/3659c59ce7b3ee8c0281bf28499e733e1bc0752b))
|
||||
|
||||
|
||||
|
||||
## [0.38.21](https://github.com/discordjs/discord-api-types/compare/0.38.20...0.38.21) (2025-08-21)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* guest invites ([#1290](https://github.com/discordjs/discord-api-types/issues/1290)) ([1a37ae3](https://github.com/discordjs/discord-api-types/commit/1a37ae3eea156108e1add538b1d42c5fc2ce08ee))
|
||||
* **PermissionFlagsBits:** add `PinMessages` ([#1340](https://github.com/discordjs/discord-api-types/issues/1340)) ([b05df17](https://github.com/discordjs/discord-api-types/commit/b05df17466ade5bf58578b8a230d9cb5ec9e1024))
|
||||
|
||||
|
||||
|
||||
## [0.38.20](https://github.com/discordjs/discord-api-types/compare/0.38.19...0.38.20) (2025-08-14)
|
||||
|
||||
|
||||
|
||||
## [0.38.19](https://github.com/discordjs/discord-api-types/compare/0.38.18...0.38.19) (2025-08-12)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* **GatewayActivity:** add url & status display type fields ([#1326](https://github.com/discordjs/discord-api-types/issues/1326)) ([5f9c1e1](https://github.com/discordjs/discord-api-types/commit/5f9c1e1b1c9f1a63d80718629fb2775b7bae62b3))
|
||||
|
||||
|
||||
|
||||
## [0.38.18](https://github.com/discordjs/discord-api-types/compare/0.38.17...0.38.18) (2025-07-31)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* Deprecate API related to guild ownership ([#1316](https://github.com/discordjs/discord-api-types/issues/1316)) ([4afd0c1](https://github.com/discordjs/discord-api-types/commit/4afd0c13fde05fa7117ecdeaf20534545cfdb005))
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* **GuildFeature:** add `GUILD_TAGS` ([#1315](https://github.com/discordjs/discord-api-types/issues/1315)) ([03f02a5](https://github.com/discordjs/discord-api-types/commit/03f02a5a9ee2e533b58b7790c4deb7ad571e5a92))
|
||||
|
||||
|
||||
|
||||
## [0.38.17](https://github.com/discordjs/discord-api-types/compare/0.38.16...0.38.17) (2025-07-24)
|
||||
|
||||
|
||||
|
||||
82
deno/CHANGELOG.md
generated
82
deno/CHANGELOG.md
generated
@@ -1,3 +1,85 @@
|
||||
## [0.38.25](https://github.com/discordjs/discord-api-types/compare/0.38.24...0.38.25) (2025-09-15)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* add RateLimited gateway event ([#1334](https://github.com/discordjs/discord-api-types/issues/1334)) ([14963d6](https://github.com/discordjs/discord-api-types/commit/14963d61d488af2be8d3655651fd0677ad4c46ed))
|
||||
|
||||
|
||||
|
||||
## [0.38.24](https://github.com/discordjs/discord-api-types/compare/0.38.23...0.38.24) (2025-09-10)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* **RESTPatchAPICurrentGuildMemberJSONBody:** Add `banner`, `avatar`, and `bio` ([#1356](https://github.com/discordjs/discord-api-types/issues/1356)) ([35a4084](https://github.com/discordjs/discord-api-types/commit/35a40846473eebfe5245656ee5437347ff2fa88f))
|
||||
* **RESTPostAPIChannelThreadsResult:** narrow response ([#1364](https://github.com/discordjs/discord-api-types/issues/1364)) ([8eb66a1](https://github.com/discordjs/discord-api-types/commit/8eb66a1512e5b8c57ba7e4a85a18380664ac6219))
|
||||
* Update invite types ([#1365](https://github.com/discordjs/discord-api-types/issues/1365)) ([35867c1](https://github.com/discordjs/discord-api-types/commit/35867c19e6942e82ac6b2bcd93f61853b0b41666))
|
||||
|
||||
|
||||
|
||||
## [0.38.23](https://github.com/discordjs/discord-api-types/compare/0.38.22...0.38.23) (2025-09-05)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* add missing text display in modal submission ([#1362](https://github.com/discordjs/discord-api-types/issues/1362)) ([464a9c8](https://github.com/discordjs/discord-api-types/commit/464a9c8cbf613428c3da6b3a9ebd0da4bd827c2b))
|
||||
* **RESTPatchAPIWebhookWithTokenMessageJSONBody:** add `flags` ([#1354](https://github.com/discordjs/discord-api-types/issues/1354)) ([af3907b](https://github.com/discordjs/discord-api-types/commit/af3907b10690c224dcd3106127fd67491262cc6c))
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* add 400001 ([#1352](https://github.com/discordjs/discord-api-types/issues/1352)) ([ae09e2b](https://github.com/discordjs/discord-api-types/commit/ae09e2b9e47460b07907fc3b6e317bc1ae426663))
|
||||
* More label components and text display in modals ([#1351](https://github.com/discordjs/discord-api-types/issues/1351)) ([fa05a75](https://github.com/discordjs/discord-api-types/commit/fa05a7503f59017efc16ba2ca6cfb3fc99d331a3))
|
||||
|
||||
|
||||
|
||||
## [0.38.22](https://github.com/discordjs/discord-api-types/compare/0.38.21...0.38.22) (2025-08-29)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* Support select in modals ([#1321](https://github.com/discordjs/discord-api-types/issues/1321)) ([3659c59](https://github.com/discordjs/discord-api-types/commit/3659c59ce7b3ee8c0281bf28499e733e1bc0752b))
|
||||
|
||||
|
||||
|
||||
## [0.38.21](https://github.com/discordjs/discord-api-types/compare/0.38.20...0.38.21) (2025-08-21)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* guest invites ([#1290](https://github.com/discordjs/discord-api-types/issues/1290)) ([1a37ae3](https://github.com/discordjs/discord-api-types/commit/1a37ae3eea156108e1add538b1d42c5fc2ce08ee))
|
||||
* **PermissionFlagsBits:** add `PinMessages` ([#1340](https://github.com/discordjs/discord-api-types/issues/1340)) ([b05df17](https://github.com/discordjs/discord-api-types/commit/b05df17466ade5bf58578b8a230d9cb5ec9e1024))
|
||||
|
||||
|
||||
|
||||
## [0.38.20](https://github.com/discordjs/discord-api-types/compare/0.38.19...0.38.20) (2025-08-14)
|
||||
|
||||
|
||||
|
||||
## [0.38.19](https://github.com/discordjs/discord-api-types/compare/0.38.18...0.38.19) (2025-08-12)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* **GatewayActivity:** add url & status display type fields ([#1326](https://github.com/discordjs/discord-api-types/issues/1326)) ([5f9c1e1](https://github.com/discordjs/discord-api-types/commit/5f9c1e1b1c9f1a63d80718629fb2775b7bae62b3))
|
||||
|
||||
|
||||
|
||||
## [0.38.18](https://github.com/discordjs/discord-api-types/compare/0.38.17...0.38.18) (2025-07-31)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* Deprecate API related to guild ownership ([#1316](https://github.com/discordjs/discord-api-types/issues/1316)) ([4afd0c1](https://github.com/discordjs/discord-api-types/commit/4afd0c13fde05fa7117ecdeaf20534545cfdb005))
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* **GuildFeature:** add `GUILD_TAGS` ([#1315](https://github.com/discordjs/discord-api-types/issues/1315)) ([03f02a5](https://github.com/discordjs/discord-api-types/commit/03f02a5a9ee2e533b58b7790c4deb7ad571e5a92))
|
||||
|
||||
|
||||
|
||||
## [0.38.17](https://github.com/discordjs/discord-api-types/compare/0.38.16...0.38.17) (2025-07-24)
|
||||
|
||||
|
||||
|
||||
83
deno/gateway/v10.ts
generated
83
deno/gateway/v10.ts
generated
@@ -26,7 +26,6 @@ import type {
|
||||
GatewayPresenceUpdate,
|
||||
GatewayThreadListSync,
|
||||
GatewayThreadMembersUpdate as RawGatewayThreadMembersUpdate,
|
||||
APIVoiceState,
|
||||
InviteTargetType,
|
||||
PresenceUpdateStatus,
|
||||
AutoModerationRuleTriggerType,
|
||||
@@ -47,6 +46,7 @@ import type {
|
||||
APIGuildMemberUser,
|
||||
GatewayGuildMembersChunkPresence,
|
||||
APIBaseMessage,
|
||||
APIVoiceStateMember,
|
||||
} from '../payloads/v10/mod.ts';
|
||||
import type { ReactionType } from '../rest/v10/mod.ts';
|
||||
import type { _Nullable } from '../utils/internals.ts';
|
||||
@@ -286,6 +286,7 @@ export enum GatewayDispatchEvents {
|
||||
MessageReactionRemoveEmoji = 'MESSAGE_REACTION_REMOVE_EMOJI',
|
||||
MessageUpdate = 'MESSAGE_UPDATE',
|
||||
PresenceUpdate = 'PRESENCE_UPDATE',
|
||||
RateLimited = 'RATE_LIMITED',
|
||||
Ready = 'READY',
|
||||
Resumed = 'RESUMED',
|
||||
StageInstanceCreate = 'STAGE_INSTANCE_CREATE',
|
||||
@@ -374,6 +375,7 @@ export type GatewayDispatchPayload =
|
||||
| GatewayMessageReactionRemoveEmojiDispatch
|
||||
| GatewayMessageUpdateDispatch
|
||||
| GatewayPresenceUpdateDispatch
|
||||
| GatewayRateLimitedDispatch
|
||||
| GatewayReadyDispatch
|
||||
| GatewayResumedDispatch
|
||||
| GatewaySoundboardSoundsDispatch
|
||||
@@ -879,7 +881,7 @@ export interface GatewayGuildCreateDispatchData extends APIGuild {
|
||||
*
|
||||
* @see {@link https://discord.com/developers/docs/resources/voice#voice-state-object}
|
||||
*/
|
||||
voice_states: APIBaseVoiceState[];
|
||||
voice_states: GatewayVoiceStateUpdateDispatchData[];
|
||||
/**
|
||||
* Users in the guild
|
||||
*
|
||||
@@ -1134,7 +1136,7 @@ export type GatewayGuildMemberUpdateDispatch = _DataPayload<
|
||||
* @see {@link https://discord.com/developers/docs/topics/gateway-events#guild-member-update}
|
||||
*/
|
||||
export interface GatewayGuildMemberUpdateDispatchData
|
||||
extends _Nullable<APIGuildMemberJoined>,
|
||||
extends APIGuildMemberJoined,
|
||||
APIBaseGuildMember,
|
||||
Partial<APIBaseVoiceGuildMember>,
|
||||
Partial<APIFlaggedGuildMember>,
|
||||
@@ -1560,6 +1562,10 @@ export interface GatewayInviteCreateDispatchData {
|
||||
* How many times the invite has been used (always will be `0`)
|
||||
*/
|
||||
uses: 0;
|
||||
/**
|
||||
* The expiration date of this invite.
|
||||
*/
|
||||
expires_at: string | null;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1620,7 +1626,7 @@ export interface APIGuildMemberNoUser
|
||||
extends APIBaseGuildMember,
|
||||
APIFlaggedGuildMember,
|
||||
APIGuildMemberAvatar,
|
||||
APIGuildMemberJoined,
|
||||
NonNullable<APIGuildMemberJoined>,
|
||||
APIBaseVoiceGuildMember {}
|
||||
|
||||
export interface APIUserWithMember extends APIUser {
|
||||
@@ -2098,7 +2104,7 @@ export type GatewayVoiceStateUpdateDispatch = _DataPayload<
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/topics/gateway-events#voice-state-update}
|
||||
*/
|
||||
export type GatewayVoiceStateUpdateDispatchData = APIVoiceState;
|
||||
export interface GatewayVoiceStateUpdateDispatchData extends APIBaseVoiceState, APIVoiceStateMember {}
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/topics/gateway-events#voice-server-update}
|
||||
@@ -2213,6 +2219,73 @@ export interface GatewayMessagePollVoteDispatchData {
|
||||
answer_id: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/events/gateway-events#rate-limited}
|
||||
*/
|
||||
export type GatewayRateLimitedDispatch<
|
||||
Opcode extends keyof GatewayOpcodeRateLimitMetadataMap = keyof GatewayOpcodeRateLimitMetadataMap,
|
||||
> = _DataPayload<GatewayDispatchEvents.RateLimited, GatewayRateLimitedDispatchData<Opcode>>;
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/events/gateway-events#rate-limited}
|
||||
*/
|
||||
export type GatewayRateLimitedRequestGuildMembersDispatch =
|
||||
GatewayRateLimitedDispatch<GatewayOpcodes.RequestGuildMembers>;
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/events/gateway-events#rate-limited}
|
||||
*/
|
||||
export interface GatewayRateLimitedDispatchData<
|
||||
Opcode extends keyof GatewayOpcodeRateLimitMetadataMap = keyof GatewayOpcodeRateLimitMetadataMap,
|
||||
> {
|
||||
/**
|
||||
* {@link GatewayOpcodes | Gateway opcode} of the event that was rate limited
|
||||
*/
|
||||
opcode: Opcode;
|
||||
/**
|
||||
* The number of seconds to wait before submitting another request
|
||||
*/
|
||||
retry_after: number;
|
||||
/**
|
||||
* Metadata for the event that was rate limited
|
||||
*/
|
||||
meta: GatewayOpcodeRateLimitMetadataMap[Opcode];
|
||||
}
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/events/gateway-events#rate-limited}
|
||||
*/
|
||||
export type GatewayRateLimitedRequestGuildMembersDispatchData =
|
||||
GatewayRateLimitedDispatchData<GatewayOpcodes.RequestGuildMembers>;
|
||||
|
||||
/**
|
||||
* Map of gateway opcodes to their rate limit metadata types
|
||||
*
|
||||
* @see {@link https://discord.com/developers/docs/events/gateway-events#rate-limited-rate-limit-metadata-for-opcode-structure}
|
||||
*/
|
||||
export interface GatewayOpcodeRateLimitMetadataMap {
|
||||
[GatewayOpcodes.RequestGuildMembers]: GatewayRequestGuildMemberRateLimitMetadata;
|
||||
}
|
||||
|
||||
/**
|
||||
* Types of metadata that can be received in a {@link GatewayRateLimitedDispatchData.meta} field
|
||||
*/
|
||||
export type GatewayRateLimitedMetadata = GatewayOpcodeRateLimitMetadataMap[keyof GatewayOpcodeRateLimitMetadataMap];
|
||||
|
||||
/**
|
||||
* Rate limit metadata for the {@link GatewayOpcodes.RequestGuildMembers} opcode
|
||||
*/
|
||||
export interface GatewayRequestGuildMemberRateLimitMetadata {
|
||||
/**
|
||||
* Id of the guild members were requested for
|
||||
*/
|
||||
guild_id: Snowflake;
|
||||
/**
|
||||
* Nonce used to identify the {@link GatewayGuildMembersChunkDispatch} response
|
||||
*/
|
||||
nonce?: string;
|
||||
}
|
||||
|
||||
// #endregion Dispatch Payloads
|
||||
|
||||
// #region Sendable Payloads
|
||||
|
||||
83
deno/gateway/v9.ts
generated
83
deno/gateway/v9.ts
generated
@@ -26,7 +26,6 @@ import type {
|
||||
GatewayPresenceUpdate,
|
||||
GatewayThreadListSync,
|
||||
GatewayThreadMembersUpdate as RawGatewayThreadMembersUpdate,
|
||||
APIVoiceState,
|
||||
InviteTargetType,
|
||||
PresenceUpdateStatus,
|
||||
AutoModerationRuleTriggerType,
|
||||
@@ -47,6 +46,7 @@ import type {
|
||||
GatewayGuildMembersChunkPresence,
|
||||
APIBaseMessage,
|
||||
APIGuildMemberJoined,
|
||||
APIVoiceStateMember,
|
||||
} from '../payloads/v9/mod.ts';
|
||||
import type { ReactionType } from '../rest/v9/mod.ts';
|
||||
import type { _Nullable } from '../utils/internals.ts';
|
||||
@@ -285,6 +285,7 @@ export enum GatewayDispatchEvents {
|
||||
MessageReactionRemoveEmoji = 'MESSAGE_REACTION_REMOVE_EMOJI',
|
||||
MessageUpdate = 'MESSAGE_UPDATE',
|
||||
PresenceUpdate = 'PRESENCE_UPDATE',
|
||||
RateLimited = 'RATE_LIMITED',
|
||||
Ready = 'READY',
|
||||
Resumed = 'RESUMED',
|
||||
StageInstanceCreate = 'STAGE_INSTANCE_CREATE',
|
||||
@@ -373,6 +374,7 @@ export type GatewayDispatchPayload =
|
||||
| GatewayMessageReactionRemoveEmojiDispatch
|
||||
| GatewayMessageUpdateDispatch
|
||||
| GatewayPresenceUpdateDispatch
|
||||
| GatewayRateLimitedDispatch
|
||||
| GatewayReadyDispatch
|
||||
| GatewayResumedDispatch
|
||||
| GatewaySoundboardSoundsDispatch
|
||||
@@ -878,7 +880,7 @@ export interface GatewayGuildCreateDispatchData extends APIGuild {
|
||||
*
|
||||
* @see {@link https://discord.com/developers/docs/resources/voice#voice-state-object}
|
||||
*/
|
||||
voice_states: APIBaseVoiceState[];
|
||||
voice_states: GatewayVoiceStateUpdateDispatchData[];
|
||||
/**
|
||||
* Users in the guild
|
||||
*
|
||||
@@ -1133,7 +1135,7 @@ export type GatewayGuildMemberUpdateDispatch = _DataPayload<
|
||||
* @see {@link https://discord.com/developers/docs/topics/gateway-events#guild-member-update}
|
||||
*/
|
||||
export interface GatewayGuildMemberUpdateDispatchData
|
||||
extends _Nullable<APIGuildMemberJoined>,
|
||||
extends APIGuildMemberJoined,
|
||||
APIBaseGuildMember,
|
||||
Partial<APIBaseVoiceGuildMember>,
|
||||
Partial<APIFlaggedGuildMember>,
|
||||
@@ -1559,6 +1561,10 @@ export interface GatewayInviteCreateDispatchData {
|
||||
* How many times the invite has been used (always will be `0`)
|
||||
*/
|
||||
uses: 0;
|
||||
/**
|
||||
* The expiration date of this invite.
|
||||
*/
|
||||
expires_at: string | null;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1619,7 +1625,7 @@ export interface APIGuildMemberNoUser
|
||||
extends APIBaseGuildMember,
|
||||
APIFlaggedGuildMember,
|
||||
APIGuildMemberAvatar,
|
||||
APIGuildMemberJoined,
|
||||
NonNullable<APIGuildMemberJoined>,
|
||||
APIBaseVoiceGuildMember {}
|
||||
|
||||
export interface APIUserWithMember extends APIUser {
|
||||
@@ -2097,7 +2103,7 @@ export type GatewayVoiceStateUpdateDispatch = _DataPayload<
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/topics/gateway-events#voice-state-update}
|
||||
*/
|
||||
export type GatewayVoiceStateUpdateDispatchData = APIVoiceState;
|
||||
export interface GatewayVoiceStateUpdateDispatchData extends APIBaseVoiceState, APIVoiceStateMember {}
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/topics/gateway-events#voice-server-update}
|
||||
@@ -2212,6 +2218,73 @@ export interface GatewayMessagePollVoteDispatchData {
|
||||
answer_id: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/events/gateway-events#rate-limited}
|
||||
*/
|
||||
export type GatewayRateLimitedDispatch<
|
||||
Opcode extends keyof GatewayOpcodeRateLimitMetadataMap = keyof GatewayOpcodeRateLimitMetadataMap,
|
||||
> = _DataPayload<GatewayDispatchEvents.RateLimited, GatewayRateLimitedDispatchData<Opcode>>;
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/events/gateway-events#rate-limited}
|
||||
*/
|
||||
export type GatewayRateLimitedRequestGuildMembersDispatch =
|
||||
GatewayRateLimitedDispatch<GatewayOpcodes.RequestGuildMembers>;
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/events/gateway-events#rate-limited}
|
||||
*/
|
||||
export interface GatewayRateLimitedDispatchData<
|
||||
Opcode extends keyof GatewayOpcodeRateLimitMetadataMap = keyof GatewayOpcodeRateLimitMetadataMap,
|
||||
> {
|
||||
/**
|
||||
* {@link GatewayOpcodes | Gateway opcode} of the event that was rate limited
|
||||
*/
|
||||
opcode: Opcode;
|
||||
/**
|
||||
* The number of seconds to wait before submitting another request
|
||||
*/
|
||||
retry_after: number;
|
||||
/**
|
||||
* Metadata for the event that was rate limited
|
||||
*/
|
||||
meta: GatewayOpcodeRateLimitMetadataMap[Opcode];
|
||||
}
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/events/gateway-events#rate-limited}
|
||||
*/
|
||||
export type GatewayRateLimitedRequestGuildMembersDispatchData =
|
||||
GatewayRateLimitedDispatchData<GatewayOpcodes.RequestGuildMembers>;
|
||||
|
||||
/**
|
||||
* Map of gateway opcodes to their rate limit metadata types
|
||||
*
|
||||
* @see {@link https://discord.com/developers/docs/events/gateway-events#rate-limited-rate-limit-metadata-for-opcode-structure}
|
||||
*/
|
||||
export interface GatewayOpcodeRateLimitMetadataMap {
|
||||
[GatewayOpcodes.RequestGuildMembers]: GatewayRequestGuildMemberRateLimitMetadata;
|
||||
}
|
||||
|
||||
/**
|
||||
* Types of metadata that can be received in a {@link GatewayRateLimitedDispatchData.meta} field
|
||||
*/
|
||||
export type GatewayRateLimitedMetadata = GatewayOpcodeRateLimitMetadataMap[keyof GatewayOpcodeRateLimitMetadataMap];
|
||||
|
||||
/**
|
||||
* Rate limit metadata for the {@link GatewayOpcodes.RequestGuildMembers} opcode
|
||||
*/
|
||||
export interface GatewayRequestGuildMemberRateLimitMetadata {
|
||||
/**
|
||||
* Id of the guild members were requested for
|
||||
*/
|
||||
guild_id: Snowflake;
|
||||
/**
|
||||
* Nonce used to identify the {@link GatewayGuildMembersChunkDispatch} response
|
||||
*/
|
||||
nonce?: string;
|
||||
}
|
||||
|
||||
// #endregion Dispatch Payloads
|
||||
|
||||
// #region Sendable Payloads
|
||||
|
||||
6
deno/payloads/common.ts
generated
6
deno/payloads/common.ts
generated
@@ -288,6 +288,12 @@ export const PermissionFlagsBits = {
|
||||
* Applies to channel types: Text, Voice, Stage
|
||||
*/
|
||||
UseExternalApps: 1n << 50n,
|
||||
/**
|
||||
* Allows pinning and unpinning messages
|
||||
*
|
||||
* Applies to channel types: Text
|
||||
*/
|
||||
PinMessages: 1n << 51n,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { Snowflake } from '../../../../globals.ts';
|
||||
import type { APIMessage } from '../../channel.ts';
|
||||
import type { APIMessage } from '../../message.ts';
|
||||
import type { APIApplicationCommandInteractionWrapper, ApplicationCommandType } from '../applicationCommands.ts';
|
||||
import type { APIDMInteractionWrapper, APIGuildInteractionWrapper, APIUserInteractionDataResolved } from '../base.ts';
|
||||
import type { APIBaseApplicationCommandInteractionData } from './internals.ts';
|
||||
|
||||
11
deno/payloads/v10/_interactions/base.ts
generated
11
deno/payloads/v10/_interactions/base.ts
generated
@@ -1,14 +1,6 @@
|
||||
import type { Permissions, Snowflake } from '../../../globals.ts';
|
||||
import type { APIRole, ApplicationIntegrationType, InteractionContextType, Locale } from '../../../v10.ts';
|
||||
import type {
|
||||
APIAttachment,
|
||||
APIChannel,
|
||||
APIMessage,
|
||||
APIPartialChannel,
|
||||
APIThreadChannel,
|
||||
ChannelType,
|
||||
ThreadChannelType,
|
||||
} from '../channel.ts';
|
||||
import type { APIChannel, APIPartialChannel, APIThreadChannel, ChannelType, ThreadChannelType } from '../channel.ts';
|
||||
import type {
|
||||
APIBaseGuildMember,
|
||||
APIFlaggedGuildMember,
|
||||
@@ -17,6 +9,7 @@ import type {
|
||||
APIGuildMemberJoined,
|
||||
APIPartialInteractionGuild,
|
||||
} from '../guild.ts';
|
||||
import type { APIAttachment, APIMessage } from '../message.ts';
|
||||
import type { APIEntitlement } from '../monetization.ts';
|
||||
import type { APIUser } from '../user.ts';
|
||||
import type { InteractionType } from './responses.ts';
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import type { Snowflake } from '../../../globals.ts';
|
||||
import type { ComponentType } from '../channel.ts';
|
||||
import type { APIBaseInteraction, InteractionType } from '../interactions.ts';
|
||||
import type { ComponentType } from '../message.ts';
|
||||
import type {
|
||||
APIDMInteractionWrapper,
|
||||
APIGuildInteractionWrapper,
|
||||
|
||||
62
deno/payloads/v10/_interactions/modalSubmit.ts
generated
62
deno/payloads/v10/_interactions/modalSubmit.ts
generated
@@ -1,26 +1,76 @@
|
||||
import type { APIBaseComponent } from '../channel.ts';
|
||||
import type {
|
||||
APIBaseInteraction,
|
||||
APIDMInteractionWrapper,
|
||||
APIGuildInteractionWrapper,
|
||||
APIInteractionDataResolved,
|
||||
ComponentType,
|
||||
InteractionType,
|
||||
} from '../mod.ts';
|
||||
import type { APIBaseComponent } from '../message.ts';
|
||||
|
||||
export interface ModalSubmitComponent {
|
||||
type: ComponentType;
|
||||
export interface APIBaseModalSubmitComponent<T extends ComponentType> extends APIBaseComponent<T> {
|
||||
type: T;
|
||||
custom_id: string;
|
||||
}
|
||||
|
||||
export interface APIModalSubmitTextInputComponent extends APIBaseModalSubmitComponent<ComponentType.TextInput> {
|
||||
value: string;
|
||||
}
|
||||
|
||||
export interface ModalSubmitActionRowComponent extends APIBaseComponent<ComponentType.ActionRow> {
|
||||
components: ModalSubmitComponent[];
|
||||
export interface APIModalSubmitStringSelectComponent extends APIBaseModalSubmitComponent<ComponentType.StringSelect> {
|
||||
values: string[];
|
||||
}
|
||||
|
||||
export interface APIModalSubmitUserSelectComponent extends APIBaseModalSubmitComponent<ComponentType.UserSelect> {
|
||||
values: string[];
|
||||
}
|
||||
|
||||
export interface APIModalSubmitRoleSelectComponent extends APIBaseModalSubmitComponent<ComponentType.RoleSelect> {
|
||||
values: string[];
|
||||
}
|
||||
|
||||
export interface APIModalSubmitMentionableSelectComponent
|
||||
extends APIBaseModalSubmitComponent<ComponentType.MentionableSelect> {
|
||||
values: string[];
|
||||
}
|
||||
|
||||
export interface APIModalSubmitChannelSelectComponent extends APIBaseModalSubmitComponent<ComponentType.ChannelSelect> {
|
||||
values: string[];
|
||||
}
|
||||
|
||||
export type ModalSubmitComponent =
|
||||
| APIModalSubmitChannelSelectComponent
|
||||
| APIModalSubmitMentionableSelectComponent
|
||||
| APIModalSubmitRoleSelectComponent
|
||||
| APIModalSubmitStringSelectComponent
|
||||
| APIModalSubmitTextInputComponent
|
||||
| APIModalSubmitUserSelectComponent;
|
||||
|
||||
export interface ModalSubmitActionRowComponent extends APIBaseComponent<ComponentType.ActionRow> {
|
||||
components: APIModalSubmitTextInputComponent[];
|
||||
}
|
||||
|
||||
export interface ModalSubmitTextDisplayComponent extends APIBaseComponent<ComponentType.TextDisplay> {}
|
||||
|
||||
export interface ModalSubmitLabelComponent extends APIBaseComponent<ComponentType.Label> {
|
||||
component: ModalSubmitComponent;
|
||||
}
|
||||
|
||||
export type APIModalSubmissionComponent =
|
||||
| ModalSubmitActionRowComponent
|
||||
| ModalSubmitLabelComponent
|
||||
| ModalSubmitTextDisplayComponent;
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-modal-submit-data-structure}
|
||||
*/
|
||||
export interface APIModalSubmission {
|
||||
/**
|
||||
* Data for users, members, channels, and roles in the modal's auto-populated select menus
|
||||
*
|
||||
* @see {@link https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-resolved-data-structure}
|
||||
*/
|
||||
resolved?: APIInteractionDataResolved;
|
||||
/**
|
||||
* A developer-defined identifier for the component, max 100 characters
|
||||
*/
|
||||
@@ -28,7 +78,7 @@ export interface APIModalSubmission {
|
||||
/**
|
||||
* A list of child components
|
||||
*/
|
||||
components: ModalSubmitActionRowComponent[];
|
||||
components: APIModalSubmissionComponent[];
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
16
deno/payloads/v10/_interactions/responses.ts
generated
16
deno/payloads/v10/_interactions/responses.ts
generated
@@ -1,5 +1,10 @@
|
||||
import type { RESTPostAPIWebhookWithTokenJSONBody } from '../../../v10.ts';
|
||||
import type { APIActionRowComponent, APIComponentInModalActionRow } from '../channel.ts';
|
||||
import type {
|
||||
APIActionRowComponent,
|
||||
APIComponentInModalActionRow,
|
||||
APILabelComponent,
|
||||
APITextDisplayComponent,
|
||||
} from '../message.ts';
|
||||
import type { APIApplicationCommandOptionChoice } from './applicationCommands.ts';
|
||||
|
||||
/**
|
||||
@@ -126,6 +131,11 @@ export interface APICommandAutocompleteInteractionResponseCallbackData {
|
||||
choices?: APIApplicationCommandOptionChoice[];
|
||||
}
|
||||
|
||||
export type APIModalInteractionResponseCallbackComponent =
|
||||
| APIActionRowComponent<APIComponentInModalActionRow>
|
||||
| APILabelComponent
|
||||
| APITextDisplayComponent;
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-response-object-modal}
|
||||
*/
|
||||
@@ -140,6 +150,8 @@ export interface APIModalInteractionResponseCallbackData {
|
||||
title: string;
|
||||
/**
|
||||
* Between 1 and 5 (inclusive) components that make up the modal
|
||||
*
|
||||
* @remarks Using action rows inside modals is deprecated.
|
||||
*/
|
||||
components: APIActionRowComponent<APIComponentInModalActionRow>[];
|
||||
components: APIModalInteractionResponseCallbackComponent[];
|
||||
}
|
||||
|
||||
1739
deno/payloads/v10/channel.ts
generated
1739
deno/payloads/v10/channel.ts
generated
File diff suppressed because it is too large
Load Diff
36
deno/payloads/v10/gateway.ts
generated
36
deno/payloads/v10/gateway.ts
generated
@@ -182,14 +182,28 @@ export interface GatewayActivity {
|
||||
* Application id for the game
|
||||
*/
|
||||
application_id?: Snowflake;
|
||||
/**
|
||||
* Controls which field is displayed in the user's status text in the member list
|
||||
*
|
||||
* @see {@link https://discord.com/developers/docs/events/gateway-events#activity-object-status-display-types}
|
||||
*/
|
||||
status_display_type?: StatusDisplayType | null;
|
||||
/**
|
||||
* What the player is currently doing
|
||||
*/
|
||||
details?: string | null;
|
||||
/**
|
||||
* URL that is linked when clicking on the details text
|
||||
*/
|
||||
details_url?: string | null;
|
||||
/**
|
||||
* The user's current party status, or the text used for a custom status
|
||||
*/
|
||||
state?: string | null;
|
||||
/**
|
||||
* URL that is linked when clicking on the state text
|
||||
*/
|
||||
state_url?: string | null;
|
||||
/**
|
||||
* The emoji used for a custom status
|
||||
*
|
||||
@@ -280,6 +294,26 @@ export enum ActivityType {
|
||||
Competing,
|
||||
}
|
||||
|
||||
/**
|
||||
* Controls which field is used in the user's status message
|
||||
*
|
||||
* @see {@link https://discord.com/developers/docs/events/gateway-events#activity-object-status-display-types}
|
||||
*/
|
||||
export enum StatusDisplayType {
|
||||
/**
|
||||
* Playing \{name\}
|
||||
*/
|
||||
Name,
|
||||
/**
|
||||
* Playing \{state\}
|
||||
*/
|
||||
State,
|
||||
/**
|
||||
* Playing \{details\}
|
||||
*/
|
||||
Details,
|
||||
}
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/topics/gateway-events#activity-object-activity-timestamps}
|
||||
*/
|
||||
@@ -317,7 +351,7 @@ export interface GatewayActivityParty {
|
||||
* @see {@link https://discord.com/developers/docs/topics/gateway-events#activity-object-activity-assets}
|
||||
*/
|
||||
export type GatewayActivityAssets = Partial<
|
||||
Record<'large_image' | 'large_text' | 'small_image' | 'small_text', string>
|
||||
Record<'large_image' | 'large_text' | 'large_url' | 'small_image' | 'small_text' | 'small_url', string>
|
||||
>;
|
||||
|
||||
/**
|
||||
|
||||
10
deno/payloads/v10/guild.ts
generated
10
deno/payloads/v10/guild.ts
generated
@@ -565,10 +565,18 @@ export enum GuildFeature {
|
||||
* Guild has enabled the welcome screen
|
||||
*/
|
||||
WelcomeScreenEnabled = 'WELCOME_SCREEN_ENABLED',
|
||||
/**
|
||||
* Guild has access to set guild tags
|
||||
*/
|
||||
GuildTags = 'GUILD_TAGS',
|
||||
/**
|
||||
* Guild is able to set gradient colors to roles
|
||||
*/
|
||||
EnhancedRoleColors = 'ENHANCED_ROLE_COLORS',
|
||||
/**
|
||||
* Guild has access to guest invites
|
||||
*/
|
||||
GuestsEnabled = 'GUESTS_ENABLED',
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -702,7 +710,7 @@ export interface APIGuildMemberJoined {
|
||||
/**
|
||||
* When the user joined the guild
|
||||
*/
|
||||
joined_at: string;
|
||||
joined_at: string | null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
22
deno/payloads/v10/invite.ts
generated
22
deno/payloads/v10/invite.ts
generated
@@ -6,7 +6,6 @@ import type { APIApplication } from './application.ts';
|
||||
import type { APIInviteChannel } from './channel.ts';
|
||||
import type { APIGuild } from './guild.ts';
|
||||
import type { APIGuildScheduledEvent } from './guildScheduledEvent.ts';
|
||||
import type { APIInviteStageInstance } from './stageInstance.ts';
|
||||
import type { APIUser } from './user.ts';
|
||||
|
||||
export type APIInviteGuild = Pick<
|
||||
@@ -77,16 +76,16 @@ export interface APIInvite {
|
||||
*/
|
||||
approximate_member_count?: number;
|
||||
/**
|
||||
* The expiration date of this invite, returned from the `GET /invites/<code>` endpoint when `with_expiration` is `true`
|
||||
* The expiration date of this invite
|
||||
*/
|
||||
expires_at?: string | null;
|
||||
expires_at: string | null;
|
||||
/**
|
||||
* The stage instance data if there is a public stage instance in the stage channel this invite is for
|
||||
*
|
||||
* @deprecated
|
||||
* {@link https://github.com/discord/discord-api-docs/pull/4479 | discord-api-docs#4479}
|
||||
* @deprecated This has been removed from the documentation.
|
||||
* {@link https://github.com/discord/discord-api-docs/pull/7779 | discord-api-docs#7779}
|
||||
*/
|
||||
stage_instance?: APIInviteStageInstance;
|
||||
stage_instance?: never;
|
||||
/**
|
||||
* The guild scheduled event data, returned from the `GET /invites/<code>` endpoint when `guild_scheduled_event_id` is a valid guild scheduled event id
|
||||
*/
|
||||
@@ -95,6 +94,17 @@ export interface APIInvite {
|
||||
* The invite type
|
||||
*/
|
||||
type: InviteType;
|
||||
/**
|
||||
* The flags of the invite
|
||||
*/
|
||||
flags?: InviteFlags;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/resources/invite#invite-object-guild-invite-flags}
|
||||
*/
|
||||
export enum InviteFlags {
|
||||
IsGuestInvite = 1 << 0,
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
1786
deno/payloads/v10/message.ts
generated
Normal file
1786
deno/payloads/v10/message.ts
generated
Normal file
File diff suppressed because it is too large
Load Diff
1
deno/payloads/v10/mod.ts
generated
1
deno/payloads/v10/mod.ts
generated
@@ -9,6 +9,7 @@ export * from './guild.ts';
|
||||
export * from './guildScheduledEvent.ts';
|
||||
export * from './interactions.ts';
|
||||
export * from './invite.ts';
|
||||
export * from './message.ts';
|
||||
export * from './monetization.ts';
|
||||
export * from './oauth2.ts';
|
||||
export * from './permissions.ts';
|
||||
|
||||
18
deno/payloads/v10/voice.ts
generated
18
deno/payloads/v10/voice.ts
generated
@@ -23,12 +23,6 @@ export interface APIBaseVoiceState {
|
||||
* The user id this voice state is for
|
||||
*/
|
||||
user_id: Snowflake;
|
||||
/**
|
||||
* The guild member this voice state is for
|
||||
*
|
||||
* @see {@link https://discord.com/developers/docs/resources/guild#guild-member-object}
|
||||
*/
|
||||
member?: APIGuildMember;
|
||||
/**
|
||||
* The session id for this voice state
|
||||
*/
|
||||
@@ -67,10 +61,20 @@ export interface APIBaseVoiceState {
|
||||
request_to_speak_timestamp: string | null;
|
||||
}
|
||||
|
||||
export interface APIVoiceStateMember {
|
||||
/**
|
||||
* The guild member this voice state is for
|
||||
*
|
||||
* @remarks The member field will have `joined_at` set to `null` if the member was invited as a guest.
|
||||
* @see {@link https://discord.com/developers/docs/resources/guild#guild-member-object}
|
||||
*/
|
||||
member?: APIGuildMember;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/resources/voice#voice-state-object}
|
||||
*/
|
||||
export interface APIVoiceState extends APIBaseVoiceState {
|
||||
export interface APIVoiceState extends APIBaseVoiceState, APIVoiceStateMember {
|
||||
/**
|
||||
* The guild id this voice state is for
|
||||
*/
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { Snowflake } from '../../../../globals.ts';
|
||||
import type { APIMessage } from '../../channel.ts';
|
||||
import type { APIMessage } from '../../message.ts';
|
||||
import type { APIApplicationCommandInteractionWrapper, ApplicationCommandType } from '../applicationCommands.ts';
|
||||
import type { APIDMInteractionWrapper, APIGuildInteractionWrapper, APIUserInteractionDataResolved } from '../base.ts';
|
||||
import type { APIBaseApplicationCommandInteractionData } from './internals.ts';
|
||||
|
||||
11
deno/payloads/v9/_interactions/base.ts
generated
11
deno/payloads/v9/_interactions/base.ts
generated
@@ -1,14 +1,6 @@
|
||||
import type { Permissions, Snowflake } from '../../../globals.ts';
|
||||
import type { APIRole, ApplicationIntegrationType, InteractionContextType, Locale } from '../../../v9.ts';
|
||||
import type {
|
||||
APIAttachment,
|
||||
APIChannel,
|
||||
APIMessage,
|
||||
APIPartialChannel,
|
||||
APIThreadChannel,
|
||||
ChannelType,
|
||||
ThreadChannelType,
|
||||
} from '../channel.ts';
|
||||
import type { APIChannel, APIPartialChannel, APIThreadChannel, ChannelType, ThreadChannelType } from '../channel.ts';
|
||||
import type {
|
||||
APIBaseGuildMember,
|
||||
APIFlaggedGuildMember,
|
||||
@@ -17,6 +9,7 @@ import type {
|
||||
APIGuildMemberJoined,
|
||||
APIPartialInteractionGuild,
|
||||
} from '../guild.ts';
|
||||
import type { APIAttachment, APIMessage } from '../message.ts';
|
||||
import type { APIEntitlement } from '../monetization.ts';
|
||||
import type { APIUser } from '../user.ts';
|
||||
import type { InteractionType } from './responses.ts';
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import type { Snowflake } from '../../../globals.ts';
|
||||
import type { ComponentType } from '../channel.ts';
|
||||
import type { APIBaseInteraction, InteractionType } from '../interactions.ts';
|
||||
import type { ComponentType } from '../message.ts';
|
||||
import type {
|
||||
APIDMInteractionWrapper,
|
||||
APIGuildInteractionWrapper,
|
||||
|
||||
62
deno/payloads/v9/_interactions/modalSubmit.ts
generated
62
deno/payloads/v9/_interactions/modalSubmit.ts
generated
@@ -1,26 +1,76 @@
|
||||
import type { APIBaseComponent } from '../channel.ts';
|
||||
import type {
|
||||
APIBaseInteraction,
|
||||
APIDMInteractionWrapper,
|
||||
APIGuildInteractionWrapper,
|
||||
APIInteractionDataResolved,
|
||||
ComponentType,
|
||||
InteractionType,
|
||||
} from '../mod.ts';
|
||||
import type { APIBaseComponent } from '../message.ts';
|
||||
|
||||
export interface ModalSubmitComponent {
|
||||
type: ComponentType;
|
||||
export interface APIBaseModalSubmitComponent<T extends ComponentType> extends APIBaseComponent<T> {
|
||||
type: T;
|
||||
custom_id: string;
|
||||
}
|
||||
|
||||
export interface APIModalSubmitTextInputComponent extends APIBaseModalSubmitComponent<ComponentType.TextInput> {
|
||||
value: string;
|
||||
}
|
||||
|
||||
export interface ModalSubmitActionRowComponent extends APIBaseComponent<ComponentType.ActionRow> {
|
||||
components: ModalSubmitComponent[];
|
||||
export interface APIModalSubmitStringSelectComponent extends APIBaseModalSubmitComponent<ComponentType.StringSelect> {
|
||||
values: string[];
|
||||
}
|
||||
|
||||
export interface APIModalSubmitUserSelectComponent extends APIBaseModalSubmitComponent<ComponentType.UserSelect> {
|
||||
values: string[];
|
||||
}
|
||||
|
||||
export interface APIModalSubmitRoleSelectComponent extends APIBaseModalSubmitComponent<ComponentType.RoleSelect> {
|
||||
values: string[];
|
||||
}
|
||||
|
||||
export interface APIModalSubmitMentionableSelectComponent
|
||||
extends APIBaseModalSubmitComponent<ComponentType.MentionableSelect> {
|
||||
values: string[];
|
||||
}
|
||||
|
||||
export interface APIModalSubmitChannelSelectComponent extends APIBaseModalSubmitComponent<ComponentType.ChannelSelect> {
|
||||
values: string[];
|
||||
}
|
||||
|
||||
export type ModalSubmitComponent =
|
||||
| APIModalSubmitChannelSelectComponent
|
||||
| APIModalSubmitMentionableSelectComponent
|
||||
| APIModalSubmitRoleSelectComponent
|
||||
| APIModalSubmitStringSelectComponent
|
||||
| APIModalSubmitTextInputComponent
|
||||
| APIModalSubmitUserSelectComponent;
|
||||
|
||||
export interface ModalSubmitActionRowComponent extends APIBaseComponent<ComponentType.ActionRow> {
|
||||
components: APIModalSubmitTextInputComponent[];
|
||||
}
|
||||
|
||||
export interface ModalSubmitTextDisplayComponent extends APIBaseComponent<ComponentType.TextDisplay> {}
|
||||
|
||||
export interface ModalSubmitLabelComponent extends APIBaseComponent<ComponentType.Label> {
|
||||
component: ModalSubmitComponent;
|
||||
}
|
||||
|
||||
export type APIModalSubmissionComponent =
|
||||
| ModalSubmitActionRowComponent
|
||||
| ModalSubmitLabelComponent
|
||||
| ModalSubmitTextDisplayComponent;
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-modal-submit-data-structure}
|
||||
*/
|
||||
export interface APIModalSubmission {
|
||||
/**
|
||||
* Data for users, members, channels, and roles in the modal's auto-populated select menus
|
||||
*
|
||||
* @see {@link https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-resolved-data-structure}
|
||||
*/
|
||||
resolved?: APIInteractionDataResolved;
|
||||
/**
|
||||
* A developer-defined identifier for the component, max 100 characters
|
||||
*/
|
||||
@@ -28,7 +78,7 @@ export interface APIModalSubmission {
|
||||
/**
|
||||
* A list of child components
|
||||
*/
|
||||
components: ModalSubmitActionRowComponent[];
|
||||
components: APIModalSubmissionComponent[];
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
16
deno/payloads/v9/_interactions/responses.ts
generated
16
deno/payloads/v9/_interactions/responses.ts
generated
@@ -1,5 +1,10 @@
|
||||
import type { RESTPostAPIWebhookWithTokenJSONBody } from '../../../v9.ts';
|
||||
import type { APIActionRowComponent, APIComponentInModalActionRow } from '../channel.ts';
|
||||
import type {
|
||||
APIActionRowComponent,
|
||||
APIComponentInModalActionRow,
|
||||
APILabelComponent,
|
||||
APITextDisplayComponent,
|
||||
} from '../message.ts';
|
||||
import type { APIApplicationCommandOptionChoice } from './applicationCommands.ts';
|
||||
|
||||
/**
|
||||
@@ -126,6 +131,11 @@ export interface APICommandAutocompleteInteractionResponseCallbackData {
|
||||
choices?: APIApplicationCommandOptionChoice[];
|
||||
}
|
||||
|
||||
export type APIModalInteractionResponseCallbackComponent =
|
||||
| APIActionRowComponent<APIComponentInModalActionRow>
|
||||
| APILabelComponent
|
||||
| APITextDisplayComponent;
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-response-object-modal}
|
||||
*/
|
||||
@@ -140,6 +150,8 @@ export interface APIModalInteractionResponseCallbackData {
|
||||
title: string;
|
||||
/**
|
||||
* Between 1 and 5 (inclusive) components that make up the modal
|
||||
*
|
||||
* @remarks Using action rows inside modals is deprecated.
|
||||
*/
|
||||
components: APIActionRowComponent<APIComponentInModalActionRow>[];
|
||||
components: APIModalInteractionResponseCallbackComponent[];
|
||||
}
|
||||
|
||||
1732
deno/payloads/v9/channel.ts
generated
1732
deno/payloads/v9/channel.ts
generated
File diff suppressed because it is too large
Load Diff
36
deno/payloads/v9/gateway.ts
generated
36
deno/payloads/v9/gateway.ts
generated
@@ -173,14 +173,28 @@ export interface GatewayActivity {
|
||||
* Application id for the game
|
||||
*/
|
||||
application_id?: Snowflake;
|
||||
/**
|
||||
* Controls which field is displayed in the user's status text in the member list
|
||||
*
|
||||
* @see {@link https://discord.com/developers/docs/events/gateway-events#activity-object-status-display-types}
|
||||
*/
|
||||
status_display_type?: StatusDisplayType | null;
|
||||
/**
|
||||
* What the player is currently doing
|
||||
*/
|
||||
details?: string | null;
|
||||
/**
|
||||
* URL that is linked when clicking on the details text
|
||||
*/
|
||||
details_url?: string | null;
|
||||
/**
|
||||
* The user's current party status, or the text used for a custom status
|
||||
*/
|
||||
state?: string | null;
|
||||
/**
|
||||
* URL that is linked when clicking on the state text
|
||||
*/
|
||||
state_url?: string | null;
|
||||
/**
|
||||
* The emoji used for a custom status
|
||||
*
|
||||
@@ -268,6 +282,26 @@ export enum ActivityType {
|
||||
Competing,
|
||||
}
|
||||
|
||||
/**
|
||||
* Controls which field is used in the user's status message
|
||||
*
|
||||
* @see {@link https://discord.com/developers/docs/events/gateway-events#activity-object-status-display-types}
|
||||
*/
|
||||
export enum StatusDisplayType {
|
||||
/**
|
||||
* Playing \{name\}
|
||||
*/
|
||||
Name,
|
||||
/**
|
||||
* Playing \{state\}
|
||||
*/
|
||||
State,
|
||||
/**
|
||||
* Playing \{details\}
|
||||
*/
|
||||
Details,
|
||||
}
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/topics/gateway-events#activity-object-activity-timestamps}
|
||||
*/
|
||||
@@ -305,7 +339,7 @@ export interface GatewayActivityParty {
|
||||
* @see {@link https://discord.com/developers/docs/topics/gateway-events#activity-object-activity-assets}
|
||||
*/
|
||||
export type GatewayActivityAssets = Partial<
|
||||
Record<'large_image' | 'large_text' | 'small_image' | 'small_text', string>
|
||||
Record<'large_image' | 'large_text' | 'large_url' | 'small_image' | 'small_text' | 'small_url', string>
|
||||
>;
|
||||
|
||||
/**
|
||||
|
||||
10
deno/payloads/v9/guild.ts
generated
10
deno/payloads/v9/guild.ts
generated
@@ -557,10 +557,18 @@ export enum GuildFeature {
|
||||
* Guild has enabled the welcome screen
|
||||
*/
|
||||
WelcomeScreenEnabled = 'WELCOME_SCREEN_ENABLED',
|
||||
/**
|
||||
* Guild has access to set guild tags
|
||||
*/
|
||||
GuildTags = 'GUILD_TAGS',
|
||||
/**
|
||||
* Guild is able to set gradient colors to roles
|
||||
*/
|
||||
EnhancedRoleColors = 'ENHANCED_ROLE_COLORS',
|
||||
/**
|
||||
* Guild has access to guest invites
|
||||
*/
|
||||
GuestsEnabled = 'GUESTS_ENABLED',
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -694,7 +702,7 @@ export interface APIGuildMemberJoined {
|
||||
/**
|
||||
* When the user joined the guild
|
||||
*/
|
||||
joined_at: string;
|
||||
joined_at: string | null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
22
deno/payloads/v9/invite.ts
generated
22
deno/payloads/v9/invite.ts
generated
@@ -6,7 +6,6 @@ import type { APIApplication } from './application.ts';
|
||||
import type { APIInviteChannel } from './channel.ts';
|
||||
import type { APIGuild } from './guild.ts';
|
||||
import type { APIGuildScheduledEvent } from './guildScheduledEvent.ts';
|
||||
import type { APIInviteStageInstance } from './stageInstance.ts';
|
||||
import type { APIUser } from './user.ts';
|
||||
|
||||
export type APIInviteGuild = Pick<
|
||||
@@ -77,16 +76,16 @@ export interface APIInvite {
|
||||
*/
|
||||
approximate_member_count?: number;
|
||||
/**
|
||||
* The expiration date of this invite, returned from the `GET /invites/<code>` endpoint when `with_expiration` is `true`
|
||||
* The expiration date of this invite
|
||||
*/
|
||||
expires_at?: string | null;
|
||||
expires_at: string | null;
|
||||
/**
|
||||
* The stage instance data if there is a public stage instance in the stage channel this invite is for
|
||||
*
|
||||
* @deprecated
|
||||
* {@link https://github.com/discord/discord-api-docs/pull/4479 | discord-api-docs#4479}
|
||||
* @deprecated This has been removed from the documentation.
|
||||
* {@link https://github.com/discord/discord-api-docs/pull/7779 | discord-api-docs#7779}
|
||||
*/
|
||||
stage_instance?: APIInviteStageInstance;
|
||||
stage_instance?: never;
|
||||
/**
|
||||
* The guild scheduled event data, returned from the `GET /invites/<code>` endpoint when `guild_scheduled_event_id` is a valid guild scheduled event id
|
||||
*/
|
||||
@@ -95,6 +94,17 @@ export interface APIInvite {
|
||||
* The invite type
|
||||
*/
|
||||
type: InviteType;
|
||||
/**
|
||||
* The flags of the invite
|
||||
*/
|
||||
flags?: InviteFlags;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/resources/invite#invite-object-guild-invite-flags}
|
||||
*/
|
||||
export enum InviteFlags {
|
||||
IsGuestInvite = 1 << 0,
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
1781
deno/payloads/v9/message.ts
generated
Normal file
1781
deno/payloads/v9/message.ts
generated
Normal file
File diff suppressed because it is too large
Load Diff
1
deno/payloads/v9/mod.ts
generated
1
deno/payloads/v9/mod.ts
generated
@@ -9,6 +9,7 @@ export * from './guild.ts';
|
||||
export * from './guildScheduledEvent.ts';
|
||||
export * from './interactions.ts';
|
||||
export * from './invite.ts';
|
||||
export * from './message.ts';
|
||||
export * from './monetization.ts';
|
||||
export * from './oauth2.ts';
|
||||
export * from './permissions.ts';
|
||||
|
||||
18
deno/payloads/v9/voice.ts
generated
18
deno/payloads/v9/voice.ts
generated
@@ -20,12 +20,6 @@ export interface APIBaseVoiceState {
|
||||
* The user id this voice state is for
|
||||
*/
|
||||
user_id: Snowflake;
|
||||
/**
|
||||
* The guild member this voice state is for
|
||||
*
|
||||
* @see {@link https://discord.com/developers/docs/resources/guild#guild-member-object}
|
||||
*/
|
||||
member?: APIGuildMember;
|
||||
/**
|
||||
* The session id for this voice state
|
||||
*/
|
||||
@@ -64,10 +58,20 @@ export interface APIBaseVoiceState {
|
||||
request_to_speak_timestamp: string | null;
|
||||
}
|
||||
|
||||
export interface APIVoiceStateMember {
|
||||
/**
|
||||
* The guild member this voice state is for
|
||||
*
|
||||
* @remarks The member field will have `joined_at` set to `null` if the member was invited as a guest.
|
||||
* @see {@link https://discord.com/developers/docs/resources/guild#guild-member-object}
|
||||
*/
|
||||
member?: APIGuildMember;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/resources/voice#voice-state-object}
|
||||
*/
|
||||
export interface APIVoiceState extends APIBaseVoiceState {
|
||||
export interface APIVoiceState extends APIBaseVoiceState, APIVoiceStateMember {
|
||||
/**
|
||||
* The guild id this voice state is for
|
||||
*/
|
||||
|
||||
2
deno/rest/common.ts
generated
2
deno/rest/common.ts
generated
@@ -313,6 +313,8 @@ export enum RESTJSONErrorCodes {
|
||||
CannotEnableOnboardingRequirementsAreNotMet = 350_000,
|
||||
CannotUpdateOnboardingWhileBelowRequirements,
|
||||
|
||||
AccessToFileUploadsHasBeenLimitedForThisGuild = 400_001,
|
||||
|
||||
FailedToBanUsers = 500_000,
|
||||
|
||||
PollVotingBlocked = 520_000,
|
||||
|
||||
8
deno/rest/v10/channel.ts
generated
8
deno/rest/v10/channel.ts
generated
@@ -25,6 +25,9 @@ import type {
|
||||
APIAttachment,
|
||||
APIMessageTopLevelComponent,
|
||||
APIMessagePin,
|
||||
APIAnnouncementThreadChannel,
|
||||
APIPrivateThreadChannel,
|
||||
APIPublicThreadChannel,
|
||||
} from '../../payloads/v10/mod.ts';
|
||||
import type { _AddUndefinedToPossiblyUndefinedPropertiesOfInterface, _StrictPartial } from '../../utils/internals.ts';
|
||||
import type { RESTAPIPoll } from './poll.ts';
|
||||
@@ -767,7 +770,10 @@ export interface RESTPostAPIChannelThreadsJSONBody extends RESTPostAPIChannelMes
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/resources/channel#start-thread-without-message}
|
||||
*/
|
||||
export type RESTPostAPIChannelThreadsResult = APIChannel;
|
||||
export type RESTPostAPIChannelThreadsResult =
|
||||
| APIAnnouncementThreadChannel
|
||||
| APIPrivateThreadChannel
|
||||
| APIPublicThreadChannel;
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/resources/channel#join-thread}
|
||||
|
||||
29
deno/rest/v10/guild.ts
generated
29
deno/rest/v10/guild.ts
generated
@@ -97,7 +97,8 @@ export interface RESTAPIGuildCreateRole extends RESTPostAPIGuildRoleJSONBody {
|
||||
export type APIGuildCreateRole = RESTAPIGuildCreateRole;
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/resources/guild#create-guild}
|
||||
* @see {@link https://discord.com/developers/docs/change-log#guild-create-deprecation}
|
||||
* @deprecated
|
||||
*/
|
||||
export interface RESTPostAPIGuildsJSONBody {
|
||||
/**
|
||||
@@ -185,12 +186,14 @@ export interface RESTPostAPIGuildsJSONBody {
|
||||
}
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/resources/guild#create-guild}
|
||||
* @see {@link https://discord.com/developers/docs/change-log#guild-create-deprecation}
|
||||
* @deprecated
|
||||
*/
|
||||
export type RESTPostAPIGuildsResult = APIGuild;
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/resources/guild#modify-guild-mfa-level}
|
||||
* @see {@link https://discord.com/developers/docs/change-log#guild-create-deprecation}
|
||||
* @deprecated
|
||||
*/
|
||||
export interface RESTPostAPIGuildsMFAJSONBody {
|
||||
/**
|
||||
@@ -202,7 +205,8 @@ export interface RESTPostAPIGuildsMFAJSONBody {
|
||||
}
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/resources/guild#modify-guild-mfa-level}
|
||||
* @see {@link https://discord.com/developers/docs/change-log#guild-create-deprecation}
|
||||
* @deprecated
|
||||
*/
|
||||
export type RESTPostAPIGuildsMFAResult = RESTPostAPIGuildsMFAJSONBody;
|
||||
|
||||
@@ -276,6 +280,8 @@ export interface RESTPatchAPIGuildJSONBody {
|
||||
icon?: string | null | undefined;
|
||||
/**
|
||||
* User id to transfer guild ownership to (must be owner)
|
||||
*
|
||||
* @deprecated
|
||||
*/
|
||||
owner_id?: Snowflake | undefined;
|
||||
/**
|
||||
@@ -342,7 +348,8 @@ export interface RESTPatchAPIGuildJSONBody {
|
||||
export type RESTPatchAPIGuildResult = APIGuild;
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/resources/guild#delete-guild}
|
||||
* @see {@link https://discord.com/developers/docs/change-log#guild-create-deprecation}
|
||||
* @deprecated
|
||||
*/
|
||||
export type RESTDeleteAPIGuildResult = never;
|
||||
|
||||
@@ -543,6 +550,18 @@ export interface RESTPatchAPICurrentGuildMemberJSONBody {
|
||||
* Requires `CHANGE_NICKNAME` permission
|
||||
*/
|
||||
nick?: string | null | undefined;
|
||||
/**
|
||||
* Data URI base64 encoded banner image
|
||||
*/
|
||||
banner?: string | null | undefined;
|
||||
/**
|
||||
* Data URI base64 encoded avatar image
|
||||
*/
|
||||
avatar?: string | null | undefined;
|
||||
/**
|
||||
* Guild member bio
|
||||
*/
|
||||
bio?: string | null | undefined;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
8
deno/rest/v10/mod.ts
generated
8
deno/rest/v10/mod.ts
generated
@@ -250,6 +250,8 @@ export const Routes = {
|
||||
/**
|
||||
* Route for:
|
||||
* - POST `/guilds`
|
||||
*
|
||||
* @deprecated {@link https://discord.com/developers/docs/change-log#guild-create-deprecation}
|
||||
*/
|
||||
guilds() {
|
||||
return '/guilds' as const;
|
||||
@@ -259,7 +261,7 @@ export const Routes = {
|
||||
* Route for:
|
||||
* - GET `/guilds/{guild.id}`
|
||||
* - PATCH `/guilds/{guild.id}`
|
||||
* - DELETE `/guilds/{guild.id}`
|
||||
* - DELETE `/guilds/{guild.id}` (**deprecated**)
|
||||
*/
|
||||
guild(guildId: Snowflake) {
|
||||
return `/guilds/${guildId}` as const;
|
||||
@@ -333,6 +335,8 @@ export const Routes = {
|
||||
/**
|
||||
* Route for:
|
||||
* - POST `/guilds/{guild.id}/mfa`
|
||||
*
|
||||
* @deprecated
|
||||
*/
|
||||
guildMFA(guildId: Snowflake) {
|
||||
return `/guilds/${guildId}/mfa` as const;
|
||||
@@ -462,7 +466,7 @@ export const Routes = {
|
||||
/**
|
||||
* Route for:
|
||||
* - GET `/guilds/templates/{template.code}`
|
||||
* - POST `/guilds/templates/{template.code}`
|
||||
* - POST `/guilds/templates/{template.code}` (**deprecated**)
|
||||
*/
|
||||
template(code: string) {
|
||||
return `/guilds/templates/${code}` as const;
|
||||
|
||||
6
deno/rest/v10/template.ts
generated
6
deno/rest/v10/template.ts
generated
@@ -7,7 +7,8 @@ import type { _StrictPartial } from '../../utils/internals.ts';
|
||||
export type RESTGetAPITemplateResult = APITemplate;
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/resources/guild-template#create-guild-from-guild-template}
|
||||
* @see {@link https://discord.com/developers/docs/change-log#guild-create-deprecation}
|
||||
* @deprecated
|
||||
*/
|
||||
export interface RESTPostAPITemplateCreateGuildJSONBody {
|
||||
/**
|
||||
@@ -23,7 +24,8 @@ export interface RESTPostAPITemplateCreateGuildJSONBody {
|
||||
}
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/resources/guild-template#create-guild-from-guild-template}
|
||||
* @see {@link https://discord.com/developers/docs/change-log#guild-create-deprecation}
|
||||
* @deprecated
|
||||
*/
|
||||
export type RESTPostAPITemplateCreateGuildResult = APIGuild;
|
||||
|
||||
|
||||
4
deno/rest/v10/webhook.ts
generated
4
deno/rest/v10/webhook.ts
generated
@@ -263,7 +263,9 @@ export interface RESTGetAPIWebhookWithTokenMessageQuery {
|
||||
* @see {@link https://discord.com/developers/docs/resources/webhook#edit-webhook-message}
|
||||
*/
|
||||
export type RESTPatchAPIWebhookWithTokenMessageJSONBody = _AddUndefinedToPossiblyUndefinedPropertiesOfInterface<
|
||||
_Nullable<Pick<RESTPostAPIWebhookWithTokenJSONBody, 'allowed_mentions' | 'components' | 'content' | 'embeds'>>
|
||||
_Nullable<
|
||||
Pick<RESTPostAPIWebhookWithTokenJSONBody, 'allowed_mentions' | 'components' | 'content' | 'embeds' | 'flags'>
|
||||
>
|
||||
> & {
|
||||
/**
|
||||
* Attached files to keep
|
||||
|
||||
8
deno/rest/v9/channel.ts
generated
8
deno/rest/v9/channel.ts
generated
@@ -25,6 +25,9 @@ import type {
|
||||
APIAttachment,
|
||||
APIMessageTopLevelComponent,
|
||||
APIMessagePin,
|
||||
APIAnnouncementThreadChannel,
|
||||
APIPrivateThreadChannel,
|
||||
APIPublicThreadChannel,
|
||||
} from '../../payloads/v9/mod.ts';
|
||||
import type { _AddUndefinedToPossiblyUndefinedPropertiesOfInterface, _StrictPartial } from '../../utils/internals.ts';
|
||||
import type { RESTAPIPoll } from './poll.ts';
|
||||
@@ -780,7 +783,10 @@ export interface RESTPostAPIChannelThreadsJSONBody extends RESTPostAPIChannelMes
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/resources/channel#start-thread-without-message}
|
||||
*/
|
||||
export type RESTPostAPIChannelThreadsResult = APIChannel;
|
||||
export type RESTPostAPIChannelThreadsResult =
|
||||
| APIAnnouncementThreadChannel
|
||||
| APIPrivateThreadChannel
|
||||
| APIPublicThreadChannel;
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/resources/channel#join-thread}
|
||||
|
||||
27
deno/rest/v9/guild.ts
generated
27
deno/rest/v9/guild.ts
generated
@@ -98,6 +98,7 @@ export type APIGuildCreateRole = RESTAPIGuildCreateRole;
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/resources/guild#create-guild}
|
||||
* @deprecated {@link https://discord.com/developers/docs/change-log#guild-create-deprecation}
|
||||
*/
|
||||
export interface RESTPostAPIGuildsJSONBody {
|
||||
/**
|
||||
@@ -185,12 +186,14 @@ export interface RESTPostAPIGuildsJSONBody {
|
||||
}
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/resources/guild#create-guild}
|
||||
* @see {@link https://discord.com/developers/docs/change-log#guild-create-deprecation}
|
||||
* @deprecated
|
||||
*/
|
||||
export type RESTPostAPIGuildsResult = APIGuild;
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/resources/guild#modify-guild-mfa-level}
|
||||
* @see {@link https://discord.com/developers/docs/change-log#guild-create-deprecation}
|
||||
* @deprecated
|
||||
*/
|
||||
export interface RESTPostAPIGuildsMFAJSONBody {
|
||||
/**
|
||||
@@ -202,7 +205,8 @@ export interface RESTPostAPIGuildsMFAJSONBody {
|
||||
}
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/resources/guild#modify-guild-mfa-level}
|
||||
* @see {@link https://discord.com/developers/docs/change-log#guild-create-deprecation}
|
||||
* @deprecated
|
||||
*/
|
||||
export type RESTPostAPIGuildsMFAResult = RESTPostAPIGuildsMFAJSONBody;
|
||||
|
||||
@@ -276,6 +280,8 @@ export interface RESTPatchAPIGuildJSONBody {
|
||||
icon?: string | null | undefined;
|
||||
/**
|
||||
* User id to transfer guild ownership to (must be owner)
|
||||
*
|
||||
* @deprecated
|
||||
*/
|
||||
owner_id?: Snowflake | undefined;
|
||||
/**
|
||||
@@ -342,7 +348,8 @@ export interface RESTPatchAPIGuildJSONBody {
|
||||
export type RESTPatchAPIGuildResult = APIGuild;
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/resources/guild#delete-guild}
|
||||
* @see {@link https://discord.com/developers/docs/change-log#guild-create-deprecation}
|
||||
* @deprecated
|
||||
*/
|
||||
export type RESTDeleteAPIGuildResult = never;
|
||||
|
||||
@@ -543,6 +550,18 @@ export interface RESTPatchAPICurrentGuildMemberJSONBody {
|
||||
* Requires `CHANGE_NICKNAME` permission
|
||||
*/
|
||||
nick?: string | null | undefined;
|
||||
/**
|
||||
* Data URI base64 encoded banner image
|
||||
*/
|
||||
banner?: string | null | undefined;
|
||||
/**
|
||||
* Data URI base64 encoded avatar image
|
||||
*/
|
||||
avatar?: string | null | undefined;
|
||||
/**
|
||||
* Guild member bio
|
||||
*/
|
||||
bio?: string | null | undefined;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
8
deno/rest/v9/mod.ts
generated
8
deno/rest/v9/mod.ts
generated
@@ -250,6 +250,8 @@ export const Routes = {
|
||||
/**
|
||||
* Route for:
|
||||
* - POST `/guilds`
|
||||
*
|
||||
* @deprecated {@link https://discord.com/developers/docs/change-log#guild-create-deprecation}
|
||||
*/
|
||||
guilds() {
|
||||
return '/guilds' as const;
|
||||
@@ -259,7 +261,7 @@ export const Routes = {
|
||||
* Route for:
|
||||
* - GET `/guilds/{guild.id}`
|
||||
* - PATCH `/guilds/{guild.id}`
|
||||
* - DELETE `/guilds/{guild.id}`
|
||||
* - DELETE `/guilds/{guild.id}` (**deprecated**)
|
||||
*/
|
||||
guild(guildId: Snowflake) {
|
||||
return `/guilds/${guildId}` as const;
|
||||
@@ -333,6 +335,8 @@ export const Routes = {
|
||||
/**
|
||||
* Route for:
|
||||
* - POST `/guilds/{guild.id}/mfa`
|
||||
*
|
||||
* @deprecated
|
||||
*/
|
||||
guildMFA(guildId: Snowflake) {
|
||||
return `/guilds/${guildId}/mfa` as const;
|
||||
@@ -462,7 +466,7 @@ export const Routes = {
|
||||
/**
|
||||
* Route for:
|
||||
* - GET `/guilds/templates/{template.code}`
|
||||
* - POST `/guilds/templates/{template.code}`
|
||||
* - POST `/guilds/templates/{template.code}` (**deprecated**)
|
||||
*/
|
||||
template(code: string) {
|
||||
return `/guilds/templates/${code}` as const;
|
||||
|
||||
6
deno/rest/v9/template.ts
generated
6
deno/rest/v9/template.ts
generated
@@ -7,7 +7,8 @@ import type { _StrictPartial } from '../../utils/internals.ts';
|
||||
export type RESTGetAPITemplateResult = APITemplate;
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/resources/guild-template#create-guild-from-guild-template}
|
||||
* @see {@link https://discord.com/developers/docs/change-log#guild-create-deprecation}
|
||||
* @deprecated
|
||||
*/
|
||||
export interface RESTPostAPITemplateCreateGuildJSONBody {
|
||||
/**
|
||||
@@ -23,12 +24,13 @@ export interface RESTPostAPITemplateCreateGuildJSONBody {
|
||||
}
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/resources/guild-template#create-guild-from-guild-template}
|
||||
* @see {@link https://discord.com/developers/docs/change-log#guild-create-deprecation}
|
||||
*/
|
||||
export type RESTPostAPITemplateCreateGuildResult = APIGuild;
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/resources/guild-template#get-guild-templates}
|
||||
* @deprecated
|
||||
*/
|
||||
export type RESTGetAPIGuildTemplatesResult = APITemplate[];
|
||||
|
||||
|
||||
4
deno/rest/v9/webhook.ts
generated
4
deno/rest/v9/webhook.ts
generated
@@ -263,7 +263,9 @@ export interface RESTGetAPIWebhookWithTokenMessageQuery {
|
||||
* @see {@link https://discord.com/developers/docs/resources/webhook#edit-webhook-message}
|
||||
*/
|
||||
export type RESTPatchAPIWebhookWithTokenMessageJSONBody = _AddUndefinedToPossiblyUndefinedPropertiesOfInterface<
|
||||
_Nullable<Pick<RESTPostAPIWebhookWithTokenJSONBody, 'allowed_mentions' | 'components' | 'content' | 'embeds'>>
|
||||
_Nullable<
|
||||
Pick<RESTPostAPIWebhookWithTokenJSONBody, 'allowed_mentions' | 'components' | 'content' | 'embeds' | 'flags'>
|
||||
>
|
||||
> & {
|
||||
/**
|
||||
* Attached files to keep
|
||||
|
||||
@@ -26,7 +26,6 @@ import type {
|
||||
GatewayPresenceUpdate,
|
||||
GatewayThreadListSync,
|
||||
GatewayThreadMembersUpdate as RawGatewayThreadMembersUpdate,
|
||||
APIVoiceState,
|
||||
InviteTargetType,
|
||||
PresenceUpdateStatus,
|
||||
AutoModerationRuleTriggerType,
|
||||
@@ -47,6 +46,7 @@ import type {
|
||||
APIGuildMemberUser,
|
||||
GatewayGuildMembersChunkPresence,
|
||||
APIBaseMessage,
|
||||
APIVoiceStateMember,
|
||||
} from '../payloads/v10/index';
|
||||
import type { ReactionType } from '../rest/v10/index';
|
||||
import type { _Nullable } from '../utils/internals';
|
||||
@@ -286,6 +286,7 @@ export enum GatewayDispatchEvents {
|
||||
MessageReactionRemoveEmoji = 'MESSAGE_REACTION_REMOVE_EMOJI',
|
||||
MessageUpdate = 'MESSAGE_UPDATE',
|
||||
PresenceUpdate = 'PRESENCE_UPDATE',
|
||||
RateLimited = 'RATE_LIMITED',
|
||||
Ready = 'READY',
|
||||
Resumed = 'RESUMED',
|
||||
StageInstanceCreate = 'STAGE_INSTANCE_CREATE',
|
||||
@@ -374,6 +375,7 @@ export type GatewayDispatchPayload =
|
||||
| GatewayMessageReactionRemoveEmojiDispatch
|
||||
| GatewayMessageUpdateDispatch
|
||||
| GatewayPresenceUpdateDispatch
|
||||
| GatewayRateLimitedDispatch
|
||||
| GatewayReadyDispatch
|
||||
| GatewayResumedDispatch
|
||||
| GatewaySoundboardSoundsDispatch
|
||||
@@ -879,7 +881,7 @@ export interface GatewayGuildCreateDispatchData extends APIGuild {
|
||||
*
|
||||
* @see {@link https://discord.com/developers/docs/resources/voice#voice-state-object}
|
||||
*/
|
||||
voice_states: APIBaseVoiceState[];
|
||||
voice_states: GatewayVoiceStateUpdateDispatchData[];
|
||||
/**
|
||||
* Users in the guild
|
||||
*
|
||||
@@ -1134,7 +1136,7 @@ export type GatewayGuildMemberUpdateDispatch = _DataPayload<
|
||||
* @see {@link https://discord.com/developers/docs/topics/gateway-events#guild-member-update}
|
||||
*/
|
||||
export interface GatewayGuildMemberUpdateDispatchData
|
||||
extends _Nullable<APIGuildMemberJoined>,
|
||||
extends APIGuildMemberJoined,
|
||||
APIBaseGuildMember,
|
||||
Partial<APIBaseVoiceGuildMember>,
|
||||
Partial<APIFlaggedGuildMember>,
|
||||
@@ -1560,6 +1562,10 @@ export interface GatewayInviteCreateDispatchData {
|
||||
* How many times the invite has been used (always will be `0`)
|
||||
*/
|
||||
uses: 0;
|
||||
/**
|
||||
* The expiration date of this invite.
|
||||
*/
|
||||
expires_at: string | null;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1620,7 +1626,7 @@ export interface APIGuildMemberNoUser
|
||||
extends APIBaseGuildMember,
|
||||
APIFlaggedGuildMember,
|
||||
APIGuildMemberAvatar,
|
||||
APIGuildMemberJoined,
|
||||
NonNullable<APIGuildMemberJoined>,
|
||||
APIBaseVoiceGuildMember {}
|
||||
|
||||
export interface APIUserWithMember extends APIUser {
|
||||
@@ -2098,7 +2104,7 @@ export type GatewayVoiceStateUpdateDispatch = _DataPayload<
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/topics/gateway-events#voice-state-update}
|
||||
*/
|
||||
export type GatewayVoiceStateUpdateDispatchData = APIVoiceState;
|
||||
export interface GatewayVoiceStateUpdateDispatchData extends APIBaseVoiceState, APIVoiceStateMember {}
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/topics/gateway-events#voice-server-update}
|
||||
@@ -2213,6 +2219,73 @@ export interface GatewayMessagePollVoteDispatchData {
|
||||
answer_id: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/events/gateway-events#rate-limited}
|
||||
*/
|
||||
export type GatewayRateLimitedDispatch<
|
||||
Opcode extends keyof GatewayOpcodeRateLimitMetadataMap = keyof GatewayOpcodeRateLimitMetadataMap,
|
||||
> = _DataPayload<GatewayDispatchEvents.RateLimited, GatewayRateLimitedDispatchData<Opcode>>;
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/events/gateway-events#rate-limited}
|
||||
*/
|
||||
export type GatewayRateLimitedRequestGuildMembersDispatch =
|
||||
GatewayRateLimitedDispatch<GatewayOpcodes.RequestGuildMembers>;
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/events/gateway-events#rate-limited}
|
||||
*/
|
||||
export interface GatewayRateLimitedDispatchData<
|
||||
Opcode extends keyof GatewayOpcodeRateLimitMetadataMap = keyof GatewayOpcodeRateLimitMetadataMap,
|
||||
> {
|
||||
/**
|
||||
* {@link GatewayOpcodes | Gateway opcode} of the event that was rate limited
|
||||
*/
|
||||
opcode: Opcode;
|
||||
/**
|
||||
* The number of seconds to wait before submitting another request
|
||||
*/
|
||||
retry_after: number;
|
||||
/**
|
||||
* Metadata for the event that was rate limited
|
||||
*/
|
||||
meta: GatewayOpcodeRateLimitMetadataMap[Opcode];
|
||||
}
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/events/gateway-events#rate-limited}
|
||||
*/
|
||||
export type GatewayRateLimitedRequestGuildMembersDispatchData =
|
||||
GatewayRateLimitedDispatchData<GatewayOpcodes.RequestGuildMembers>;
|
||||
|
||||
/**
|
||||
* Map of gateway opcodes to their rate limit metadata types
|
||||
*
|
||||
* @see {@link https://discord.com/developers/docs/events/gateway-events#rate-limited-rate-limit-metadata-for-opcode-structure}
|
||||
*/
|
||||
export interface GatewayOpcodeRateLimitMetadataMap {
|
||||
[GatewayOpcodes.RequestGuildMembers]: GatewayRequestGuildMemberRateLimitMetadata;
|
||||
}
|
||||
|
||||
/**
|
||||
* Types of metadata that can be received in a {@link GatewayRateLimitedDispatchData.meta} field
|
||||
*/
|
||||
export type GatewayRateLimitedMetadata = GatewayOpcodeRateLimitMetadataMap[keyof GatewayOpcodeRateLimitMetadataMap];
|
||||
|
||||
/**
|
||||
* Rate limit metadata for the {@link GatewayOpcodes.RequestGuildMembers} opcode
|
||||
*/
|
||||
export interface GatewayRequestGuildMemberRateLimitMetadata {
|
||||
/**
|
||||
* Id of the guild members were requested for
|
||||
*/
|
||||
guild_id: Snowflake;
|
||||
/**
|
||||
* Nonce used to identify the {@link GatewayGuildMembersChunkDispatch} response
|
||||
*/
|
||||
nonce?: string;
|
||||
}
|
||||
|
||||
// #endregion Dispatch Payloads
|
||||
|
||||
// #region Sendable Payloads
|
||||
|
||||
@@ -26,7 +26,6 @@ import type {
|
||||
GatewayPresenceUpdate,
|
||||
GatewayThreadListSync,
|
||||
GatewayThreadMembersUpdate as RawGatewayThreadMembersUpdate,
|
||||
APIVoiceState,
|
||||
InviteTargetType,
|
||||
PresenceUpdateStatus,
|
||||
AutoModerationRuleTriggerType,
|
||||
@@ -47,6 +46,7 @@ import type {
|
||||
GatewayGuildMembersChunkPresence,
|
||||
APIBaseMessage,
|
||||
APIGuildMemberJoined,
|
||||
APIVoiceStateMember,
|
||||
} from '../payloads/v9/index';
|
||||
import type { ReactionType } from '../rest/v9/index';
|
||||
import type { _Nullable } from '../utils/internals';
|
||||
@@ -285,6 +285,7 @@ export enum GatewayDispatchEvents {
|
||||
MessageReactionRemoveEmoji = 'MESSAGE_REACTION_REMOVE_EMOJI',
|
||||
MessageUpdate = 'MESSAGE_UPDATE',
|
||||
PresenceUpdate = 'PRESENCE_UPDATE',
|
||||
RateLimited = 'RATE_LIMITED',
|
||||
Ready = 'READY',
|
||||
Resumed = 'RESUMED',
|
||||
StageInstanceCreate = 'STAGE_INSTANCE_CREATE',
|
||||
@@ -373,6 +374,7 @@ export type GatewayDispatchPayload =
|
||||
| GatewayMessageReactionRemoveEmojiDispatch
|
||||
| GatewayMessageUpdateDispatch
|
||||
| GatewayPresenceUpdateDispatch
|
||||
| GatewayRateLimitedDispatch
|
||||
| GatewayReadyDispatch
|
||||
| GatewayResumedDispatch
|
||||
| GatewaySoundboardSoundsDispatch
|
||||
@@ -878,7 +880,7 @@ export interface GatewayGuildCreateDispatchData extends APIGuild {
|
||||
*
|
||||
* @see {@link https://discord.com/developers/docs/resources/voice#voice-state-object}
|
||||
*/
|
||||
voice_states: APIBaseVoiceState[];
|
||||
voice_states: GatewayVoiceStateUpdateDispatchData[];
|
||||
/**
|
||||
* Users in the guild
|
||||
*
|
||||
@@ -1133,7 +1135,7 @@ export type GatewayGuildMemberUpdateDispatch = _DataPayload<
|
||||
* @see {@link https://discord.com/developers/docs/topics/gateway-events#guild-member-update}
|
||||
*/
|
||||
export interface GatewayGuildMemberUpdateDispatchData
|
||||
extends _Nullable<APIGuildMemberJoined>,
|
||||
extends APIGuildMemberJoined,
|
||||
APIBaseGuildMember,
|
||||
Partial<APIBaseVoiceGuildMember>,
|
||||
Partial<APIFlaggedGuildMember>,
|
||||
@@ -1559,6 +1561,10 @@ export interface GatewayInviteCreateDispatchData {
|
||||
* How many times the invite has been used (always will be `0`)
|
||||
*/
|
||||
uses: 0;
|
||||
/**
|
||||
* The expiration date of this invite.
|
||||
*/
|
||||
expires_at: string | null;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1619,7 +1625,7 @@ export interface APIGuildMemberNoUser
|
||||
extends APIBaseGuildMember,
|
||||
APIFlaggedGuildMember,
|
||||
APIGuildMemberAvatar,
|
||||
APIGuildMemberJoined,
|
||||
NonNullable<APIGuildMemberJoined>,
|
||||
APIBaseVoiceGuildMember {}
|
||||
|
||||
export interface APIUserWithMember extends APIUser {
|
||||
@@ -2097,7 +2103,7 @@ export type GatewayVoiceStateUpdateDispatch = _DataPayload<
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/topics/gateway-events#voice-state-update}
|
||||
*/
|
||||
export type GatewayVoiceStateUpdateDispatchData = APIVoiceState;
|
||||
export interface GatewayVoiceStateUpdateDispatchData extends APIBaseVoiceState, APIVoiceStateMember {}
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/topics/gateway-events#voice-server-update}
|
||||
@@ -2212,6 +2218,73 @@ export interface GatewayMessagePollVoteDispatchData {
|
||||
answer_id: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/events/gateway-events#rate-limited}
|
||||
*/
|
||||
export type GatewayRateLimitedDispatch<
|
||||
Opcode extends keyof GatewayOpcodeRateLimitMetadataMap = keyof GatewayOpcodeRateLimitMetadataMap,
|
||||
> = _DataPayload<GatewayDispatchEvents.RateLimited, GatewayRateLimitedDispatchData<Opcode>>;
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/events/gateway-events#rate-limited}
|
||||
*/
|
||||
export type GatewayRateLimitedRequestGuildMembersDispatch =
|
||||
GatewayRateLimitedDispatch<GatewayOpcodes.RequestGuildMembers>;
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/events/gateway-events#rate-limited}
|
||||
*/
|
||||
export interface GatewayRateLimitedDispatchData<
|
||||
Opcode extends keyof GatewayOpcodeRateLimitMetadataMap = keyof GatewayOpcodeRateLimitMetadataMap,
|
||||
> {
|
||||
/**
|
||||
* {@link GatewayOpcodes | Gateway opcode} of the event that was rate limited
|
||||
*/
|
||||
opcode: Opcode;
|
||||
/**
|
||||
* The number of seconds to wait before submitting another request
|
||||
*/
|
||||
retry_after: number;
|
||||
/**
|
||||
* Metadata for the event that was rate limited
|
||||
*/
|
||||
meta: GatewayOpcodeRateLimitMetadataMap[Opcode];
|
||||
}
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/events/gateway-events#rate-limited}
|
||||
*/
|
||||
export type GatewayRateLimitedRequestGuildMembersDispatchData =
|
||||
GatewayRateLimitedDispatchData<GatewayOpcodes.RequestGuildMembers>;
|
||||
|
||||
/**
|
||||
* Map of gateway opcodes to their rate limit metadata types
|
||||
*
|
||||
* @see {@link https://discord.com/developers/docs/events/gateway-events#rate-limited-rate-limit-metadata-for-opcode-structure}
|
||||
*/
|
||||
export interface GatewayOpcodeRateLimitMetadataMap {
|
||||
[GatewayOpcodes.RequestGuildMembers]: GatewayRequestGuildMemberRateLimitMetadata;
|
||||
}
|
||||
|
||||
/**
|
||||
* Types of metadata that can be received in a {@link GatewayRateLimitedDispatchData.meta} field
|
||||
*/
|
||||
export type GatewayRateLimitedMetadata = GatewayOpcodeRateLimitMetadataMap[keyof GatewayOpcodeRateLimitMetadataMap];
|
||||
|
||||
/**
|
||||
* Rate limit metadata for the {@link GatewayOpcodes.RequestGuildMembers} opcode
|
||||
*/
|
||||
export interface GatewayRequestGuildMemberRateLimitMetadata {
|
||||
/**
|
||||
* Id of the guild members were requested for
|
||||
*/
|
||||
guild_id: Snowflake;
|
||||
/**
|
||||
* Nonce used to identify the {@link GatewayGuildMembersChunkDispatch} response
|
||||
*/
|
||||
nonce?: string;
|
||||
}
|
||||
|
||||
// #endregion Dispatch Payloads
|
||||
|
||||
// #region Sendable Payloads
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "discord-api-types",
|
||||
"version": "0.38.17",
|
||||
"version": "0.38.25",
|
||||
"description": "Discord API typings that are kept up to date for use in bot library creation.",
|
||||
"homepage": "https://discord-api-types.dev",
|
||||
"workspaces": [
|
||||
@@ -207,9 +207,9 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"packageManager": "yarn@4.9.2",
|
||||
"packageManager": "yarn@4.9.4",
|
||||
"volta": {
|
||||
"node": "24.4.1",
|
||||
"yarn": "4.9.2"
|
||||
"node": "24.8.0",
|
||||
"yarn": "4.9.4"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -288,6 +288,12 @@ export const PermissionFlagsBits = {
|
||||
* Applies to channel types: Text, Voice, Stage
|
||||
*/
|
||||
UseExternalApps: 1n << 50n,
|
||||
/**
|
||||
* Allows pinning and unpinning messages
|
||||
*
|
||||
* Applies to channel types: Text
|
||||
*/
|
||||
PinMessages: 1n << 51n,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { Snowflake } from '../../../../globals';
|
||||
import type { APIMessage } from '../../channel';
|
||||
import type { APIMessage } from '../../message';
|
||||
import type { APIApplicationCommandInteractionWrapper, ApplicationCommandType } from '../applicationCommands';
|
||||
import type { APIDMInteractionWrapper, APIGuildInteractionWrapper, APIUserInteractionDataResolved } from '../base';
|
||||
import type { APIBaseApplicationCommandInteractionData } from './internals';
|
||||
|
||||
@@ -1,14 +1,6 @@
|
||||
import type { Permissions, Snowflake } from '../../../globals';
|
||||
import type { APIRole, ApplicationIntegrationType, InteractionContextType, Locale } from '../../../v10';
|
||||
import type {
|
||||
APIAttachment,
|
||||
APIChannel,
|
||||
APIMessage,
|
||||
APIPartialChannel,
|
||||
APIThreadChannel,
|
||||
ChannelType,
|
||||
ThreadChannelType,
|
||||
} from '../channel';
|
||||
import type { APIChannel, APIPartialChannel, APIThreadChannel, ChannelType, ThreadChannelType } from '../channel';
|
||||
import type {
|
||||
APIBaseGuildMember,
|
||||
APIFlaggedGuildMember,
|
||||
@@ -17,6 +9,7 @@ import type {
|
||||
APIGuildMemberJoined,
|
||||
APIPartialInteractionGuild,
|
||||
} from '../guild';
|
||||
import type { APIAttachment, APIMessage } from '../message';
|
||||
import type { APIEntitlement } from '../monetization';
|
||||
import type { APIUser } from '../user';
|
||||
import type { InteractionType } from './responses';
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import type { Snowflake } from '../../../globals';
|
||||
import type { ComponentType } from '../channel';
|
||||
import type { APIBaseInteraction, InteractionType } from '../interactions';
|
||||
import type { ComponentType } from '../message';
|
||||
import type {
|
||||
APIDMInteractionWrapper,
|
||||
APIGuildInteractionWrapper,
|
||||
|
||||
@@ -1,26 +1,76 @@
|
||||
import type { APIBaseComponent } from '../channel';
|
||||
import type {
|
||||
APIBaseInteraction,
|
||||
APIDMInteractionWrapper,
|
||||
APIGuildInteractionWrapper,
|
||||
APIInteractionDataResolved,
|
||||
ComponentType,
|
||||
InteractionType,
|
||||
} from '../index';
|
||||
import type { APIBaseComponent } from '../message';
|
||||
|
||||
export interface ModalSubmitComponent {
|
||||
type: ComponentType;
|
||||
export interface APIBaseModalSubmitComponent<T extends ComponentType> extends APIBaseComponent<T> {
|
||||
type: T;
|
||||
custom_id: string;
|
||||
}
|
||||
|
||||
export interface APIModalSubmitTextInputComponent extends APIBaseModalSubmitComponent<ComponentType.TextInput> {
|
||||
value: string;
|
||||
}
|
||||
|
||||
export interface ModalSubmitActionRowComponent extends APIBaseComponent<ComponentType.ActionRow> {
|
||||
components: ModalSubmitComponent[];
|
||||
export interface APIModalSubmitStringSelectComponent extends APIBaseModalSubmitComponent<ComponentType.StringSelect> {
|
||||
values: string[];
|
||||
}
|
||||
|
||||
export interface APIModalSubmitUserSelectComponent extends APIBaseModalSubmitComponent<ComponentType.UserSelect> {
|
||||
values: string[];
|
||||
}
|
||||
|
||||
export interface APIModalSubmitRoleSelectComponent extends APIBaseModalSubmitComponent<ComponentType.RoleSelect> {
|
||||
values: string[];
|
||||
}
|
||||
|
||||
export interface APIModalSubmitMentionableSelectComponent
|
||||
extends APIBaseModalSubmitComponent<ComponentType.MentionableSelect> {
|
||||
values: string[];
|
||||
}
|
||||
|
||||
export interface APIModalSubmitChannelSelectComponent extends APIBaseModalSubmitComponent<ComponentType.ChannelSelect> {
|
||||
values: string[];
|
||||
}
|
||||
|
||||
export type ModalSubmitComponent =
|
||||
| APIModalSubmitChannelSelectComponent
|
||||
| APIModalSubmitMentionableSelectComponent
|
||||
| APIModalSubmitRoleSelectComponent
|
||||
| APIModalSubmitStringSelectComponent
|
||||
| APIModalSubmitTextInputComponent
|
||||
| APIModalSubmitUserSelectComponent;
|
||||
|
||||
export interface ModalSubmitActionRowComponent extends APIBaseComponent<ComponentType.ActionRow> {
|
||||
components: APIModalSubmitTextInputComponent[];
|
||||
}
|
||||
|
||||
export interface ModalSubmitTextDisplayComponent extends APIBaseComponent<ComponentType.TextDisplay> {}
|
||||
|
||||
export interface ModalSubmitLabelComponent extends APIBaseComponent<ComponentType.Label> {
|
||||
component: ModalSubmitComponent;
|
||||
}
|
||||
|
||||
export type APIModalSubmissionComponent =
|
||||
| ModalSubmitActionRowComponent
|
||||
| ModalSubmitLabelComponent
|
||||
| ModalSubmitTextDisplayComponent;
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-modal-submit-data-structure}
|
||||
*/
|
||||
export interface APIModalSubmission {
|
||||
/**
|
||||
* Data for users, members, channels, and roles in the modal's auto-populated select menus
|
||||
*
|
||||
* @see {@link https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-resolved-data-structure}
|
||||
*/
|
||||
resolved?: APIInteractionDataResolved;
|
||||
/**
|
||||
* A developer-defined identifier for the component, max 100 characters
|
||||
*/
|
||||
@@ -28,7 +78,7 @@ export interface APIModalSubmission {
|
||||
/**
|
||||
* A list of child components
|
||||
*/
|
||||
components: ModalSubmitActionRowComponent[];
|
||||
components: APIModalSubmissionComponent[];
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,5 +1,10 @@
|
||||
import type { RESTPostAPIWebhookWithTokenJSONBody } from '../../../v10';
|
||||
import type { APIActionRowComponent, APIComponentInModalActionRow } from '../channel';
|
||||
import type {
|
||||
APIActionRowComponent,
|
||||
APIComponentInModalActionRow,
|
||||
APILabelComponent,
|
||||
APITextDisplayComponent,
|
||||
} from '../message';
|
||||
import type { APIApplicationCommandOptionChoice } from './applicationCommands';
|
||||
|
||||
/**
|
||||
@@ -126,6 +131,11 @@ export interface APICommandAutocompleteInteractionResponseCallbackData {
|
||||
choices?: APIApplicationCommandOptionChoice[];
|
||||
}
|
||||
|
||||
export type APIModalInteractionResponseCallbackComponent =
|
||||
| APIActionRowComponent<APIComponentInModalActionRow>
|
||||
| APILabelComponent
|
||||
| APITextDisplayComponent;
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-response-object-modal}
|
||||
*/
|
||||
@@ -140,6 +150,8 @@ export interface APIModalInteractionResponseCallbackData {
|
||||
title: string;
|
||||
/**
|
||||
* Between 1 and 5 (inclusive) components that make up the modal
|
||||
*
|
||||
* @remarks Using action rows inside modals is deprecated.
|
||||
*/
|
||||
components: APIActionRowComponent<APIComponentInModalActionRow>[];
|
||||
components: APIModalInteractionResponseCallbackComponent[];
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -182,14 +182,28 @@ export interface GatewayActivity {
|
||||
* Application id for the game
|
||||
*/
|
||||
application_id?: Snowflake;
|
||||
/**
|
||||
* Controls which field is displayed in the user's status text in the member list
|
||||
*
|
||||
* @see {@link https://discord.com/developers/docs/events/gateway-events#activity-object-status-display-types}
|
||||
*/
|
||||
status_display_type?: StatusDisplayType | null;
|
||||
/**
|
||||
* What the player is currently doing
|
||||
*/
|
||||
details?: string | null;
|
||||
/**
|
||||
* URL that is linked when clicking on the details text
|
||||
*/
|
||||
details_url?: string | null;
|
||||
/**
|
||||
* The user's current party status, or the text used for a custom status
|
||||
*/
|
||||
state?: string | null;
|
||||
/**
|
||||
* URL that is linked when clicking on the state text
|
||||
*/
|
||||
state_url?: string | null;
|
||||
/**
|
||||
* The emoji used for a custom status
|
||||
*
|
||||
@@ -280,6 +294,26 @@ export enum ActivityType {
|
||||
Competing,
|
||||
}
|
||||
|
||||
/**
|
||||
* Controls which field is used in the user's status message
|
||||
*
|
||||
* @see {@link https://discord.com/developers/docs/events/gateway-events#activity-object-status-display-types}
|
||||
*/
|
||||
export enum StatusDisplayType {
|
||||
/**
|
||||
* Playing \{name\}
|
||||
*/
|
||||
Name,
|
||||
/**
|
||||
* Playing \{state\}
|
||||
*/
|
||||
State,
|
||||
/**
|
||||
* Playing \{details\}
|
||||
*/
|
||||
Details,
|
||||
}
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/topics/gateway-events#activity-object-activity-timestamps}
|
||||
*/
|
||||
@@ -317,7 +351,7 @@ export interface GatewayActivityParty {
|
||||
* @see {@link https://discord.com/developers/docs/topics/gateway-events#activity-object-activity-assets}
|
||||
*/
|
||||
export type GatewayActivityAssets = Partial<
|
||||
Record<'large_image' | 'large_text' | 'small_image' | 'small_text', string>
|
||||
Record<'large_image' | 'large_text' | 'large_url' | 'small_image' | 'small_text' | 'small_url', string>
|
||||
>;
|
||||
|
||||
/**
|
||||
|
||||
@@ -565,10 +565,18 @@ export enum GuildFeature {
|
||||
* Guild has enabled the welcome screen
|
||||
*/
|
||||
WelcomeScreenEnabled = 'WELCOME_SCREEN_ENABLED',
|
||||
/**
|
||||
* Guild has access to set guild tags
|
||||
*/
|
||||
GuildTags = 'GUILD_TAGS',
|
||||
/**
|
||||
* Guild is able to set gradient colors to roles
|
||||
*/
|
||||
EnhancedRoleColors = 'ENHANCED_ROLE_COLORS',
|
||||
/**
|
||||
* Guild has access to guest invites
|
||||
*/
|
||||
GuestsEnabled = 'GUESTS_ENABLED',
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -702,7 +710,7 @@ export interface APIGuildMemberJoined {
|
||||
/**
|
||||
* When the user joined the guild
|
||||
*/
|
||||
joined_at: string;
|
||||
joined_at: string | null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -9,6 +9,7 @@ export * from './guild';
|
||||
export * from './guildScheduledEvent';
|
||||
export * from './interactions';
|
||||
export * from './invite';
|
||||
export * from './message';
|
||||
export * from './monetization';
|
||||
export * from './oauth2';
|
||||
export * from './permissions';
|
||||
|
||||
@@ -6,7 +6,6 @@ import type { APIApplication } from './application';
|
||||
import type { APIInviteChannel } from './channel';
|
||||
import type { APIGuild } from './guild';
|
||||
import type { APIGuildScheduledEvent } from './guildScheduledEvent';
|
||||
import type { APIInviteStageInstance } from './stageInstance';
|
||||
import type { APIUser } from './user';
|
||||
|
||||
export type APIInviteGuild = Pick<
|
||||
@@ -77,16 +76,16 @@ export interface APIInvite {
|
||||
*/
|
||||
approximate_member_count?: number;
|
||||
/**
|
||||
* The expiration date of this invite, returned from the `GET /invites/<code>` endpoint when `with_expiration` is `true`
|
||||
* The expiration date of this invite
|
||||
*/
|
||||
expires_at?: string | null;
|
||||
expires_at: string | null;
|
||||
/**
|
||||
* The stage instance data if there is a public stage instance in the stage channel this invite is for
|
||||
*
|
||||
* @deprecated
|
||||
* {@link https://github.com/discord/discord-api-docs/pull/4479 | discord-api-docs#4479}
|
||||
* @deprecated This has been removed from the documentation.
|
||||
* {@link https://github.com/discord/discord-api-docs/pull/7779 | discord-api-docs#7779}
|
||||
*/
|
||||
stage_instance?: APIInviteStageInstance;
|
||||
stage_instance?: never;
|
||||
/**
|
||||
* The guild scheduled event data, returned from the `GET /invites/<code>` endpoint when `guild_scheduled_event_id` is a valid guild scheduled event id
|
||||
*/
|
||||
@@ -95,6 +94,17 @@ export interface APIInvite {
|
||||
* The invite type
|
||||
*/
|
||||
type: InviteType;
|
||||
/**
|
||||
* The flags of the invite
|
||||
*/
|
||||
flags?: InviteFlags;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/resources/invite#invite-object-guild-invite-flags}
|
||||
*/
|
||||
export enum InviteFlags {
|
||||
IsGuestInvite = 1 << 0,
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
1786
payloads/v10/message.ts
Normal file
1786
payloads/v10/message.ts
Normal file
File diff suppressed because it is too large
Load Diff
@@ -23,12 +23,6 @@ export interface APIBaseVoiceState {
|
||||
* The user id this voice state is for
|
||||
*/
|
||||
user_id: Snowflake;
|
||||
/**
|
||||
* The guild member this voice state is for
|
||||
*
|
||||
* @see {@link https://discord.com/developers/docs/resources/guild#guild-member-object}
|
||||
*/
|
||||
member?: APIGuildMember;
|
||||
/**
|
||||
* The session id for this voice state
|
||||
*/
|
||||
@@ -67,10 +61,20 @@ export interface APIBaseVoiceState {
|
||||
request_to_speak_timestamp: string | null;
|
||||
}
|
||||
|
||||
export interface APIVoiceStateMember {
|
||||
/**
|
||||
* The guild member this voice state is for
|
||||
*
|
||||
* @remarks The member field will have `joined_at` set to `null` if the member was invited as a guest.
|
||||
* @see {@link https://discord.com/developers/docs/resources/guild#guild-member-object}
|
||||
*/
|
||||
member?: APIGuildMember;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/resources/voice#voice-state-object}
|
||||
*/
|
||||
export interface APIVoiceState extends APIBaseVoiceState {
|
||||
export interface APIVoiceState extends APIBaseVoiceState, APIVoiceStateMember {
|
||||
/**
|
||||
* The guild id this voice state is for
|
||||
*/
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { Snowflake } from '../../../../globals';
|
||||
import type { APIMessage } from '../../channel';
|
||||
import type { APIMessage } from '../../message';
|
||||
import type { APIApplicationCommandInteractionWrapper, ApplicationCommandType } from '../applicationCommands';
|
||||
import type { APIDMInteractionWrapper, APIGuildInteractionWrapper, APIUserInteractionDataResolved } from '../base';
|
||||
import type { APIBaseApplicationCommandInteractionData } from './internals';
|
||||
|
||||
@@ -1,14 +1,6 @@
|
||||
import type { Permissions, Snowflake } from '../../../globals';
|
||||
import type { APIRole, ApplicationIntegrationType, InteractionContextType, Locale } from '../../../v9';
|
||||
import type {
|
||||
APIAttachment,
|
||||
APIChannel,
|
||||
APIMessage,
|
||||
APIPartialChannel,
|
||||
APIThreadChannel,
|
||||
ChannelType,
|
||||
ThreadChannelType,
|
||||
} from '../channel';
|
||||
import type { APIChannel, APIPartialChannel, APIThreadChannel, ChannelType, ThreadChannelType } from '../channel';
|
||||
import type {
|
||||
APIBaseGuildMember,
|
||||
APIFlaggedGuildMember,
|
||||
@@ -17,6 +9,7 @@ import type {
|
||||
APIGuildMemberJoined,
|
||||
APIPartialInteractionGuild,
|
||||
} from '../guild';
|
||||
import type { APIAttachment, APIMessage } from '../message';
|
||||
import type { APIEntitlement } from '../monetization';
|
||||
import type { APIUser } from '../user';
|
||||
import type { InteractionType } from './responses';
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import type { Snowflake } from '../../../globals';
|
||||
import type { ComponentType } from '../channel';
|
||||
import type { APIBaseInteraction, InteractionType } from '../interactions';
|
||||
import type { ComponentType } from '../message';
|
||||
import type {
|
||||
APIDMInteractionWrapper,
|
||||
APIGuildInteractionWrapper,
|
||||
|
||||
@@ -1,26 +1,76 @@
|
||||
import type { APIBaseComponent } from '../channel';
|
||||
import type {
|
||||
APIBaseInteraction,
|
||||
APIDMInteractionWrapper,
|
||||
APIGuildInteractionWrapper,
|
||||
APIInteractionDataResolved,
|
||||
ComponentType,
|
||||
InteractionType,
|
||||
} from '../index';
|
||||
import type { APIBaseComponent } from '../message';
|
||||
|
||||
export interface ModalSubmitComponent {
|
||||
type: ComponentType;
|
||||
export interface APIBaseModalSubmitComponent<T extends ComponentType> extends APIBaseComponent<T> {
|
||||
type: T;
|
||||
custom_id: string;
|
||||
}
|
||||
|
||||
export interface APIModalSubmitTextInputComponent extends APIBaseModalSubmitComponent<ComponentType.TextInput> {
|
||||
value: string;
|
||||
}
|
||||
|
||||
export interface ModalSubmitActionRowComponent extends APIBaseComponent<ComponentType.ActionRow> {
|
||||
components: ModalSubmitComponent[];
|
||||
export interface APIModalSubmitStringSelectComponent extends APIBaseModalSubmitComponent<ComponentType.StringSelect> {
|
||||
values: string[];
|
||||
}
|
||||
|
||||
export interface APIModalSubmitUserSelectComponent extends APIBaseModalSubmitComponent<ComponentType.UserSelect> {
|
||||
values: string[];
|
||||
}
|
||||
|
||||
export interface APIModalSubmitRoleSelectComponent extends APIBaseModalSubmitComponent<ComponentType.RoleSelect> {
|
||||
values: string[];
|
||||
}
|
||||
|
||||
export interface APIModalSubmitMentionableSelectComponent
|
||||
extends APIBaseModalSubmitComponent<ComponentType.MentionableSelect> {
|
||||
values: string[];
|
||||
}
|
||||
|
||||
export interface APIModalSubmitChannelSelectComponent extends APIBaseModalSubmitComponent<ComponentType.ChannelSelect> {
|
||||
values: string[];
|
||||
}
|
||||
|
||||
export type ModalSubmitComponent =
|
||||
| APIModalSubmitChannelSelectComponent
|
||||
| APIModalSubmitMentionableSelectComponent
|
||||
| APIModalSubmitRoleSelectComponent
|
||||
| APIModalSubmitStringSelectComponent
|
||||
| APIModalSubmitTextInputComponent
|
||||
| APIModalSubmitUserSelectComponent;
|
||||
|
||||
export interface ModalSubmitActionRowComponent extends APIBaseComponent<ComponentType.ActionRow> {
|
||||
components: APIModalSubmitTextInputComponent[];
|
||||
}
|
||||
|
||||
export interface ModalSubmitTextDisplayComponent extends APIBaseComponent<ComponentType.TextDisplay> {}
|
||||
|
||||
export interface ModalSubmitLabelComponent extends APIBaseComponent<ComponentType.Label> {
|
||||
component: ModalSubmitComponent;
|
||||
}
|
||||
|
||||
export type APIModalSubmissionComponent =
|
||||
| ModalSubmitActionRowComponent
|
||||
| ModalSubmitLabelComponent
|
||||
| ModalSubmitTextDisplayComponent;
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-modal-submit-data-structure}
|
||||
*/
|
||||
export interface APIModalSubmission {
|
||||
/**
|
||||
* Data for users, members, channels, and roles in the modal's auto-populated select menus
|
||||
*
|
||||
* @see {@link https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-resolved-data-structure}
|
||||
*/
|
||||
resolved?: APIInteractionDataResolved;
|
||||
/**
|
||||
* A developer-defined identifier for the component, max 100 characters
|
||||
*/
|
||||
@@ -28,7 +78,7 @@ export interface APIModalSubmission {
|
||||
/**
|
||||
* A list of child components
|
||||
*/
|
||||
components: ModalSubmitActionRowComponent[];
|
||||
components: APIModalSubmissionComponent[];
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,5 +1,10 @@
|
||||
import type { RESTPostAPIWebhookWithTokenJSONBody } from '../../../v9';
|
||||
import type { APIActionRowComponent, APIComponentInModalActionRow } from '../channel';
|
||||
import type {
|
||||
APIActionRowComponent,
|
||||
APIComponentInModalActionRow,
|
||||
APILabelComponent,
|
||||
APITextDisplayComponent,
|
||||
} from '../message';
|
||||
import type { APIApplicationCommandOptionChoice } from './applicationCommands';
|
||||
|
||||
/**
|
||||
@@ -126,6 +131,11 @@ export interface APICommandAutocompleteInteractionResponseCallbackData {
|
||||
choices?: APIApplicationCommandOptionChoice[];
|
||||
}
|
||||
|
||||
export type APIModalInteractionResponseCallbackComponent =
|
||||
| APIActionRowComponent<APIComponentInModalActionRow>
|
||||
| APILabelComponent
|
||||
| APITextDisplayComponent;
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-response-object-modal}
|
||||
*/
|
||||
@@ -140,6 +150,8 @@ export interface APIModalInteractionResponseCallbackData {
|
||||
title: string;
|
||||
/**
|
||||
* Between 1 and 5 (inclusive) components that make up the modal
|
||||
*
|
||||
* @remarks Using action rows inside modals is deprecated.
|
||||
*/
|
||||
components: APIActionRowComponent<APIComponentInModalActionRow>[];
|
||||
components: APIModalInteractionResponseCallbackComponent[];
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -173,14 +173,28 @@ export interface GatewayActivity {
|
||||
* Application id for the game
|
||||
*/
|
||||
application_id?: Snowflake;
|
||||
/**
|
||||
* Controls which field is displayed in the user's status text in the member list
|
||||
*
|
||||
* @see {@link https://discord.com/developers/docs/events/gateway-events#activity-object-status-display-types}
|
||||
*/
|
||||
status_display_type?: StatusDisplayType | null;
|
||||
/**
|
||||
* What the player is currently doing
|
||||
*/
|
||||
details?: string | null;
|
||||
/**
|
||||
* URL that is linked when clicking on the details text
|
||||
*/
|
||||
details_url?: string | null;
|
||||
/**
|
||||
* The user's current party status, or the text used for a custom status
|
||||
*/
|
||||
state?: string | null;
|
||||
/**
|
||||
* URL that is linked when clicking on the state text
|
||||
*/
|
||||
state_url?: string | null;
|
||||
/**
|
||||
* The emoji used for a custom status
|
||||
*
|
||||
@@ -268,6 +282,26 @@ export enum ActivityType {
|
||||
Competing,
|
||||
}
|
||||
|
||||
/**
|
||||
* Controls which field is used in the user's status message
|
||||
*
|
||||
* @see {@link https://discord.com/developers/docs/events/gateway-events#activity-object-status-display-types}
|
||||
*/
|
||||
export enum StatusDisplayType {
|
||||
/**
|
||||
* Playing \{name\}
|
||||
*/
|
||||
Name,
|
||||
/**
|
||||
* Playing \{state\}
|
||||
*/
|
||||
State,
|
||||
/**
|
||||
* Playing \{details\}
|
||||
*/
|
||||
Details,
|
||||
}
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/topics/gateway-events#activity-object-activity-timestamps}
|
||||
*/
|
||||
@@ -305,7 +339,7 @@ export interface GatewayActivityParty {
|
||||
* @see {@link https://discord.com/developers/docs/topics/gateway-events#activity-object-activity-assets}
|
||||
*/
|
||||
export type GatewayActivityAssets = Partial<
|
||||
Record<'large_image' | 'large_text' | 'small_image' | 'small_text', string>
|
||||
Record<'large_image' | 'large_text' | 'large_url' | 'small_image' | 'small_text' | 'small_url', string>
|
||||
>;
|
||||
|
||||
/**
|
||||
|
||||
@@ -557,10 +557,18 @@ export enum GuildFeature {
|
||||
* Guild has enabled the welcome screen
|
||||
*/
|
||||
WelcomeScreenEnabled = 'WELCOME_SCREEN_ENABLED',
|
||||
/**
|
||||
* Guild has access to set guild tags
|
||||
*/
|
||||
GuildTags = 'GUILD_TAGS',
|
||||
/**
|
||||
* Guild is able to set gradient colors to roles
|
||||
*/
|
||||
EnhancedRoleColors = 'ENHANCED_ROLE_COLORS',
|
||||
/**
|
||||
* Guild has access to guest invites
|
||||
*/
|
||||
GuestsEnabled = 'GUESTS_ENABLED',
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -694,7 +702,7 @@ export interface APIGuildMemberJoined {
|
||||
/**
|
||||
* When the user joined the guild
|
||||
*/
|
||||
joined_at: string;
|
||||
joined_at: string | null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -9,6 +9,7 @@ export * from './guild';
|
||||
export * from './guildScheduledEvent';
|
||||
export * from './interactions';
|
||||
export * from './invite';
|
||||
export * from './message';
|
||||
export * from './monetization';
|
||||
export * from './oauth2';
|
||||
export * from './permissions';
|
||||
|
||||
@@ -6,7 +6,6 @@ import type { APIApplication } from './application';
|
||||
import type { APIInviteChannel } from './channel';
|
||||
import type { APIGuild } from './guild';
|
||||
import type { APIGuildScheduledEvent } from './guildScheduledEvent';
|
||||
import type { APIInviteStageInstance } from './stageInstance';
|
||||
import type { APIUser } from './user';
|
||||
|
||||
export type APIInviteGuild = Pick<
|
||||
@@ -77,16 +76,16 @@ export interface APIInvite {
|
||||
*/
|
||||
approximate_member_count?: number;
|
||||
/**
|
||||
* The expiration date of this invite, returned from the `GET /invites/<code>` endpoint when `with_expiration` is `true`
|
||||
* The expiration date of this invite
|
||||
*/
|
||||
expires_at?: string | null;
|
||||
expires_at: string | null;
|
||||
/**
|
||||
* The stage instance data if there is a public stage instance in the stage channel this invite is for
|
||||
*
|
||||
* @deprecated
|
||||
* {@link https://github.com/discord/discord-api-docs/pull/4479 | discord-api-docs#4479}
|
||||
* @deprecated This has been removed from the documentation.
|
||||
* {@link https://github.com/discord/discord-api-docs/pull/7779 | discord-api-docs#7779}
|
||||
*/
|
||||
stage_instance?: APIInviteStageInstance;
|
||||
stage_instance?: never;
|
||||
/**
|
||||
* The guild scheduled event data, returned from the `GET /invites/<code>` endpoint when `guild_scheduled_event_id` is a valid guild scheduled event id
|
||||
*/
|
||||
@@ -95,6 +94,17 @@ export interface APIInvite {
|
||||
* The invite type
|
||||
*/
|
||||
type: InviteType;
|
||||
/**
|
||||
* The flags of the invite
|
||||
*/
|
||||
flags?: InviteFlags;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/resources/invite#invite-object-guild-invite-flags}
|
||||
*/
|
||||
export enum InviteFlags {
|
||||
IsGuestInvite = 1 << 0,
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
1781
payloads/v9/message.ts
Normal file
1781
payloads/v9/message.ts
Normal file
File diff suppressed because it is too large
Load Diff
@@ -20,12 +20,6 @@ export interface APIBaseVoiceState {
|
||||
* The user id this voice state is for
|
||||
*/
|
||||
user_id: Snowflake;
|
||||
/**
|
||||
* The guild member this voice state is for
|
||||
*
|
||||
* @see {@link https://discord.com/developers/docs/resources/guild#guild-member-object}
|
||||
*/
|
||||
member?: APIGuildMember;
|
||||
/**
|
||||
* The session id for this voice state
|
||||
*/
|
||||
@@ -64,10 +58,20 @@ export interface APIBaseVoiceState {
|
||||
request_to_speak_timestamp: string | null;
|
||||
}
|
||||
|
||||
export interface APIVoiceStateMember {
|
||||
/**
|
||||
* The guild member this voice state is for
|
||||
*
|
||||
* @remarks The member field will have `joined_at` set to `null` if the member was invited as a guest.
|
||||
* @see {@link https://discord.com/developers/docs/resources/guild#guild-member-object}
|
||||
*/
|
||||
member?: APIGuildMember;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/resources/voice#voice-state-object}
|
||||
*/
|
||||
export interface APIVoiceState extends APIBaseVoiceState {
|
||||
export interface APIVoiceState extends APIBaseVoiceState, APIVoiceStateMember {
|
||||
/**
|
||||
* The guild id this voice state is for
|
||||
*/
|
||||
|
||||
@@ -313,6 +313,8 @@ export enum RESTJSONErrorCodes {
|
||||
CannotEnableOnboardingRequirementsAreNotMet = 350_000,
|
||||
CannotUpdateOnboardingWhileBelowRequirements,
|
||||
|
||||
AccessToFileUploadsHasBeenLimitedForThisGuild = 400_001,
|
||||
|
||||
FailedToBanUsers = 500_000,
|
||||
|
||||
PollVotingBlocked = 520_000,
|
||||
|
||||
@@ -25,6 +25,9 @@ import type {
|
||||
APIAttachment,
|
||||
APIMessageTopLevelComponent,
|
||||
APIMessagePin,
|
||||
APIAnnouncementThreadChannel,
|
||||
APIPrivateThreadChannel,
|
||||
APIPublicThreadChannel,
|
||||
} from '../../payloads/v10/index';
|
||||
import type { _AddUndefinedToPossiblyUndefinedPropertiesOfInterface, _StrictPartial } from '../../utils/internals';
|
||||
import type { RESTAPIPoll } from './poll';
|
||||
@@ -767,7 +770,10 @@ export interface RESTPostAPIChannelThreadsJSONBody extends RESTPostAPIChannelMes
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/resources/channel#start-thread-without-message}
|
||||
*/
|
||||
export type RESTPostAPIChannelThreadsResult = APIChannel;
|
||||
export type RESTPostAPIChannelThreadsResult =
|
||||
| APIAnnouncementThreadChannel
|
||||
| APIPrivateThreadChannel
|
||||
| APIPublicThreadChannel;
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/resources/channel#join-thread}
|
||||
|
||||
@@ -97,7 +97,8 @@ export interface RESTAPIGuildCreateRole extends RESTPostAPIGuildRoleJSONBody {
|
||||
export type APIGuildCreateRole = RESTAPIGuildCreateRole;
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/resources/guild#create-guild}
|
||||
* @see {@link https://discord.com/developers/docs/change-log#guild-create-deprecation}
|
||||
* @deprecated
|
||||
*/
|
||||
export interface RESTPostAPIGuildsJSONBody {
|
||||
/**
|
||||
@@ -185,12 +186,14 @@ export interface RESTPostAPIGuildsJSONBody {
|
||||
}
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/resources/guild#create-guild}
|
||||
* @see {@link https://discord.com/developers/docs/change-log#guild-create-deprecation}
|
||||
* @deprecated
|
||||
*/
|
||||
export type RESTPostAPIGuildsResult = APIGuild;
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/resources/guild#modify-guild-mfa-level}
|
||||
* @see {@link https://discord.com/developers/docs/change-log#guild-create-deprecation}
|
||||
* @deprecated
|
||||
*/
|
||||
export interface RESTPostAPIGuildsMFAJSONBody {
|
||||
/**
|
||||
@@ -202,7 +205,8 @@ export interface RESTPostAPIGuildsMFAJSONBody {
|
||||
}
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/resources/guild#modify-guild-mfa-level}
|
||||
* @see {@link https://discord.com/developers/docs/change-log#guild-create-deprecation}
|
||||
* @deprecated
|
||||
*/
|
||||
export type RESTPostAPIGuildsMFAResult = RESTPostAPIGuildsMFAJSONBody;
|
||||
|
||||
@@ -276,6 +280,8 @@ export interface RESTPatchAPIGuildJSONBody {
|
||||
icon?: string | null | undefined;
|
||||
/**
|
||||
* User id to transfer guild ownership to (must be owner)
|
||||
*
|
||||
* @deprecated
|
||||
*/
|
||||
owner_id?: Snowflake | undefined;
|
||||
/**
|
||||
@@ -342,7 +348,8 @@ export interface RESTPatchAPIGuildJSONBody {
|
||||
export type RESTPatchAPIGuildResult = APIGuild;
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/resources/guild#delete-guild}
|
||||
* @see {@link https://discord.com/developers/docs/change-log#guild-create-deprecation}
|
||||
* @deprecated
|
||||
*/
|
||||
export type RESTDeleteAPIGuildResult = never;
|
||||
|
||||
@@ -543,6 +550,18 @@ export interface RESTPatchAPICurrentGuildMemberJSONBody {
|
||||
* Requires `CHANGE_NICKNAME` permission
|
||||
*/
|
||||
nick?: string | null | undefined;
|
||||
/**
|
||||
* Data URI base64 encoded banner image
|
||||
*/
|
||||
banner?: string | null | undefined;
|
||||
/**
|
||||
* Data URI base64 encoded avatar image
|
||||
*/
|
||||
avatar?: string | null | undefined;
|
||||
/**
|
||||
* Guild member bio
|
||||
*/
|
||||
bio?: string | null | undefined;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -250,6 +250,8 @@ export const Routes = {
|
||||
/**
|
||||
* Route for:
|
||||
* - POST `/guilds`
|
||||
*
|
||||
* @deprecated {@link https://discord.com/developers/docs/change-log#guild-create-deprecation}
|
||||
*/
|
||||
guilds() {
|
||||
return '/guilds' as const;
|
||||
@@ -259,7 +261,7 @@ export const Routes = {
|
||||
* Route for:
|
||||
* - GET `/guilds/{guild.id}`
|
||||
* - PATCH `/guilds/{guild.id}`
|
||||
* - DELETE `/guilds/{guild.id}`
|
||||
* - DELETE `/guilds/{guild.id}` (**deprecated**)
|
||||
*/
|
||||
guild(guildId: Snowflake) {
|
||||
return `/guilds/${guildId}` as const;
|
||||
@@ -333,6 +335,8 @@ export const Routes = {
|
||||
/**
|
||||
* Route for:
|
||||
* - POST `/guilds/{guild.id}/mfa`
|
||||
*
|
||||
* @deprecated
|
||||
*/
|
||||
guildMFA(guildId: Snowflake) {
|
||||
return `/guilds/${guildId}/mfa` as const;
|
||||
@@ -462,7 +466,7 @@ export const Routes = {
|
||||
/**
|
||||
* Route for:
|
||||
* - GET `/guilds/templates/{template.code}`
|
||||
* - POST `/guilds/templates/{template.code}`
|
||||
* - POST `/guilds/templates/{template.code}` (**deprecated**)
|
||||
*/
|
||||
template(code: string) {
|
||||
return `/guilds/templates/${code}` as const;
|
||||
|
||||
@@ -7,7 +7,8 @@ import type { _StrictPartial } from '../../utils/internals';
|
||||
export type RESTGetAPITemplateResult = APITemplate;
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/resources/guild-template#create-guild-from-guild-template}
|
||||
* @see {@link https://discord.com/developers/docs/change-log#guild-create-deprecation}
|
||||
* @deprecated
|
||||
*/
|
||||
export interface RESTPostAPITemplateCreateGuildJSONBody {
|
||||
/**
|
||||
@@ -23,7 +24,8 @@ export interface RESTPostAPITemplateCreateGuildJSONBody {
|
||||
}
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/resources/guild-template#create-guild-from-guild-template}
|
||||
* @see {@link https://discord.com/developers/docs/change-log#guild-create-deprecation}
|
||||
* @deprecated
|
||||
*/
|
||||
export type RESTPostAPITemplateCreateGuildResult = APIGuild;
|
||||
|
||||
|
||||
@@ -263,7 +263,9 @@ export interface RESTGetAPIWebhookWithTokenMessageQuery {
|
||||
* @see {@link https://discord.com/developers/docs/resources/webhook#edit-webhook-message}
|
||||
*/
|
||||
export type RESTPatchAPIWebhookWithTokenMessageJSONBody = _AddUndefinedToPossiblyUndefinedPropertiesOfInterface<
|
||||
_Nullable<Pick<RESTPostAPIWebhookWithTokenJSONBody, 'allowed_mentions' | 'components' | 'content' | 'embeds'>>
|
||||
_Nullable<
|
||||
Pick<RESTPostAPIWebhookWithTokenJSONBody, 'allowed_mentions' | 'components' | 'content' | 'embeds' | 'flags'>
|
||||
>
|
||||
> & {
|
||||
/**
|
||||
* Attached files to keep
|
||||
|
||||
@@ -25,6 +25,9 @@ import type {
|
||||
APIAttachment,
|
||||
APIMessageTopLevelComponent,
|
||||
APIMessagePin,
|
||||
APIAnnouncementThreadChannel,
|
||||
APIPrivateThreadChannel,
|
||||
APIPublicThreadChannel,
|
||||
} from '../../payloads/v9/index';
|
||||
import type { _AddUndefinedToPossiblyUndefinedPropertiesOfInterface, _StrictPartial } from '../../utils/internals';
|
||||
import type { RESTAPIPoll } from './poll';
|
||||
@@ -780,7 +783,10 @@ export interface RESTPostAPIChannelThreadsJSONBody extends RESTPostAPIChannelMes
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/resources/channel#start-thread-without-message}
|
||||
*/
|
||||
export type RESTPostAPIChannelThreadsResult = APIChannel;
|
||||
export type RESTPostAPIChannelThreadsResult =
|
||||
| APIAnnouncementThreadChannel
|
||||
| APIPrivateThreadChannel
|
||||
| APIPublicThreadChannel;
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/resources/channel#join-thread}
|
||||
|
||||
@@ -98,6 +98,7 @@ export type APIGuildCreateRole = RESTAPIGuildCreateRole;
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/resources/guild#create-guild}
|
||||
* @deprecated {@link https://discord.com/developers/docs/change-log#guild-create-deprecation}
|
||||
*/
|
||||
export interface RESTPostAPIGuildsJSONBody {
|
||||
/**
|
||||
@@ -185,12 +186,14 @@ export interface RESTPostAPIGuildsJSONBody {
|
||||
}
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/resources/guild#create-guild}
|
||||
* @see {@link https://discord.com/developers/docs/change-log#guild-create-deprecation}
|
||||
* @deprecated
|
||||
*/
|
||||
export type RESTPostAPIGuildsResult = APIGuild;
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/resources/guild#modify-guild-mfa-level}
|
||||
* @see {@link https://discord.com/developers/docs/change-log#guild-create-deprecation}
|
||||
* @deprecated
|
||||
*/
|
||||
export interface RESTPostAPIGuildsMFAJSONBody {
|
||||
/**
|
||||
@@ -202,7 +205,8 @@ export interface RESTPostAPIGuildsMFAJSONBody {
|
||||
}
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/resources/guild#modify-guild-mfa-level}
|
||||
* @see {@link https://discord.com/developers/docs/change-log#guild-create-deprecation}
|
||||
* @deprecated
|
||||
*/
|
||||
export type RESTPostAPIGuildsMFAResult = RESTPostAPIGuildsMFAJSONBody;
|
||||
|
||||
@@ -276,6 +280,8 @@ export interface RESTPatchAPIGuildJSONBody {
|
||||
icon?: string | null | undefined;
|
||||
/**
|
||||
* User id to transfer guild ownership to (must be owner)
|
||||
*
|
||||
* @deprecated
|
||||
*/
|
||||
owner_id?: Snowflake | undefined;
|
||||
/**
|
||||
@@ -342,7 +348,8 @@ export interface RESTPatchAPIGuildJSONBody {
|
||||
export type RESTPatchAPIGuildResult = APIGuild;
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/resources/guild#delete-guild}
|
||||
* @see {@link https://discord.com/developers/docs/change-log#guild-create-deprecation}
|
||||
* @deprecated
|
||||
*/
|
||||
export type RESTDeleteAPIGuildResult = never;
|
||||
|
||||
@@ -543,6 +550,18 @@ export interface RESTPatchAPICurrentGuildMemberJSONBody {
|
||||
* Requires `CHANGE_NICKNAME` permission
|
||||
*/
|
||||
nick?: string | null | undefined;
|
||||
/**
|
||||
* Data URI base64 encoded banner image
|
||||
*/
|
||||
banner?: string | null | undefined;
|
||||
/**
|
||||
* Data URI base64 encoded avatar image
|
||||
*/
|
||||
avatar?: string | null | undefined;
|
||||
/**
|
||||
* Guild member bio
|
||||
*/
|
||||
bio?: string | null | undefined;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -250,6 +250,8 @@ export const Routes = {
|
||||
/**
|
||||
* Route for:
|
||||
* - POST `/guilds`
|
||||
*
|
||||
* @deprecated {@link https://discord.com/developers/docs/change-log#guild-create-deprecation}
|
||||
*/
|
||||
guilds() {
|
||||
return '/guilds' as const;
|
||||
@@ -259,7 +261,7 @@ export const Routes = {
|
||||
* Route for:
|
||||
* - GET `/guilds/{guild.id}`
|
||||
* - PATCH `/guilds/{guild.id}`
|
||||
* - DELETE `/guilds/{guild.id}`
|
||||
* - DELETE `/guilds/{guild.id}` (**deprecated**)
|
||||
*/
|
||||
guild(guildId: Snowflake) {
|
||||
return `/guilds/${guildId}` as const;
|
||||
@@ -333,6 +335,8 @@ export const Routes = {
|
||||
/**
|
||||
* Route for:
|
||||
* - POST `/guilds/{guild.id}/mfa`
|
||||
*
|
||||
* @deprecated
|
||||
*/
|
||||
guildMFA(guildId: Snowflake) {
|
||||
return `/guilds/${guildId}/mfa` as const;
|
||||
@@ -462,7 +466,7 @@ export const Routes = {
|
||||
/**
|
||||
* Route for:
|
||||
* - GET `/guilds/templates/{template.code}`
|
||||
* - POST `/guilds/templates/{template.code}`
|
||||
* - POST `/guilds/templates/{template.code}` (**deprecated**)
|
||||
*/
|
||||
template(code: string) {
|
||||
return `/guilds/templates/${code}` as const;
|
||||
|
||||
@@ -7,7 +7,8 @@ import type { _StrictPartial } from '../../utils/internals';
|
||||
export type RESTGetAPITemplateResult = APITemplate;
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/resources/guild-template#create-guild-from-guild-template}
|
||||
* @see {@link https://discord.com/developers/docs/change-log#guild-create-deprecation}
|
||||
* @deprecated
|
||||
*/
|
||||
export interface RESTPostAPITemplateCreateGuildJSONBody {
|
||||
/**
|
||||
@@ -23,12 +24,13 @@ export interface RESTPostAPITemplateCreateGuildJSONBody {
|
||||
}
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/resources/guild-template#create-guild-from-guild-template}
|
||||
* @see {@link https://discord.com/developers/docs/change-log#guild-create-deprecation}
|
||||
*/
|
||||
export type RESTPostAPITemplateCreateGuildResult = APIGuild;
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/resources/guild-template#get-guild-templates}
|
||||
* @deprecated
|
||||
*/
|
||||
export type RESTGetAPIGuildTemplatesResult = APITemplate[];
|
||||
|
||||
|
||||
@@ -263,7 +263,9 @@ export interface RESTGetAPIWebhookWithTokenMessageQuery {
|
||||
* @see {@link https://discord.com/developers/docs/resources/webhook#edit-webhook-message}
|
||||
*/
|
||||
export type RESTPatchAPIWebhookWithTokenMessageJSONBody = _AddUndefinedToPossiblyUndefinedPropertiesOfInterface<
|
||||
_Nullable<Pick<RESTPostAPIWebhookWithTokenJSONBody, 'allowed_mentions' | 'components' | 'content' | 'embeds'>>
|
||||
_Nullable<
|
||||
Pick<RESTPostAPIWebhookWithTokenJSONBody, 'allowed_mentions' | 'components' | 'content' | 'embeds' | 'flags'>
|
||||
>
|
||||
> & {
|
||||
/**
|
||||
* Attached files to keep
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
"@actions/core": "^1.11.1",
|
||||
"@actions/glob": "^0.5.0",
|
||||
"@aws-sdk/client-s3": "^3.808.0",
|
||||
"cloudflare": "^4.2.0",
|
||||
"p-limit": "^6.2.0",
|
||||
"cloudflare": "^5.0.0",
|
||||
"p-limit": "^7.0.0",
|
||||
"p-queue": "^8.1.0"
|
||||
}
|
||||
}
|
||||
|
||||
168
website/package-lock.json
generated
168
website/package-lock.json
generated
@@ -583,11 +583,10 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@apify/docusaurus-plugin-typedoc-api/node_modules/brace-expansion": {
|
||||
"version": "2.0.1",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz",
|
||||
"integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==",
|
||||
"version": "2.0.2",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz",
|
||||
"integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"balanced-match": "^1.0.0"
|
||||
}
|
||||
@@ -5539,11 +5538,10 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@next/eslint-plugin-next/node_modules/brace-expansion": {
|
||||
"version": "2.0.1",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz",
|
||||
"integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==",
|
||||
"version": "2.0.2",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz",
|
||||
"integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"balanced-match": "^1.0.0"
|
||||
}
|
||||
@@ -5749,11 +5747,10 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@npmcli/map-workspaces/node_modules/brace-expansion": {
|
||||
"version": "2.0.1",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz",
|
||||
"integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==",
|
||||
"version": "2.0.2",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz",
|
||||
"integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"balanced-match": "^1.0.0"
|
||||
}
|
||||
@@ -5841,11 +5838,10 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@npmcli/package-json/node_modules/brace-expansion": {
|
||||
"version": "2.0.1",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz",
|
||||
"integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==",
|
||||
"version": "2.0.2",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz",
|
||||
"integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"balanced-match": "^1.0.0"
|
||||
}
|
||||
@@ -7713,11 +7709,10 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@typescript-eslint/eslint-plugin/node_modules/brace-expansion": {
|
||||
"version": "2.0.1",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz",
|
||||
"integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==",
|
||||
"version": "2.0.2",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz",
|
||||
"integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"balanced-match": "^1.0.0"
|
||||
}
|
||||
@@ -7892,11 +7887,10 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@typescript-eslint/parser/node_modules/brace-expansion": {
|
||||
"version": "2.0.1",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz",
|
||||
"integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==",
|
||||
"version": "2.0.2",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz",
|
||||
"integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"balanced-match": "^1.0.0"
|
||||
}
|
||||
@@ -8024,11 +8018,10 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@typescript-eslint/type-utils/node_modules/brace-expansion": {
|
||||
"version": "2.0.1",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz",
|
||||
"integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==",
|
||||
"version": "2.0.2",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz",
|
||||
"integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"balanced-match": "^1.0.0"
|
||||
}
|
||||
@@ -8192,11 +8185,10 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@typescript-eslint/utils/node_modules/brace-expansion": {
|
||||
"version": "2.0.1",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz",
|
||||
"integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==",
|
||||
"version": "2.0.2",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz",
|
||||
"integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"balanced-match": "^1.0.0"
|
||||
}
|
||||
@@ -9269,9 +9261,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/brace-expansion": {
|
||||
"version": "1.1.11",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",
|
||||
"integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",
|
||||
"version": "1.1.12",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz",
|
||||
"integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==",
|
||||
"dependencies": {
|
||||
"balanced-match": "^1.0.0",
|
||||
"concat-map": "0.0.1"
|
||||
@@ -13720,10 +13712,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/filelist/node_modules/brace-expansion": {
|
||||
"version": "2.0.1",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz",
|
||||
"integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==",
|
||||
"license": "MIT",
|
||||
"version": "2.0.2",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz",
|
||||
"integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==",
|
||||
"dependencies": {
|
||||
"balanced-match": "^1.0.0"
|
||||
}
|
||||
@@ -25267,11 +25258,10 @@
|
||||
}
|
||||
},
|
||||
"node_modules/typedoc/node_modules/brace-expansion": {
|
||||
"version": "2.0.1",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz",
|
||||
"integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==",
|
||||
"version": "2.0.2",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz",
|
||||
"integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"balanced-match": "^1.0.0"
|
||||
}
|
||||
@@ -25448,11 +25438,10 @@
|
||||
}
|
||||
},
|
||||
"node_modules/typescript-eslint/node_modules/brace-expansion": {
|
||||
"version": "2.0.1",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz",
|
||||
"integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==",
|
||||
"version": "2.0.2",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz",
|
||||
"integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"balanced-match": "^1.0.0"
|
||||
}
|
||||
@@ -25615,11 +25604,10 @@
|
||||
}
|
||||
},
|
||||
"node_modules/unified-engine/node_modules/brace-expansion": {
|
||||
"version": "2.0.1",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz",
|
||||
"integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==",
|
||||
"version": "2.0.2",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz",
|
||||
"integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"balanced-match": "^1.0.0"
|
||||
}
|
||||
@@ -27898,9 +27886,9 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"brace-expansion": {
|
||||
"version": "2.0.1",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz",
|
||||
"integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==",
|
||||
"version": "2.0.2",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz",
|
||||
"integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"balanced-match": "^1.0.0"
|
||||
@@ -30799,9 +30787,9 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"brace-expansion": {
|
||||
"version": "2.0.1",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz",
|
||||
"integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==",
|
||||
"version": "2.0.2",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz",
|
||||
"integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"balanced-match": "^1.0.0"
|
||||
@@ -30943,9 +30931,9 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"brace-expansion": {
|
||||
"version": "2.0.1",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz",
|
||||
"integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==",
|
||||
"version": "2.0.2",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz",
|
||||
"integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"balanced-match": "^1.0.0"
|
||||
@@ -31008,9 +30996,9 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"brace-expansion": {
|
||||
"version": "2.0.1",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz",
|
||||
"integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==",
|
||||
"version": "2.0.2",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz",
|
||||
"integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"balanced-match": "^1.0.0"
|
||||
@@ -32205,9 +32193,9 @@
|
||||
}
|
||||
},
|
||||
"brace-expansion": {
|
||||
"version": "2.0.1",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz",
|
||||
"integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==",
|
||||
"version": "2.0.2",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz",
|
||||
"integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"balanced-match": "^1.0.0"
|
||||
@@ -32307,9 +32295,9 @@
|
||||
}
|
||||
},
|
||||
"brace-expansion": {
|
||||
"version": "2.0.1",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz",
|
||||
"integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==",
|
||||
"version": "2.0.2",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz",
|
||||
"integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"balanced-match": "^1.0.0"
|
||||
@@ -32381,9 +32369,9 @@
|
||||
}
|
||||
},
|
||||
"brace-expansion": {
|
||||
"version": "2.0.1",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz",
|
||||
"integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==",
|
||||
"version": "2.0.2",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz",
|
||||
"integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"balanced-match": "^1.0.0"
|
||||
@@ -32476,9 +32464,9 @@
|
||||
}
|
||||
},
|
||||
"brace-expansion": {
|
||||
"version": "2.0.1",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz",
|
||||
"integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==",
|
||||
"version": "2.0.2",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz",
|
||||
"integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"balanced-match": "^1.0.0"
|
||||
@@ -33282,9 +33270,9 @@
|
||||
}
|
||||
},
|
||||
"brace-expansion": {
|
||||
"version": "1.1.11",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",
|
||||
"integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",
|
||||
"version": "1.1.12",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz",
|
||||
"integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==",
|
||||
"requires": {
|
||||
"balanced-match": "^1.0.0",
|
||||
"concat-map": "0.0.1"
|
||||
@@ -36256,9 +36244,9 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"brace-expansion": {
|
||||
"version": "2.0.1",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz",
|
||||
"integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==",
|
||||
"version": "2.0.2",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz",
|
||||
"integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==",
|
||||
"requires": {
|
||||
"balanced-match": "^1.0.0"
|
||||
}
|
||||
@@ -43543,9 +43531,9 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"brace-expansion": {
|
||||
"version": "2.0.1",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz",
|
||||
"integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==",
|
||||
"version": "2.0.2",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz",
|
||||
"integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"balanced-match": "^1.0.0"
|
||||
@@ -43660,9 +43648,9 @@
|
||||
}
|
||||
},
|
||||
"brace-expansion": {
|
||||
"version": "2.0.1",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz",
|
||||
"integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==",
|
||||
"version": "2.0.2",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz",
|
||||
"integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"balanced-match": "^1.0.0"
|
||||
@@ -43780,9 +43768,9 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"brace-expansion": {
|
||||
"version": "2.0.1",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz",
|
||||
"integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==",
|
||||
"version": "2.0.2",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz",
|
||||
"integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"balanced-match": "^1.0.0"
|
||||
|
||||
@@ -1 +1 @@
|
||||
[{"entryPoints":{"v10":{"path":"v10.ts","label":"API v10"},"v9":{"path":"v9.ts","label":"API v9"},"voice/v4":{"path":"voice/v4.ts","label":"Voice v4"},"voice/v8":{"path":"voice/v8.ts","label":"Voice v8"},"globals":{"path":"globals.ts","label":"Global Types"}},"packageRoot":"/home/runner/work/discord-api-types/discord-api-types/","packagePath":"./","packageSlug":"discord-api-types","packageName":"discord-api-types","packageVersion":"0.38.17"}]
|
||||
[{"entryPoints":{"v10":{"path":"v10.ts","label":"API v10"},"v9":{"path":"v9.ts","label":"API v9"},"voice/v4":{"path":"voice/v4.ts","label":"Voice v4"},"voice/v8":{"path":"voice/v8.ts","label":"Voice v8"},"globals":{"path":"globals.ts","label":"Global Types"}},"packageRoot":"/home/runner/work/discord-api-types/discord-api-types/","packagePath":"./","packageSlug":"discord-api-types","packageName":"discord-api-types","packageVersion":"0.38.25"}]
|
||||
File diff suppressed because one or more lines are too long
|
Before Width: | Height: | Size: 126 KiB After Width: | Height: | Size: 126 KiB |
@@ -1,3 +1,3 @@
|
||||
[
|
||||
"0.38.17"
|
||||
"0.38.25"
|
||||
]
|
||||
Reference in New Issue
Block a user