Skip to content

Commit 2d980fa

Browse files
committed
feat(GatewayDispatchEvents): add VoiceChannelStatusUpdate
feat(GatewayDispatchEvents): add `VoiceChannelStatusUpdate`
1 parent 19327a5 commit 2d980fa

File tree

14 files changed

+184
-0
lines changed

14 files changed

+184
-0
lines changed

deno/gateway/v10.ts

+27
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,7 @@ export enum GatewayDispatchEvents {
270270
AutoModerationRuleDelete = 'AUTO_MODERATION_RULE_DELETE',
271271
AutoModerationActionExecution = 'AUTO_MODERATION_ACTION_EXECUTION',
272272
GuildAuditLogEntryCreate = 'GUILD_AUDIT_LOG_ENTRY_CREATE',
273+
VoiceChannelStatusUpdate = 'VOICE_CHANNEL_STATUS_UPDATE',
273274
EntitlementCreate = 'ENTITLEMENT_CREATE',
274275
EntitlementUpdate = 'ENTITLEMENT_UPDATE',
275276
EntitlementDelete = 'ENTITLEMENT_DELETE',
@@ -1813,6 +1814,32 @@ export interface GatewayGuildAuditLogEntryCreateDispatchData extends APIAuditLog
18131814
guild_id: Snowflake;
18141815
}
18151816

1817+
/**
1818+
* https://discord.com/developers/docs/topics/gateway-events#voice-channel-status-update
1819+
*/
1820+
export type GatewayVoiceChannelStatusUpdateDispatch = DataPayload<
1821+
GatewayDispatchEvents.VoiceChannelStatusUpdate,
1822+
GatewayVoiceChannelStatusUpdateDispatchDate
1823+
>;
1824+
1825+
/**
1826+
* https://discord.com/developers/docs/topics/gateway-events#voice-channel-status-update
1827+
*/
1828+
export interface GatewayVoiceChannelStatusUpdateDispatchDate {
1829+
/**
1830+
* The id of the channel
1831+
*/
1832+
id: Snowflake;
1833+
/**
1834+
* The id of the guild
1835+
*/
1836+
guild_id: Snowflake;
1837+
/**
1838+
* The new voice channel status
1839+
*/
1840+
status: string | null;
1841+
}
1842+
18161843
// #endregion Dispatch Payloads
18171844

18181845
// #region Sendable Payloads

deno/gateway/v9.ts

+27
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,7 @@ export enum GatewayDispatchEvents {
269269
AutoModerationRuleDelete = 'AUTO_MODERATION_RULE_DELETE',
270270
AutoModerationActionExecution = 'AUTO_MODERATION_ACTION_EXECUTION',
271271
GuildAuditLogEntryCreate = 'GUILD_AUDIT_LOG_ENTRY_CREATE',
272+
VoiceChannelStatusUpdate = 'VOICE_CHANNEL_STATUS_UPDATE',
272273
EntitlementCreate = 'ENTITLEMENT_CREATE',
273274
EntitlementUpdate = 'ENTITLEMENT_UPDATE',
274275
EntitlementDelete = 'ENTITLEMENT_DELETE',
@@ -1812,6 +1813,32 @@ export interface GatewayGuildAuditLogEntryCreateDispatchData extends APIAuditLog
18121813
guild_id: Snowflake;
18131814
}
18141815

1816+
/**
1817+
* https://discord.com/developers/docs/topics/gateway-events#voice-channel-status-update
1818+
*/
1819+
export type GatewayVoiceChannelStatusUpdateDispatch = DataPayload<
1820+
GatewayDispatchEvents.VoiceChannelStatusUpdate,
1821+
GatewayVoiceChannelStatusUpdateDispatchDate
1822+
>;
1823+
1824+
/**
1825+
* https://discord.com/developers/docs/topics/gateway-events#voice-channel-status-update
1826+
*/
1827+
export interface GatewayVoiceChannelStatusUpdateDispatchDate {
1828+
/**
1829+
* The id of the channel
1830+
*/
1831+
id: Snowflake;
1832+
/**
1833+
* The id of the guild
1834+
*/
1835+
guild_id: Snowflake;
1836+
/**
1837+
* The new voice channel status
1838+
*/
1839+
status: string | null;
1840+
}
1841+
18151842
// #endregion Dispatch Payloads
18161843

