fix(Voice, AuditLog): voice state channel_id, audit log application_id (#1580)

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Almeida
2026-03-19 18:19:08 +00:00
committed by GitHub
parent ba01bacfc0
commit 811314a825
8 changed files with 32 additions and 4 deletions

View File

@@ -347,6 +347,13 @@ export interface APIAuditLogOptions {
* - MEMBER_ROLE_UPDATE
*/
integration_type?: APIGuildIntegrationType;
/**
* ID of the app whose permissions were targeted
*
* Present from:
* - APPLICATION_COMMAND_PERMISSION_UPDATE
*/
application_id?: Snowflake;
}
export enum AuditLogOptionsType {

View File

@@ -347,6 +347,13 @@ export interface APIAuditLogOptions {
* - MEMBER_ROLE_UPDATE
*/
integration_type?: APIGuildIntegrationType;
/**
* ID of the app whose permissions were targeted
*
* Present from:
* - APPLICATION_COMMAND_PERMISSION_UPDATE
*/
application_id?: Snowflake;
}
export enum AuditLogOptionsType {

View File

@@ -51,7 +51,7 @@ export interface RESTPatchAPIGuildVoiceStateUserJSONBody {
/**
* The id of the channel the user is currently in
*/
channel_id: Snowflake;
channel_id?: Snowflake | undefined;
/**
* Toggles the user's suppress state
*/

2
deno/rest/v9/voice.ts generated
View File

@@ -51,7 +51,7 @@ export interface RESTPatchAPIGuildVoiceStateUserJSONBody {
/**
* The id of the channel the user is currently in
*/
channel_id: Snowflake;
channel_id?: Snowflake | undefined;
/**
* Toggles the user's suppress state
*/

View File

@@ -347,6 +347,13 @@ export interface APIAuditLogOptions {
* - MEMBER_ROLE_UPDATE
*/
integration_type?: APIGuildIntegrationType;
/**
* ID of the app whose permissions were targeted
*
* Present from:
* - APPLICATION_COMMAND_PERMISSION_UPDATE
*/
application_id?: Snowflake;
}
export enum AuditLogOptionsType {

View File

@@ -347,6 +347,13 @@ export interface APIAuditLogOptions {
* - MEMBER_ROLE_UPDATE
*/
integration_type?: APIGuildIntegrationType;
/**
* ID of the app whose permissions were targeted
*
* Present from:
* - APPLICATION_COMMAND_PERMISSION_UPDATE
*/
application_id?: Snowflake;
}
export enum AuditLogOptionsType {

View File

@@ -51,7 +51,7 @@ export interface RESTPatchAPIGuildVoiceStateUserJSONBody {
/**
* The id of the channel the user is currently in
*/
channel_id: Snowflake;
channel_id?: Snowflake | undefined;
/**
* Toggles the user's suppress state
*/

View File

@@ -51,7 +51,7 @@ export interface RESTPatchAPIGuildVoiceStateUserJSONBody {
/**
* The id of the channel the user is currently in
*/
channel_id: Snowflake;
channel_id?: Snowflake | undefined;
/**
* Toggles the user's suppress state
*/