mirror of
https://github.com/discordjs/discord-api-types.git
synced 2026-05-28 06:20:11 +00:00
Compare commits
22 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f65b30a3bf | ||
|
|
6295858de5 | ||
|
|
0c6d4249b6 | ||
|
|
95b186deb7 | ||
|
|
18cf4a514e | ||
|
|
7a07478721 | ||
|
|
97cc33d528 | ||
|
|
f6e0da697b | ||
|
|
6f286522b4 | ||
|
|
d74c6f1923 | ||
|
|
7937338193 | ||
|
|
d0ed48c189 | ||
|
|
607dd01f09 | ||
|
|
34485bc840 | ||
|
|
eb252bd049 | ||
|
|
34bd7d0aba | ||
|
|
de7ac23d41 | ||
|
|
e52ac85e9d | ||
|
|
aca4683388 | ||
|
|
e316373609 | ||
|
|
cf57fc92dd | ||
|
|
14963d61d4 |
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.4.cjs
|
||||
yarnPath: .yarn/releases/yarn-4.10.3.cjs
|
||||
|
||||
plugins:
|
||||
- path: ./.yarn/plugins/postinstallDev.cjs
|
||||
|
||||
30
CHANGELOG.md
30
CHANGELOG.md
@@ -1,3 +1,33 @@
|
||||
## [0.38.27](https://github.com/discordjs/discord-api-types/compare/0.38.26...0.38.27) (2025-10-04)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* `[@unstable](https://github.com/unstable)` screening ([#1389](https://github.com/discordjs/discord-api-types/issues/1389)) ([95b186d](https://github.com/discordjs/discord-api-types/commit/95b186deb7410ff5a667a1cbac5e7b6dd915f6fe))
|
||||
* add `RESTPutAPIGuildIncidentActionsResult` ([#1388](https://github.com/discordjs/discord-api-types/issues/1388)) ([0c6d424](https://github.com/discordjs/discord-api-types/commit/0c6d4249b6e39b52607235b273bf0c46caa331dc))
|
||||
* Narrow thread-related properties for channels ([#1377](https://github.com/discordjs/discord-api-types/issues/1377)) ([18cf4a5](https://github.com/discordjs/discord-api-types/commit/18cf4a514e644d039f18f55d4062318dbeb1c3f6))
|
||||
* **RESTPutAPIGuildIncidentActionsJSONBody:** add `null` ([#1387](https://github.com/discordjs/discord-api-types/issues/1387)) ([6295858](https://github.com/discordjs/discord-api-types/commit/6295858de5d7bde4b2b289ef301d994ed78bf964))
|
||||
|
||||
|
||||
|
||||
## [0.38.26](https://github.com/discordjs/discord-api-types/compare/0.38.25...0.38.26) (2025-09-18)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* add guild_id back to GatewayVoiceStateUpdateDispatchData ([#1346](https://github.com/discordjs/discord-api-types/issues/1346)) ([e52ac85](https://github.com/discordjs/discord-api-types/commit/e52ac85e9d60b4032bb21cd958cf032cad50643f))
|
||||
|
||||
|
||||
|
||||
## [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)
|
||||
|
||||
|
||||
|
||||
30
deno/CHANGELOG.md
generated
30
deno/CHANGELOG.md
generated
@@ -1,3 +1,33 @@
|
||||
## [0.38.27](https://github.com/discordjs/discord-api-types/compare/0.38.26...0.38.27) (2025-10-04)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* `[@unstable](https://github.com/unstable)` screening ([#1389](https://github.com/discordjs/discord-api-types/issues/1389)) ([95b186d](https://github.com/discordjs/discord-api-types/commit/95b186deb7410ff5a667a1cbac5e7b6dd915f6fe))
|
||||
* add `RESTPutAPIGuildIncidentActionsResult` ([#1388](https://github.com/discordjs/discord-api-types/issues/1388)) ([0c6d424](https://github.com/discordjs/discord-api-types/commit/0c6d4249b6e39b52607235b273bf0c46caa331dc))
|
||||
* Narrow thread-related properties for channels ([#1377](https://github.com/discordjs/discord-api-types/issues/1377)) ([18cf4a5](https://github.com/discordjs/discord-api-types/commit/18cf4a514e644d039f18f55d4062318dbeb1c3f6))
|
||||
* **RESTPutAPIGuildIncidentActionsJSONBody:** add `null` ([#1387](https://github.com/discordjs/discord-api-types/issues/1387)) ([6295858](https://github.com/discordjs/discord-api-types/commit/6295858de5d7bde4b2b289ef301d994ed78bf964))
|
||||
|
||||
|
||||
|
||||
## [0.38.26](https://github.com/discordjs/discord-api-types/compare/0.38.25...0.38.26) (2025-09-18)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* add guild_id back to GatewayVoiceStateUpdateDispatchData ([#1346](https://github.com/discordjs/discord-api-types/issues/1346)) ([e52ac85](https://github.com/discordjs/discord-api-types/commit/e52ac85e9d60b4032bb21cd958cf032cad50643f))
|
||||
|
||||
|
||||
|
||||
## [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)
|
||||
|
||||
|
||||
|
||||
75
deno/gateway/v10.ts
generated
75
deno/gateway/v10.ts
generated
@@ -46,7 +46,7 @@ import type {
|
||||
APIGuildMemberUser,
|
||||
GatewayGuildMembersChunkPresence,
|
||||
APIBaseMessage,
|
||||
APIVoiceStateMember,
|
||||
APIVoiceState,
|
||||
} 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: GatewayVoiceStateUpdateDispatchData[];
|
||||
voice_states: APIBaseVoiceState[];
|
||||
/**
|
||||
* Users in the guild
|
||||
*
|
||||
@@ -2102,7 +2104,7 @@ export type GatewayVoiceStateUpdateDispatch = _DataPayload<
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/topics/gateway-events#voice-state-update}
|
||||
*/
|
||||
export interface GatewayVoiceStateUpdateDispatchData extends APIBaseVoiceState, APIVoiceStateMember {}
|
||||
export type GatewayVoiceStateUpdateDispatchData = APIVoiceState;
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/topics/gateway-events#voice-server-update}
|
||||
@@ -2217,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
|
||||
|
||||
75
deno/gateway/v9.ts
generated
75
deno/gateway/v9.ts
generated
@@ -46,7 +46,7 @@ import type {
|
||||
GatewayGuildMembersChunkPresence,
|
||||
APIBaseMessage,
|
||||
APIGuildMemberJoined,
|
||||
APIVoiceStateMember,
|
||||
APIVoiceState,
|
||||
} 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: GatewayVoiceStateUpdateDispatchData[];
|
||||
voice_states: APIBaseVoiceState[];
|
||||
/**
|
||||
* Users in the guild
|
||||
*
|
||||
@@ -2101,7 +2103,7 @@ export type GatewayVoiceStateUpdateDispatch = _DataPayload<
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/topics/gateway-events#voice-state-update}
|
||||
*/
|
||||
export interface GatewayVoiceStateUpdateDispatchData extends APIBaseVoiceState, APIVoiceStateMember {}
|
||||
export type GatewayVoiceStateUpdateDispatchData = APIVoiceState;
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/topics/gateway-events#voice-server-update}
|
||||
@@ -2216,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
|
||||
|
||||
16
deno/payloads/v10/channel.ts
generated
16
deno/payloads/v10/channel.ts
generated
@@ -127,10 +127,6 @@ export interface APIGuildChannel<T extends ChannelType> extends APIChannelBase<T
|
||||
permission_overwrites?: APIOverwrite[];
|
||||
/**
|
||||
* ID of the parent category for a channel (each parent category can contain up to 50 channels)
|
||||
*
|
||||
* OR
|
||||
*
|
||||
* ID of the parent channel for a thread
|
||||
*/
|
||||
parent_id?: Snowflake | null;
|
||||
/**
|
||||
@@ -163,7 +159,9 @@ export interface APIGuildTextChannel<T extends ChannelType.GuildForum | ChannelT
|
||||
|
||||
export type APITextChannel = APIGuildTextChannel<ChannelType.GuildText>;
|
||||
export type APINewsChannel = APIGuildTextChannel<ChannelType.GuildAnnouncement>;
|
||||
export interface APIGuildCategoryChannel extends APIGuildChannel<ChannelType.GuildCategory>, APISortableChannel {}
|
||||
export interface APIGuildCategoryChannel extends APIGuildChannel<ChannelType.GuildCategory>, APISortableChannel {
|
||||
parent_id?: null;
|
||||
}
|
||||
|
||||
export interface APIVoiceChannelBase<T extends ChannelType>
|
||||
extends APIGuildChannel<T>,
|
||||
@@ -274,9 +272,9 @@ export interface APIThreadChannel<Type extends ThreadChannelType = ThreadChannel
|
||||
*/
|
||||
total_message_sent?: number;
|
||||
/**
|
||||
* The IDs of the set of tags that have been applied to a thread in a thread-only channel
|
||||
* ID of the parent channel for the thread
|
||||
*/
|
||||
applied_tags: Snowflake[];
|
||||
parent_id?: Snowflake;
|
||||
}
|
||||
|
||||
export type APIPublicThreadChannel = APIThreadChannel<ChannelType.PublicThread>;
|
||||
@@ -399,6 +397,10 @@ export interface APIThreadOnlyChannel<T extends ChannelType.GuildForum | Channel
|
||||
* The default sort order type used to order posts in a thread-only channel
|
||||
*/
|
||||
default_sort_order: SortOrderType | null;
|
||||
/**
|
||||
* The IDs of the set of tags that have been applied to a thread in a thread-only channel
|
||||
*/
|
||||
applied_tags: Snowflake[];
|
||||
}
|
||||
|
||||
export interface APIGuildForumChannel extends APIThreadOnlyChannel<ChannelType.GuildForum> {
|
||||
|
||||
14
deno/payloads/v10/guild.ts
generated
14
deno/payloads/v10/guild.ts
generated
@@ -1074,6 +1074,9 @@ export interface APIGuildWelcomeScreenChannel {
|
||||
emoji_name: string | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* @unstable https://github.com/discord/discord-api-docs/pull/2547
|
||||
*/
|
||||
export interface APIGuildMembershipScreening {
|
||||
/**
|
||||
* When the fields were last updated
|
||||
@@ -1089,8 +1092,9 @@ export interface APIGuildMembershipScreening {
|
||||
description: string | null;
|
||||
}
|
||||
|
||||
// TODO: make this a union based on the type in the future, when new types are added
|
||||
|
||||
/**
|
||||
* @unstable https://github.com/discord/discord-api-docs/pull/2547
|
||||
*/
|
||||
export interface APIGuildMembershipScreeningField {
|
||||
/**
|
||||
* The type of field
|
||||
@@ -1110,6 +1114,9 @@ export interface APIGuildMembershipScreeningField {
|
||||
required: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* @unstable https://github.com/discord/discord-api-docs/pull/2547
|
||||
*/
|
||||
export enum MembershipScreeningFieldType {
|
||||
/**
|
||||
* Server Rules
|
||||
@@ -1230,6 +1237,9 @@ export enum GuildOnboardingPromptType {
|
||||
Dropdown,
|
||||
}
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/resources/guild#incidents-data-object}
|
||||
*/
|
||||
export interface APIIncidentsData {
|
||||
/**
|
||||
* When invites get enabled again
|
||||
|
||||
19
deno/payloads/v10/voice.ts
generated
19
deno/payloads/v10/voice.ts
generated
@@ -23,6 +23,13 @@ export interface APIBaseVoiceState {
|
||||
* The user id this voice state is for
|
||||
*/
|
||||
user_id: Snowflake;
|
||||
/**
|
||||
* 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;
|
||||
/**
|
||||
* The session id for this voice state
|
||||
*/
|
||||
@@ -61,20 +68,10 @@ 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, APIVoiceStateMember {
|
||||
export interface APIVoiceState extends APIBaseVoiceState {
|
||||
/**
|
||||
* The guild id this voice state is for
|
||||
*/
|
||||
|
||||
16
deno/payloads/v9/channel.ts
generated
16
deno/payloads/v9/channel.ts
generated
@@ -127,10 +127,6 @@ export interface APIGuildChannel<T extends ChannelType> extends APIChannelBase<T
|
||||
permission_overwrites?: APIOverwrite[];
|
||||
/**
|
||||
* ID of the parent category for a channel (each parent category can contain up to 50 channels)
|
||||
*
|
||||
* OR
|
||||
*
|
||||
* ID of the parent channel for a thread
|
||||
*/
|
||||
parent_id?: Snowflake | null;
|
||||
/**
|
||||
@@ -163,7 +159,9 @@ export interface APIGuildTextChannel<T extends ChannelType.GuildForum | ChannelT
|
||||
|
||||
export type APITextChannel = APIGuildTextChannel<ChannelType.GuildText>;
|
||||
export type APINewsChannel = APIGuildTextChannel<ChannelType.GuildAnnouncement>;
|
||||
export interface APIGuildCategoryChannel extends APIGuildChannel<ChannelType.GuildCategory>, APISortableChannel {}
|
||||
export interface APIGuildCategoryChannel extends APIGuildChannel<ChannelType.GuildCategory>, APISortableChannel {
|
||||
parent_id?: null;
|
||||
}
|
||||
|
||||
export interface APIVoiceChannelBase<T extends ChannelType>
|
||||
extends APIGuildChannel<T>,
|
||||
@@ -274,9 +272,9 @@ export interface APIThreadChannel<Type extends ThreadChannelType = ThreadChannel
|
||||
*/
|
||||
total_message_sent?: number;
|
||||
/**
|
||||
* The IDs of the set of tags that have been applied to a thread in a thread-only channel
|
||||
* ID of the parent channel for the thread
|
||||
*/
|
||||
applied_tags: Snowflake[];
|
||||
parent_id?: Snowflake;
|
||||
}
|
||||
|
||||
export type APIPublicThreadChannel = APIThreadChannel<ChannelType.PublicThread>;
|
||||
@@ -399,6 +397,10 @@ export interface APIThreadOnlyChannel<T extends ChannelType.GuildForum | Channel
|
||||
* The default sort order type used to order posts in a thread-only channel
|
||||
*/
|
||||
default_sort_order: SortOrderType | null;
|
||||
/**
|
||||
* The IDs of the set of tags that have been applied to a thread in a thread-only channel
|
||||
*/
|
||||
applied_tags: Snowflake[];
|
||||
}
|
||||
|
||||
export interface APIGuildForumChannel extends APIThreadOnlyChannel<ChannelType.GuildForum> {
|
||||
|
||||
14
deno/payloads/v9/guild.ts
generated
14
deno/payloads/v9/guild.ts
generated
@@ -1066,6 +1066,9 @@ export interface APIGuildWelcomeScreenChannel {
|
||||
emoji_name: string | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* @unstable https://github.com/discord/discord-api-docs/pull/2547
|
||||
*/
|
||||
export interface APIGuildMembershipScreening {
|
||||
/**
|
||||
* When the fields were last updated
|
||||
@@ -1081,8 +1084,9 @@ export interface APIGuildMembershipScreening {
|
||||
description: string | null;
|
||||
}
|
||||
|
||||
// TODO: make this a union based on the type in the future, when new types are added
|
||||
|
||||
/**
|
||||
* @unstable https://github.com/discord/discord-api-docs/pull/2547
|
||||
*/
|
||||
export interface APIGuildMembershipScreeningField {
|
||||
/**
|
||||
* The type of field
|
||||
@@ -1102,6 +1106,9 @@ export interface APIGuildMembershipScreeningField {
|
||||
required: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* @unstable https://github.com/discord/discord-api-docs/pull/2547
|
||||
*/
|
||||
export enum MembershipScreeningFieldType {
|
||||
/**
|
||||
* Server Rules
|
||||
@@ -1222,6 +1229,9 @@ export enum GuildOnboardingPromptType {
|
||||
Dropdown,
|
||||
}
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/resources/guild#incidents-data-object}
|
||||
*/
|
||||
export interface APIIncidentsData {
|
||||
/**
|
||||
* When invites get enabled again
|
||||
|
||||
19
deno/payloads/v9/voice.ts
generated
19
deno/payloads/v9/voice.ts
generated
@@ -20,6 +20,13 @@ export interface APIBaseVoiceState {
|
||||
* The user id this voice state is for
|
||||
*/
|
||||
user_id: Snowflake;
|
||||
/**
|
||||
* 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;
|
||||
/**
|
||||
* The session id for this voice state
|
||||
*/
|
||||
@@ -58,20 +65,10 @@ 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, APIVoiceStateMember {
|
||||
export interface APIVoiceState extends APIBaseVoiceState {
|
||||
/**
|
||||
* The guild id this voice state is for
|
||||
*/
|
||||
|
||||
13
deno/rest/v10/guild.ts
generated
13
deno/rest/v10/guild.ts
generated
@@ -27,6 +27,7 @@ import type {
|
||||
APIGuildOnboardingPrompt,
|
||||
APIGuildOnboardingPromptOption,
|
||||
APIRoleColors,
|
||||
APIIncidentsData,
|
||||
} from '../../payloads/v10/mod.ts';
|
||||
import type {
|
||||
_AddUndefinedToPossiblyUndefinedPropertiesOfInterface,
|
||||
@@ -931,6 +932,9 @@ export type RESTGetAPIGuildWidgetImageResult = ArrayBuffer;
|
||||
|
||||
export type RESTGetAPIGuildMemberVerificationResult = APIGuildMembershipScreening;
|
||||
|
||||
/**
|
||||
* @unstable https://github.com/discord/discord-api-docs/pull/2547
|
||||
*/
|
||||
export interface RESTPatchAPIGuildMemberVerificationJSONBody {
|
||||
/**
|
||||
* Whether Membership Screening is enabled
|
||||
@@ -946,6 +950,9 @@ export interface RESTPatchAPIGuildMemberVerificationJSONBody {
|
||||
description?: string | null | undefined;
|
||||
}
|
||||
|
||||
/**
|
||||
* @unstable https://github.com/discord/discord-api-docs/pull/2547
|
||||
*/
|
||||
export type RESTPatchAPIGuildMemberVerificationResult = APIGuildMembershipScreening;
|
||||
|
||||
/**
|
||||
@@ -1037,9 +1044,11 @@ export interface RESTPutAPIGuildIncidentActionsJSONBody {
|
||||
/**
|
||||
* When invites will be enabled again
|
||||
*/
|
||||
invites_disabled_until?: string | undefined;
|
||||
invites_disabled_until?: string | null | undefined;
|
||||
/**
|
||||
* When direct messages will be enabled again
|
||||
*/
|
||||
dms_disabled_until?: string | undefined;
|
||||
dms_disabled_until?: string | null | undefined;
|
||||
}
|
||||
|
||||
export type RESTPutAPIGuildIncidentActionsResult = APIIncidentsData;
|
||||
|
||||
2
deno/rest/v10/mod.ts
generated
2
deno/rest/v10/mod.ts
generated
@@ -808,6 +808,8 @@ export const Routes = {
|
||||
* Route for:
|
||||
* - GET `/guilds/{guild.id}/member-verification`
|
||||
* - PATCH `/guilds/{guild.id}/member-verification`
|
||||
*
|
||||
* @unstable https://github.com/discord/discord-api-docs/pull/2547
|
||||
*/
|
||||
guildMemberVerification(guildId: Snowflake) {
|
||||
return `/guilds/${guildId}/member-verification` as const;
|
||||
|
||||
13
deno/rest/v9/guild.ts
generated
13
deno/rest/v9/guild.ts
generated
@@ -27,6 +27,7 @@ import type {
|
||||
APIGuildOnboardingPrompt,
|
||||
APIGuildOnboardingPromptOption,
|
||||
APIRoleColors,
|
||||
APIIncidentsData,
|
||||
} from '../../payloads/v9/mod.ts';
|
||||
import type {
|
||||
_AddUndefinedToPossiblyUndefinedPropertiesOfInterface,
|
||||
@@ -937,6 +938,9 @@ export type RESTGetAPIGuildWidgetImageResult = ArrayBuffer;
|
||||
|
||||
export type RESTGetAPIGuildMemberVerificationResult = APIGuildMembershipScreening;
|
||||
|
||||
/**
|
||||
* @unstable https://github.com/discord/discord-api-docs/pull/2547
|
||||
*/
|
||||
export interface RESTPatchAPIGuildMemberVerificationJSONBody {
|
||||
/**
|
||||
* Whether Membership Screening is enabled
|
||||
@@ -952,6 +956,9 @@ export interface RESTPatchAPIGuildMemberVerificationJSONBody {
|
||||
description?: string | null | undefined;
|
||||
}
|
||||
|
||||
/**
|
||||
* @unstable https://github.com/discord/discord-api-docs/pull/2547
|
||||
*/
|
||||
export type RESTPatchAPIGuildMemberVerificationResult = APIGuildMembershipScreening;
|
||||
|
||||
/**
|
||||
@@ -1043,9 +1050,11 @@ export interface RESTPutAPIGuildIncidentActionsJSONBody {
|
||||
/**
|
||||
* When invites will be enabled again
|
||||
*/
|
||||
invites_disabled_until?: string | undefined;
|
||||
invites_disabled_until?: string | null | undefined;
|
||||
/**
|
||||
* When direct messages will be enabled again
|
||||
*/
|
||||
dms_disabled_until?: string | undefined;
|
||||
dms_disabled_until?: string | null | undefined;
|
||||
}
|
||||
|
||||
export type RESTPutAPIGuildIncidentActionsResult = APIIncidentsData;
|
||||
|
||||
2
deno/rest/v9/mod.ts
generated
2
deno/rest/v9/mod.ts
generated
@@ -817,6 +817,8 @@ export const Routes = {
|
||||
* Route for:
|
||||
* - GET `/guilds/{guild.id}/member-verification`
|
||||
* - PATCH `/guilds/{guild.id}/member-verification`
|
||||
*
|
||||
* @unstable https://github.com/discord/discord-api-docs/pull/2547
|
||||
*/
|
||||
guildMemberVerification(guildId: Snowflake) {
|
||||
return `/guilds/${guildId}/member-verification` as const;
|
||||
|
||||
@@ -46,7 +46,7 @@ import type {
|
||||
APIGuildMemberUser,
|
||||
GatewayGuildMembersChunkPresence,
|
||||
APIBaseMessage,
|
||||
APIVoiceStateMember,
|
||||
APIVoiceState,
|
||||
} 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: GatewayVoiceStateUpdateDispatchData[];
|
||||
voice_states: APIBaseVoiceState[];
|
||||
/**
|
||||
* Users in the guild
|
||||
*
|
||||
@@ -2102,7 +2104,7 @@ export type GatewayVoiceStateUpdateDispatch = _DataPayload<
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/topics/gateway-events#voice-state-update}
|
||||
*/
|
||||
export interface GatewayVoiceStateUpdateDispatchData extends APIBaseVoiceState, APIVoiceStateMember {}
|
||||
export type GatewayVoiceStateUpdateDispatchData = APIVoiceState;
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/topics/gateway-events#voice-server-update}
|
||||
@@ -2217,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
|
||||
|
||||
@@ -46,7 +46,7 @@ import type {
|
||||
GatewayGuildMembersChunkPresence,
|
||||
APIBaseMessage,
|
||||
APIGuildMemberJoined,
|
||||
APIVoiceStateMember,
|
||||
APIVoiceState,
|
||||
} 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: GatewayVoiceStateUpdateDispatchData[];
|
||||
voice_states: APIBaseVoiceState[];
|
||||
/**
|
||||
* Users in the guild
|
||||
*
|
||||
@@ -2101,7 +2103,7 @@ export type GatewayVoiceStateUpdateDispatch = _DataPayload<
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/topics/gateway-events#voice-state-update}
|
||||
*/
|
||||
export interface GatewayVoiceStateUpdateDispatchData extends APIBaseVoiceState, APIVoiceStateMember {}
|
||||
export type GatewayVoiceStateUpdateDispatchData = APIVoiceState;
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/topics/gateway-events#voice-server-update}
|
||||
@@ -2216,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
|
||||
|
||||
16
package.json
16
package.json
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "discord-api-types",
|
||||
"version": "0.38.24",
|
||||
"version": "0.38.27",
|
||||
"description": "Discord API typings that are kept up to date for use in bot library creation.",
|
||||
"homepage": "https://discord-api-types.dev",
|
||||
"workspaces": [
|
||||
@@ -132,8 +132,8 @@
|
||||
"{globals,v*}.{js,js.map,d.ts,d.ts.map,mjs}"
|
||||
],
|
||||
"devDependencies": {
|
||||
"@commitlint/cli": "^19.8.1",
|
||||
"@commitlint/config-angular": "^19.8.1",
|
||||
"@commitlint/cli": "^20.0.0",
|
||||
"@commitlint/config-angular": "^20.0.0",
|
||||
"@favware/npm-deprecate": "^2.0.0",
|
||||
"@octokit/action": "^8.0.2",
|
||||
"@octokit/webhooks-types": "^7.6.1",
|
||||
@@ -146,7 +146,7 @@
|
||||
"conventional-recommended-bump": "^11.1.0",
|
||||
"eslint": "^9.28.0",
|
||||
"eslint-config-neon": "^0.2.7",
|
||||
"eslint-formatter-pretty": "^6.0.1",
|
||||
"eslint-formatter-pretty": "^7.0.0",
|
||||
"eslint-import-resolver-typescript": "^4.4.2",
|
||||
"gen-esm-wrapper": "^1.1.3",
|
||||
"husky": "^9.1.7",
|
||||
@@ -157,7 +157,7 @@
|
||||
"prettier": "^3.5.3",
|
||||
"pretty-quick": "^4.1.1",
|
||||
"rimraf": "^6.0.1",
|
||||
"ts-morph": "^26.0.0",
|
||||
"ts-morph": "^27.0.0",
|
||||
"tsutils": "^3.21.0",
|
||||
"tsx": "^4.20.3",
|
||||
"typescript": "^5.8.3",
|
||||
@@ -207,9 +207,9 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"packageManager": "yarn@4.9.4",
|
||||
"packageManager": "yarn@4.10.3",
|
||||
"volta": {
|
||||
"node": "24.7.0",
|
||||
"yarn": "4.9.4"
|
||||
"node": "24.9.0",
|
||||
"yarn": "4.10.3"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -127,10 +127,6 @@ export interface APIGuildChannel<T extends ChannelType> extends APIChannelBase<T
|
||||
permission_overwrites?: APIOverwrite[];
|
||||
/**
|
||||
* ID of the parent category for a channel (each parent category can contain up to 50 channels)
|
||||
*
|
||||
* OR
|
||||
*
|
||||
* ID of the parent channel for a thread
|
||||
*/
|
||||
parent_id?: Snowflake | null;
|
||||
/**
|
||||
@@ -163,7 +159,9 @@ export interface APIGuildTextChannel<T extends ChannelType.GuildForum | ChannelT
|
||||
|
||||
export type APITextChannel = APIGuildTextChannel<ChannelType.GuildText>;
|
||||
export type APINewsChannel = APIGuildTextChannel<ChannelType.GuildAnnouncement>;
|
||||
export interface APIGuildCategoryChannel extends APIGuildChannel<ChannelType.GuildCategory>, APISortableChannel {}
|
||||
export interface APIGuildCategoryChannel extends APIGuildChannel<ChannelType.GuildCategory>, APISortableChannel {
|
||||
parent_id?: null;
|
||||
}
|
||||
|
||||
export interface APIVoiceChannelBase<T extends ChannelType>
|
||||
extends APIGuildChannel<T>,
|
||||
@@ -274,9 +272,9 @@ export interface APIThreadChannel<Type extends ThreadChannelType = ThreadChannel
|
||||
*/
|
||||
total_message_sent?: number;
|
||||
/**
|
||||
* The IDs of the set of tags that have been applied to a thread in a thread-only channel
|
||||
* ID of the parent channel for the thread
|
||||
*/
|
||||
applied_tags: Snowflake[];
|
||||
parent_id?: Snowflake;
|
||||
}
|
||||
|
||||
export type APIPublicThreadChannel = APIThreadChannel<ChannelType.PublicThread>;
|
||||
@@ -399,6 +397,10 @@ export interface APIThreadOnlyChannel<T extends ChannelType.GuildForum | Channel
|
||||
* The default sort order type used to order posts in a thread-only channel
|
||||
*/
|
||||
default_sort_order: SortOrderType | null;
|
||||
/**
|
||||
* The IDs of the set of tags that have been applied to a thread in a thread-only channel
|
||||
*/
|
||||
applied_tags: Snowflake[];
|
||||
}
|
||||
|
||||
export interface APIGuildForumChannel extends APIThreadOnlyChannel<ChannelType.GuildForum> {
|
||||
|
||||
@@ -1074,6 +1074,9 @@ export interface APIGuildWelcomeScreenChannel {
|
||||
emoji_name: string | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* @unstable https://github.com/discord/discord-api-docs/pull/2547
|
||||
*/
|
||||
export interface APIGuildMembershipScreening {
|
||||
/**
|
||||
* When the fields were last updated
|
||||
@@ -1089,8 +1092,9 @@ export interface APIGuildMembershipScreening {
|
||||
description: string | null;
|
||||
}
|
||||
|
||||
// TODO: make this a union based on the type in the future, when new types are added
|
||||
|
||||
/**
|
||||
* @unstable https://github.com/discord/discord-api-docs/pull/2547
|
||||
*/
|
||||
export interface APIGuildMembershipScreeningField {
|
||||
/**
|
||||
* The type of field
|
||||
@@ -1110,6 +1114,9 @@ export interface APIGuildMembershipScreeningField {
|
||||
required: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* @unstable https://github.com/discord/discord-api-docs/pull/2547
|
||||
*/
|
||||
export enum MembershipScreeningFieldType {
|
||||
/**
|
||||
* Server Rules
|
||||
@@ -1230,6 +1237,9 @@ export enum GuildOnboardingPromptType {
|
||||
Dropdown,
|
||||
}
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/resources/guild#incidents-data-object}
|
||||
*/
|
||||
export interface APIIncidentsData {
|
||||
/**
|
||||
* When invites get enabled again
|
||||
|
||||
@@ -23,6 +23,13 @@ export interface APIBaseVoiceState {
|
||||
* The user id this voice state is for
|
||||
*/
|
||||
user_id: Snowflake;
|
||||
/**
|
||||
* 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;
|
||||
/**
|
||||
* The session id for this voice state
|
||||
*/
|
||||
@@ -61,20 +68,10 @@ 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, APIVoiceStateMember {
|
||||
export interface APIVoiceState extends APIBaseVoiceState {
|
||||
/**
|
||||
* The guild id this voice state is for
|
||||
*/
|
||||
|
||||
@@ -127,10 +127,6 @@ export interface APIGuildChannel<T extends ChannelType> extends APIChannelBase<T
|
||||
permission_overwrites?: APIOverwrite[];
|
||||
/**
|
||||
* ID of the parent category for a channel (each parent category can contain up to 50 channels)
|
||||
*
|
||||
* OR
|
||||
*
|
||||
* ID of the parent channel for a thread
|
||||
*/
|
||||
parent_id?: Snowflake | null;
|
||||
/**
|
||||
@@ -163,7 +159,9 @@ export interface APIGuildTextChannel<T extends ChannelType.GuildForum | ChannelT
|
||||
|
||||
export type APITextChannel = APIGuildTextChannel<ChannelType.GuildText>;
|
||||
export type APINewsChannel = APIGuildTextChannel<ChannelType.GuildAnnouncement>;
|
||||
export interface APIGuildCategoryChannel extends APIGuildChannel<ChannelType.GuildCategory>, APISortableChannel {}
|
||||
export interface APIGuildCategoryChannel extends APIGuildChannel<ChannelType.GuildCategory>, APISortableChannel {
|
||||
parent_id?: null;
|
||||
}
|
||||
|
||||
export interface APIVoiceChannelBase<T extends ChannelType>
|
||||
extends APIGuildChannel<T>,
|
||||
@@ -274,9 +272,9 @@ export interface APIThreadChannel<Type extends ThreadChannelType = ThreadChannel
|
||||
*/
|
||||
total_message_sent?: number;
|
||||
/**
|
||||
* The IDs of the set of tags that have been applied to a thread in a thread-only channel
|
||||
* ID of the parent channel for the thread
|
||||
*/
|
||||
applied_tags: Snowflake[];
|
||||
parent_id?: Snowflake;
|
||||
}
|
||||
|
||||
export type APIPublicThreadChannel = APIThreadChannel<ChannelType.PublicThread>;
|
||||
@@ -399,6 +397,10 @@ export interface APIThreadOnlyChannel<T extends ChannelType.GuildForum | Channel
|
||||
* The default sort order type used to order posts in a thread-only channel
|
||||
*/
|
||||
default_sort_order: SortOrderType | null;
|
||||
/**
|
||||
* The IDs of the set of tags that have been applied to a thread in a thread-only channel
|
||||
*/
|
||||
applied_tags: Snowflake[];
|
||||
}
|
||||
|
||||
export interface APIGuildForumChannel extends APIThreadOnlyChannel<ChannelType.GuildForum> {
|
||||
|
||||
@@ -1066,6 +1066,9 @@ export interface APIGuildWelcomeScreenChannel {
|
||||
emoji_name: string | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* @unstable https://github.com/discord/discord-api-docs/pull/2547
|
||||
*/
|
||||
export interface APIGuildMembershipScreening {
|
||||
/**
|
||||
* When the fields were last updated
|
||||
@@ -1081,8 +1084,9 @@ export interface APIGuildMembershipScreening {
|
||||
description: string | null;
|
||||
}
|
||||
|
||||
// TODO: make this a union based on the type in the future, when new types are added
|
||||
|
||||
/**
|
||||
* @unstable https://github.com/discord/discord-api-docs/pull/2547
|
||||
*/
|
||||
export interface APIGuildMembershipScreeningField {
|
||||
/**
|
||||
* The type of field
|
||||
@@ -1102,6 +1106,9 @@ export interface APIGuildMembershipScreeningField {
|
||||
required: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* @unstable https://github.com/discord/discord-api-docs/pull/2547
|
||||
*/
|
||||
export enum MembershipScreeningFieldType {
|
||||
/**
|
||||
* Server Rules
|
||||
@@ -1222,6 +1229,9 @@ export enum GuildOnboardingPromptType {
|
||||
Dropdown,
|
||||
}
|
||||
|
||||
/**
|
||||
* @see {@link https://discord.com/developers/docs/resources/guild#incidents-data-object}
|
||||
*/
|
||||
export interface APIIncidentsData {
|
||||
/**
|
||||
* When invites get enabled again
|
||||
|
||||
@@ -20,6 +20,13 @@ export interface APIBaseVoiceState {
|
||||
* The user id this voice state is for
|
||||
*/
|
||||
user_id: Snowflake;
|
||||
/**
|
||||
* 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;
|
||||
/**
|
||||
* The session id for this voice state
|
||||
*/
|
||||
@@ -58,20 +65,10 @@ 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, APIVoiceStateMember {
|
||||
export interface APIVoiceState extends APIBaseVoiceState {
|
||||
/**
|
||||
* The guild id this voice state is for
|
||||
*/
|
||||
|
||||
@@ -27,6 +27,7 @@ import type {
|
||||
APIGuildOnboardingPrompt,
|
||||
APIGuildOnboardingPromptOption,
|
||||
APIRoleColors,
|
||||
APIIncidentsData,
|
||||
} from '../../payloads/v10/index';
|
||||
import type {
|
||||
_AddUndefinedToPossiblyUndefinedPropertiesOfInterface,
|
||||
@@ -931,6 +932,9 @@ export type RESTGetAPIGuildWidgetImageResult = ArrayBuffer;
|
||||
|
||||
export type RESTGetAPIGuildMemberVerificationResult = APIGuildMembershipScreening;
|
||||
|
||||
/**
|
||||
* @unstable https://github.com/discord/discord-api-docs/pull/2547
|
||||
*/
|
||||
export interface RESTPatchAPIGuildMemberVerificationJSONBody {
|
||||
/**
|
||||
* Whether Membership Screening is enabled
|
||||
@@ -946,6 +950,9 @@ export interface RESTPatchAPIGuildMemberVerificationJSONBody {
|
||||
description?: string | null | undefined;
|
||||
}
|
||||
|
||||
/**
|
||||
* @unstable https://github.com/discord/discord-api-docs/pull/2547
|
||||
*/
|
||||
export type RESTPatchAPIGuildMemberVerificationResult = APIGuildMembershipScreening;
|
||||
|
||||
/**
|
||||
@@ -1037,9 +1044,11 @@ export interface RESTPutAPIGuildIncidentActionsJSONBody {
|
||||
/**
|
||||
* When invites will be enabled again
|
||||
*/
|
||||
invites_disabled_until?: string | undefined;
|
||||
invites_disabled_until?: string | null | undefined;
|
||||
/**
|
||||
* When direct messages will be enabled again
|
||||
*/
|
||||
dms_disabled_until?: string | undefined;
|
||||
dms_disabled_until?: string | null | undefined;
|
||||
}
|
||||
|
||||
export type RESTPutAPIGuildIncidentActionsResult = APIIncidentsData;
|
||||
|
||||
@@ -808,6 +808,8 @@ export const Routes = {
|
||||
* Route for:
|
||||
* - GET `/guilds/{guild.id}/member-verification`
|
||||
* - PATCH `/guilds/{guild.id}/member-verification`
|
||||
*
|
||||
* @unstable https://github.com/discord/discord-api-docs/pull/2547
|
||||
*/
|
||||
guildMemberVerification(guildId: Snowflake) {
|
||||
return `/guilds/${guildId}/member-verification` as const;
|
||||
|
||||
@@ -27,6 +27,7 @@ import type {
|
||||
APIGuildOnboardingPrompt,
|
||||
APIGuildOnboardingPromptOption,
|
||||
APIRoleColors,
|
||||
APIIncidentsData,
|
||||
} from '../../payloads/v9/index';
|
||||
import type {
|
||||
_AddUndefinedToPossiblyUndefinedPropertiesOfInterface,
|
||||
@@ -937,6 +938,9 @@ export type RESTGetAPIGuildWidgetImageResult = ArrayBuffer;
|
||||
|
||||
export type RESTGetAPIGuildMemberVerificationResult = APIGuildMembershipScreening;
|
||||
|
||||
/**
|
||||
* @unstable https://github.com/discord/discord-api-docs/pull/2547
|
||||
*/
|
||||
export interface RESTPatchAPIGuildMemberVerificationJSONBody {
|
||||
/**
|
||||
* Whether Membership Screening is enabled
|
||||
@@ -952,6 +956,9 @@ export interface RESTPatchAPIGuildMemberVerificationJSONBody {
|
||||
description?: string | null | undefined;
|
||||
}
|
||||
|
||||
/**
|
||||
* @unstable https://github.com/discord/discord-api-docs/pull/2547
|
||||
*/
|
||||
export type RESTPatchAPIGuildMemberVerificationResult = APIGuildMembershipScreening;
|
||||
|
||||
/**
|
||||
@@ -1043,9 +1050,11 @@ export interface RESTPutAPIGuildIncidentActionsJSONBody {
|
||||
/**
|
||||
* When invites will be enabled again
|
||||
*/
|
||||
invites_disabled_until?: string | undefined;
|
||||
invites_disabled_until?: string | null | undefined;
|
||||
/**
|
||||
* When direct messages will be enabled again
|
||||
*/
|
||||
dms_disabled_until?: string | undefined;
|
||||
dms_disabled_until?: string | null | undefined;
|
||||
}
|
||||
|
||||
export type RESTPutAPIGuildIncidentActionsResult = APIIncidentsData;
|
||||
|
||||
@@ -817,6 +817,8 @@ export const Routes = {
|
||||
* Route for:
|
||||
* - GET `/guilds/{guild.id}/member-verification`
|
||||
* - PATCH `/guilds/{guild.id}/member-verification`
|
||||
*
|
||||
* @unstable https://github.com/discord/discord-api-docs/pull/2547
|
||||
*/
|
||||
guildMemberVerification(guildId: Snowflake) {
|
||||
return `/guilds/${guildId}/member-verification` as const;
|
||||
|
||||
@@ -7,6 +7,6 @@
|
||||
"@aws-sdk/client-s3": "^3.808.0",
|
||||
"cloudflare": "^5.0.0",
|
||||
"p-limit": "^7.0.0",
|
||||
"p-queue": "^8.1.0"
|
||||
"p-queue": "^9.0.0"
|
||||
}
|
||||
}
|
||||
|
||||
7240
website/package-lock.json
generated
7240
website/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -28,12 +28,12 @@
|
||||
"postinstall": "patch-package"
|
||||
},
|
||||
"dependencies": {
|
||||
"@docusaurus/core": "^3.6.3",
|
||||
"@docusaurus/plugin-client-redirects": "^3.6.3",
|
||||
"@docusaurus/plugin-pwa": "^3.6.3",
|
||||
"@docusaurus/preset-classic": "^3.6.3",
|
||||
"@docusaurus/core": "^3.9.0",
|
||||
"@docusaurus/plugin-client-redirects": "^3.9.0",
|
||||
"@docusaurus/plugin-pwa": "^3.9.0",
|
||||
"@docusaurus/preset-classic": "^3.9.0",
|
||||
"@docusaurus/theme-common": "^3.6.3",
|
||||
"@docusaurus/theme-search-algolia": "^3.6.3",
|
||||
"@docusaurus/theme-search-algolia": "^3.9.0",
|
||||
"@heroicons/react": "^2.2.0",
|
||||
"@mdx-js/react": "^3.1.0",
|
||||
"@sapphire/docusaurus-plugin-npm2yarn2pnpm": "^2.0.2",
|
||||
|
||||
@@ -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.24"}]
|
||||
[{"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.27"}]
|
||||
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.24"
|
||||
"0.38.27"
|
||||
]
|
||||
Reference in New Issue
Block a user