18171844
// #region Sendable Payloads

deno/payloads/common.ts

+6
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,12 @@ export const PermissionFlagsBits = {
276276
* Applies to channel types: Text, Voice, Stage
277277
*/
278278
SendVoiceMessages: 1n << 46n,
279+
/**
280+
* Allows setting voice channel status
281+
*
282+
* Applies to channel types: Voice
283+
*/
284+
SetVoiceChannelStatus: 1n << 48n,
279285
} as const;
280286

281287
/**

deno/payloads/v10/auditLog.ts

+12
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,9 @@ export enum AuditLogEvent {
204204

205205
CreatorMonetizationRequestCreated = 150,
206206
CreatorMonetizationTermsAccepted,
207+
208+
VoiceChannelStatusUpdate = 192,
209+
VoiceChannelStatusDelete,
207210
}
208211

209212
/**
@@ -257,6 +260,8 @@ export interface APIAuditLogOptions {
257260
* - AUTO_MODERATION_BLOCK_MESSAGE
258261
* - AUTO_MODERATION_FLAG_TO_CHANNEL
259262
* - AUTO_MODERATION_USER_COMMUNICATION_DISABLED
263+
* - VOICE_CHANNEL_STATUS_UPDATE
264+
* - VOICE_CHANNEL_STATUS_DELETE
260265
*/
261266
channel_id?: Snowflake;
262267

@@ -322,6 +327,13 @@ export interface APIAuditLogOptions {
322327
* - MEMBER_ROLE_UPDATE
323328
*/
324329
integration_type?: APIGuildIntegrationType;
330+
/**
331+
* The new voice channel status
332+
*
333+
* Present from:
334+
* - VOICE_CHANNEL_STATUS_UPDATE
335+
*/
336+
status?: string;
325337
}
326338

327339
export enum AuditLogOptionsType {

deno/payloads/v10/channel.ts

+4
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,10 @@ export interface APIGuildTextChannel<T extends ChannelType.GuildForum | ChannelT
126126
* The channel topic (0-1024 characters)
127127
*/
128128
topic?: string | null;
129+
/**
130+
* The voice channel status (0-500 characters)
131+
*/
132+
status?: string | null;
129133
}
130134

131135
export type APITextChannel = APIGuildTextChannel<ChannelType.GuildText>;

deno/payloads/v9/auditLog.ts

+12
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,9 @@ export enum AuditLogEvent {
204204

205205
CreatorMonetizationRequestCreated = 150,
206206
CreatorMonetizationTermsAccepted,
207+
208+
VoiceChannelStatusUpdate = 192,
209+
VoiceChannelStatusDelete,
207210
}
208211

209212
/**
@@ -257,6 +260,8 @@ export interface APIAuditLogOptions {
257260
* - AUTO_MODERATION_BLOCK_MESSAGE
258261
* - AUTO_MODERATION_FLAG_TO_CHANNEL
259262
* - AUTO_MODERATION_USER_COMMUNICATION_DISABLED
263+
* - VOICE_CHANNEL_STATUS_UPDATE
264+
* - VOICE_CHANNEL_STATUS_DELETE
260265
*/
261266
channel_id?: Snowflake;
262267

@@ -322,6 +327,13 @@ export interface APIAuditLogOptions {
322327
* - MEMBER_ROLE_UPDATE
323328
*/
324329
integration_type?: APIGuildIntegrationType;
330+
/**
331+
* The new voice channel status
332+
*
333+
* Present from:
334+
* - VOICE_CHANNEL_STATUS_UPDATE
335+
*/
336+
status?: string;
325337
}
326338

327339
export enum AuditLogOptionsType {

deno/payloads/v9/channel.ts

+4
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,10 @@ export interface APIGuildTextChannel<T extends ChannelType.GuildForum | ChannelT
126126
* The channel topic (0-1024 characters)
127127
*/
128128
topic?: string | null;
129+
/**
130+
* The voice channel status (0-500 characters)
131+
*/
132+
status?: string | null;
129133
}
130134

