File tree 14 files changed +184
-0
lines changed
14 files changed +184
-0
lines changed Original file line number Diff line number Diff line change @@ -270,6 +270,7 @@ export enum GatewayDispatchEvents {
270
270
AutoModerationRuleDelete = 'AUTO_MODERATION_RULE_DELETE' ,
271
271
AutoModerationActionExecution = 'AUTO_MODERATION_ACTION_EXECUTION' ,
272
272
GuildAuditLogEntryCreate = 'GUILD_AUDIT_LOG_ENTRY_CREATE' ,
273
+ VoiceChannelStatusUpdate = 'VOICE_CHANNEL_STATUS_UPDATE' ,
273
274
EntitlementCreate = 'ENTITLEMENT_CREATE' ,
274
275
EntitlementUpdate = 'ENTITLEMENT_UPDATE' ,
275
276
EntitlementDelete = 'ENTITLEMENT_DELETE' ,
@@ -1813,6 +1814,32 @@ export interface GatewayGuildAuditLogEntryCreateDispatchData extends APIAuditLog
1813
1814
guild_id : Snowflake ;
1814
1815
}
1815
1816
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
+
1816
1843
// #endregion Dispatch Payloads
1817
1844
1818
1845
// #region Sendable Payloads
Original file line number Diff line number Diff line change @@ -269,6 +269,7 @@ export enum GatewayDispatchEvents {
269
269
AutoModerationRuleDelete = 'AUTO_MODERATION_RULE_DELETE' ,
270
270
AutoModerationActionExecution = 'AUTO_MODERATION_ACTION_EXECUTION' ,
271
271
GuildAuditLogEntryCreate = 'GUILD_AUDIT_LOG_ENTRY_CREATE' ,
272
+ VoiceChannelStatusUpdate = 'VOICE_CHANNEL_STATUS_UPDATE' ,
272
273
EntitlementCreate = 'ENTITLEMENT_CREATE' ,
273
274
EntitlementUpdate = 'ENTITLEMENT_UPDATE' ,
274
275
EntitlementDelete = 'ENTITLEMENT_DELETE' ,
@@ -1812,6 +1813,32 @@ export interface GatewayGuildAuditLogEntryCreateDispatchData extends APIAuditLog
1812
1813
guild_id : Snowflake ;
1813
1814
}
1814
1815
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
+
1815
1842
// #endregion Dispatch Payloads
1816
1843
1817
1844
// #region Sendable Payloads
Original file line number Diff line number Diff line change @@ -276,6 +276,12 @@ export const PermissionFlagsBits = {
276
276
* Applies to channel types: Text, Voice, Stage
277
277
*/
278
278
SendVoiceMessages : 1n << 46n ,
279
+ /**
280
+ * Allows setting voice channel status
281
+ *
282
+ * Applies to channel types: Voice
283
+ */
284
+ SetVoiceChannelStatus : 1n << 48n ,
279
285
} as const ;
280
286
281
287
/**
Original file line number Diff line number Diff line change @@ -204,6 +204,9 @@ export enum AuditLogEvent {
204
204
205
205
CreatorMonetizationRequestCreated = 150 ,
206
206
CreatorMonetizationTermsAccepted ,
207
+
208
+ VoiceChannelStatusUpdate = 192 ,
209
+ VoiceChannelStatusDelete ,
207
210
}
208
211
209
212
/**
@@ -257,6 +260,8 @@ export interface APIAuditLogOptions {
257
260
* - AUTO_MODERATION_BLOCK_MESSAGE
258
261
* - AUTO_MODERATION_FLAG_TO_CHANNEL
259
262
* - AUTO_MODERATION_USER_COMMUNICATION_DISABLED
263
+ * - VOICE_CHANNEL_STATUS_UPDATE
264
+ * - VOICE_CHANNEL_STATUS_DELETE
260
265
*/
261
266
channel_id ?: Snowflake ;
262
267
@@ -322,6 +327,13 @@ export interface APIAuditLogOptions {
322
327
* - MEMBER_ROLE_UPDATE
323
328
*/
324
329
integration_type ?: APIGuildIntegrationType ;
330
+ /**
331
+ * The new voice channel status
332
+ *
333
+ * Present from:
334
+ * - VOICE_CHANNEL_STATUS_UPDATE
335
+ */
336
+ status ?: string ;
325
337
}
326
338
327
339
export enum AuditLogOptionsType {
Original file line number Diff line number Diff line change @@ -126,6 +126,10 @@ export interface APIGuildTextChannel<T extends ChannelType.GuildForum | ChannelT
126
126
* The channel topic (0-1024 characters)
127
127
*/
128
128
topic ?: string | null ;
129
+ /**
130
+ * The voice channel status (0-500 characters)
131
+ */
132
+ status ?: string | null ;
129
133
}
130
134
131
135
export type APITextChannel = APIGuildTextChannel < ChannelType . GuildText > ;
Original file line number Diff line number Diff line change @@ -204,6 +204,9 @@ export enum AuditLogEvent {
204
204
205
205
CreatorMonetizationRequestCreated = 150 ,
206
206
CreatorMonetizationTermsAccepted ,
207
+
208
+ VoiceChannelStatusUpdate = 192 ,
209
+ VoiceChannelStatusDelete ,
207
210
}
208
211
209
212
/**
@@ -257,6 +260,8 @@ export interface APIAuditLogOptions {
257
260
* - AUTO_MODERATION_BLOCK_MESSAGE
258
261
* - AUTO_MODERATION_FLAG_TO_CHANNEL
259
262
* - AUTO_MODERATION_USER_COMMUNICATION_DISABLED
263
+ * - VOICE_CHANNEL_STATUS_UPDATE
264
+ * - VOICE_CHANNEL_STATUS_DELETE
260
265
*/
261
266
channel_id ?: Snowflake ;
262
267
@@ -322,6 +327,13 @@ export interface APIAuditLogOptions {
322
327
* - MEMBER_ROLE_UPDATE
323
328
*/
324
329
integration_type ?: APIGuildIntegrationType ;
330
+ /**
331
+ * The new voice channel status
332
+ *
333
+ * Present from:
334
+ * - VOICE_CHANNEL_STATUS_UPDATE
335
+ */
336
+ status ?: string ;
325
337
}
326
338
327
339
export enum AuditLogOptionsType {
Original file line number Diff line number Diff line change @@ -126,6 +126,10 @@ export interface APIGuildTextChannel<T extends ChannelType.GuildForum | ChannelT
126
126
* The channel topic (0-1024 characters)
127
127
*/
128
128
topic ?: string | null ;
129
+ /**
130
+ * The voice channel status (0-500 characters)
131
+ */
132
+ status ?: string | null ;
129
133
}
130
134
131
135
export type APITextChannel = APIGuildTextChannel < ChannelType . GuildText > ;
Original file line number Diff line number Diff line change @@ -270,6 +270,7 @@ export enum GatewayDispatchEvents {
270
270
AutoModerationRuleDelete = 'AUTO_MODERATION_RULE_DELETE' ,
271
271
AutoModerationActionExecution = 'AUTO_MODERATION_ACTION_EXECUTION' ,
272
272
GuildAuditLogEntryCreate = 'GUILD_AUDIT_LOG_ENTRY_CREATE' ,
273
+ VoiceChannelStatusUpdate = 'VOICE_CHANNEL_STATUS_UPDATE' ,
273
274
EntitlementCreate = 'ENTITLEMENT_CREATE' ,
274
275
EntitlementUpdate = 'ENTITLEMENT_UPDATE' ,
275
276
EntitlementDelete = 'ENTITLEMENT_DELETE' ,
@@ -1813,6 +1814,32 @@ export interface GatewayGuildAuditLogEntryCreateDispatchData extends APIAuditLog
1813
1814
guild_id : Snowflake ;
1814
1815
}
1815
1816
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
+
1816
1843
// #endregion Dispatch Payloads
1817
1844
1818
1845
// #region Sendable Payloads
Original file line number Diff line number Diff line change @@ -269,6 +269,7 @@ export enum GatewayDispatchEvents {
269
269
AutoModerationRuleDelete = 'AUTO_MODERATION_RULE_DELETE' ,
270
270
AutoModerationActionExecution = 'AUTO_MODERATION_ACTION_EXECUTION' ,
271
271
GuildAuditLogEntryCreate = 'GUILD_AUDIT_LOG_ENTRY_CREATE' ,
272
+ VoiceChannelStatusUpdate = 'VOICE_CHANNEL_STATUS_UPDATE' ,
272
273
EntitlementCreate = 'ENTITLEMENT_CREATE' ,
273
274
EntitlementUpdate = 'ENTITLEMENT_UPDATE' ,
274
275
EntitlementDelete = 'ENTITLEMENT_DELETE' ,
@@ -1812,6 +1813,32 @@ export interface GatewayGuildAuditLogEntryCreateDispatchData extends APIAuditLog
1812
1813
guild_id : Snowflake ;
1813
1814
}
1814
1815
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
+
1815
1842
// #endregion Dispatch Payloads
1816
1843
1817
1844
// #region Sendable Payloads
Original file line number Diff line number Diff line change @@ -276,6 +276,12 @@ export const PermissionFlagsBits = {
276
276
* Applies to channel types: Text, Voice, Stage
277
277
*/
278
278
SendVoiceMessages : 1n << 46n ,
279
+ /**
280
+ * Allows setting voice channel status
281
+ *
282
+ * Applies to channel types: Voice
283
+ */
284
+ SetVoiceChannelStatus : 1n << 48n ,
279
285
} as const ;
280
286
281
287
/**
Original file line number Diff line number Diff line change @@ -204,6 +204,9 @@ export enum AuditLogEvent {
204
204
205
205
CreatorMonetizationRequestCreated = 150 ,
206
206
CreatorMonetizationTermsAccepted ,
207
+
208
+ VoiceChannelStatusUpdate = 192 ,
209
+ VoiceChannelStatusDelete ,
207
210
}
208
211
209
212
/**
@@ -257,6 +260,8 @@ export interface APIAuditLogOptions {
257
260
* - AUTO_MODERATION_BLOCK_MESSAGE
258
261
* - AUTO_MODERATION_FLAG_TO_CHANNEL
259
262
* - AUTO_MODERATION_USER_COMMUNICATION_DISABLED
263
+ * - VOICE_CHANNEL_STATUS_UPDATE
264
+ * - VOICE_CHANNEL_STATUS_DELETE
260
265
*/
261
266
channel_id ?: Snowflake ;
262
267
@@ -322,6 +327,13 @@ export interface APIAuditLogOptions {
322
327
* - MEMBER_ROLE_UPDATE
323
328
*/
324
329
integration_type ?: APIGuildIntegrationType ;
330
+ /**
331
+ * The new voice channel status
332
+ *
333
+ * Present from:
334
+ * - VOICE_CHANNEL_STATUS_UPDATE
335
+ */
336
+ status ?: string ;
325
337
}
326
338
327
339
export enum AuditLogOptionsType {
Original file line number Diff line number Diff line change @@ -126,6 +126,10 @@ export interface APIGuildTextChannel<T extends ChannelType.GuildForum | ChannelT
126
126
* The channel topic (0-1024 characters)
127
127
*/
128
128
topic ?: string | null ;
129
+ /**
130
+ * The voice channel status (0-500 characters)
131
+ */
132
+ status ?: string | null ;
129
133
}
130
134
131
135
export type APITextChannel = APIGuildTextChannel < ChannelType . GuildText > ;
Original file line number Diff line number Diff line change @@ -204,6 +204,9 @@ export enum AuditLogEvent {
204
204
205
205
CreatorMonetizationRequestCreated = 150 ,
206
206
CreatorMonetizationTermsAccepted ,
207
+
208
+ VoiceChannelStatusUpdate = 192 ,
209
+ VoiceChannelStatusDelete ,
207
210
}
208
211
209
212
/**
@@ -257,6 +260,8 @@ export interface APIAuditLogOptions {
257
260
* - AUTO_MODERATION_BLOCK_MESSAGE
258
261
* - AUTO_MODERATION_FLAG_TO_CHANNEL
259
262
* - AUTO_MODERATION_USER_COMMUNICATION_DISABLED
263
+ * - VOICE_CHANNEL_STATUS_UPDATE
264
+ * - VOICE_CHANNEL_STATUS_DELETE
260
265
*/
261
266
channel_id ?: Snowflake ;
262
267
@@ -322,6 +327,13 @@ export interface APIAuditLogOptions {
322
327
* - MEMBER_ROLE_UPDATE
323
328
*/
324
329
integration_type ?: APIGuildIntegrationType ;
330
+ /**
331
+ * The new voice channel status
332
+ *
333
+ * Present from:
334
+ * - VOICE_CHANNEL_STATUS_UPDATE
335
+ */
336
+ status ?: string ;
325
337
}
326
338
327
339
export enum AuditLogOptionsType {
Original file line number Diff line number Diff line change @@ -126,6 +126,10 @@ export interface APIGuildTextChannel<T extends ChannelType.GuildForum | ChannelT
126
126
* The channel topic (0-1024 characters)
127
127
*/
128
128
topic ?: string | null ;
129
+ /**
130
+ * The voice channel status (0-500 characters)
131
+ */
132
+ status ?: string | null ;
129
133
}
130
134
131
135
export type APITextChannel = APIGuildTextChannel < ChannelType . GuildText > ;
You can’t perform that action at this time.
0 commit comments