131135
export type APITextChannel = APIGuildTextChannel<ChannelType.GuildText>;

gateway/v10.ts

+27
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,7 @@ export enum GatewayDispatchEvents {
270270
AutoModerationRuleDelete = 'AUTO_MODERATION_RULE_DELETE',
271271
AutoModerationActionExecution = 'AUTO_MODERATION_ACTION_EXECUTION',
272272
GuildAuditLogEntryCreate = 'GUILD_AUDIT_LOG_ENTRY_CREATE',
273+
VoiceChannelStatusUpdate = 'VOICE_CHANNEL_STATUS_UPDATE',
273274
EntitlementCreate = 'ENTITLEMENT_CREATE',
274275
EntitlementUpdate = 'ENTITLEMENT_UPDATE',
275276
EntitlementDelete = 'ENTITLEMENT_DELETE',
@@ -1813,6 +1814,32 @@ export interface GatewayGuildAuditLogEntryCreateDispatchData extends APIAuditLog
18131814
guild_id: Snowflake;
18141815
}
18151816

1817+
/**
1818+
* https://discord.com/developers/docs/topics/gateway-events#voice-channel-status-update
1819+
*/
1820+
export type GatewayVoiceChannelStatusUpdateDispatch = DataPayload<
1821+
GatewayDispatchEvents.VoiceChannelStatusUpdate,
1822+
GatewayVoiceChannelStatusUpdateDispatchDate
1823+
>;
1824+
1825+
/**
1826+
* https://discord.com/developers/docs/topics/gateway-events#voice-channel-status-update
1827+
*/
1828+
export interface GatewayVoiceChannelStatusUpdateDispatchDate {
1829+
/**
1830+
* The id of the channel
1831+
*/
1832+
id: Snowflake;
1833+
/**
1834+
* The id of the guild
1835+
*/
1836+
guild_id: Snowflake;
1837+
/**
1838+
* The new voice channel status
1839+
*/
1840+
status: string | null;
1841+
}
1842+
18161843
// #endregion Dispatch Payloads
18171844

18181845
// #region Sendable Payloads

gateway/v9.ts

+27
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,7 @@ export enum GatewayDispatchEvents {
269269
AutoModerationRuleDelete = 'AUTO_MODERATION_RULE_DELETE',
270270
AutoModerationActionExecution = 'AUTO_MODERATION_ACTION_EXECUTION',
271271
GuildAuditLogEntryCreate = 'GUILD_AUDIT_LOG_ENTRY_CREATE',
272+
VoiceChannelStatusUpdate = 'VOICE_CHANNEL_STATUS_UPDATE',
272273
EntitlementCreate = 'ENTITLEMENT_CREATE',
273274
EntitlementUpdate = 'ENTITLEMENT_UPDATE',
274275
EntitlementDelete = 'ENTITLEMENT_DELETE',
@@ -1812,6 +1813,32 @@ export interface GatewayGuildAuditLogEntryCreateDispatchData extends APIAuditLog
18121813
guild_id: Snowflake;
18131814
}
18141815

1816+
/**
1817+
* https://discord.com/developers/docs/topics/gateway-events#voice-channel-status-update
1818+
*/
1819+
export type GatewayVoiceChannelStatusUpdateDispatch = DataPayload<
1820+
GatewayDispatchEvents.VoiceChannelStatusUpdate,
1821+
GatewayVoiceChannelStatusUpdateDispatchDate
1822+
>;
1823+
1824+
/**
1825+
* https://discord.com/developers/docs/topics/gateway-events#voice-channel-status-update
1826+
*/
1827+
export interface GatewayVoiceChannelStatusUpdateDispatchDate {
1828+
/**
1829+
* The id of the channel
1830+
*/
1831+
id: Snowflake;
1832+
/**
1833+
* The id of the guild
1834+
*/
1835+
guild_id: Snowflake;
1836+
/**
1837+
* The new voice channel status
1838+
*/
1839+
status: string | null;
1840+
}
1841+
18151842
// #endregion Dispatch Payloads
18161843

18171844
// #region Sendable Payloads

payloads/common.ts

+6
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,12 @@ export const PermissionFlagsBits = {
276276
* Applies to channel types: Text, Voice, Stage
277277
*/
278278
SendVoiceMessages: 1n << 46n,
279+
/**
280+
* Allows setting voice channel status
281+
*
282+
* Applies to channel types: Voice
283+
*/
284+
SetVoiceChannelStatus: 1n << 48n,
279285
} as const;
280286

281287
/**

payloads/v10/auditLog.ts

+12
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,9 @@ export enum AuditLogEvent {
204204

205205
CreatorMonetizationRequestCreated = 150,
206206
CreatorMonetizationTermsAccepted,
207+
208+
VoiceChannelStatusUpdate = 192,
209+
VoiceChannelStatusDelete,
207210
}
208211

209212
/**
@@ -257,6 +260,8 @@ export interface APIAuditLogOptions {
257260
* - AUTO_MODERATION_BLOCK_MESSAGE
258261
* - AUTO_MODERATION_FLAG_TO_CHANNEL
259262
* - AUTO_MODERATION_USER_COMMUNICATION_DISABLED
263+
* - VOICE_CHANNEL_STATUS_UPDATE
264+
* - VOICE_CHANNEL_STATUS_DELETE
260265
*/
261266
channel_id?: Snowflake;
262267

@@ -322,6 +327,13 @@ export interface APIAuditLogOptions {
322327
* - MEMBER_ROLE_UPDATE
323328
*/
324329
integration_type?: APIGuildIntegrationType;
330+
/**
331+
* The new voice channel status
332+
*
333+
* Present from:
334+
* - VOICE_CHANNEL_STATUS_UPDATE
335+
*/
336+
status?: string;
325337
}
326338

327339
export enum AuditLogOptionsType {

payloads/v10/channel.ts

+4
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,10 @@ export interface APIGuildTextChannel<T extends ChannelType.GuildForum | ChannelT
126126
* The channel topic (0-1024 characters)
127127
*/
128128
topic?: string | null;
129+
/**
130+
* The voice channel status (0-500 characters)
131+
*/
132+
status?: string | null;
129133
}
130134

131135
export type APITextChannel = APIGuildTextChannel<ChannelType.GuildText>;

payloads/v9/auditLog.ts

+12
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,9 @@ export enum AuditLogEvent {
204204

205205
CreatorMonetizationRequestCreated = 150,
206206
CreatorMonetizationTermsAccepted,
207+
208+
VoiceChannelStatusUpdate = 192,
209+
VoiceChannelStatusDelete,
207210
}
208211

209212
/**
@@ -257,6 +260,8 @@ export interface APIAuditLogOptions {
257260
* - AUTO_MODERATION_BLOCK_MESSAGE
258261
* - AUTO_MODERATION_FLAG_TO_CHANNEL
259262
* - AUTO_MODERATION_USER_COMMUNICATION_DISABLED
263+
* - VOICE_CHANNEL_STATUS_UPDATE
264+
* - VOICE_CHANNEL_STATUS_DELETE
260265
*/
261266
channel_id?: Snowflake;
262267

@@ -322,6 +327,13 @@ export interface APIAuditLogOptions {
322327
* - MEMBER_ROLE_UPDATE
323328
*/
324329
integration_type?: APIGuildIntegrationType;
330+
/**
331+
* The new voice channel status
332+
*
333+
* Present from:
334+
* - VOICE_CHANNEL_STATUS_UPDATE
335+
*/
336+
status?: string;
325337
}
326338

327339
export enum AuditLogOptionsType {

payloads/v9/channel.ts

+4
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,10 @@ export interface APIGuildTextChannel<T extends ChannelType.GuildForum | ChannelT
126126
* The channel topic (0-1024 characters)
127127
*/
128128
topic?: string | null;
129+
/**
130+
* The voice channel status (0-500 characters)
131+
*/
132+
status?: string | null;
129133
}
130134

131135
export type APITextChannel = APIGuildTextChannel<ChannelType.GuildText>;

0 commit comments

Comments
 (0)