diff --git a/deno/gateway/v10.ts b/deno/gateway/v10.ts index 63746a45..f2246a1b 100644 --- a/deno/gateway/v10.ts +++ b/deno/gateway/v10.ts @@ -32,6 +32,7 @@ import type { APIAuditLogEntry, APIEntitlement, ChannelType, + TextChannelType, APISubscription, APISoundboardSound, GuildChannelType, @@ -1720,6 +1721,12 @@ export interface GatewayMessageEventExtraFields { * @see {@link https://discord.com/developers/docs/resources/user#user-object} */ mentions: APIUserWithMember[]; + /** + * The type of channel the message was sent in + * + * @see {@link https://docs.discord.com/developers/resources/channel#channel-object-channel-types} + */ + channel_type?: TextChannelType; } /** diff --git a/deno/gateway/v9.ts b/deno/gateway/v9.ts index 38915b33..9164f5b3 100644 --- a/deno/gateway/v9.ts +++ b/deno/gateway/v9.ts @@ -31,6 +31,7 @@ import type { AutoModerationRuleTriggerType, APIAuditLogEntry, ChannelType, + TextChannelType, APISubscription, APISoundboardSound, GuildChannelType, @@ -1719,6 +1720,12 @@ export interface GatewayMessageEventExtraFields { * @see {@link https://discord.com/developers/docs/resources/user#user-object} */ mentions: APIUserWithMember[]; + /** + * The type of channel the message was sent in + * + * @see {@link https://docs.discord.com/developers/resources/channel#channel-object-channel-types} + */ + channel_type?: TextChannelType; } /** diff --git a/gateway/v10.ts b/gateway/v10.ts index e2c302cb..a0268100 100644 --- a/gateway/v10.ts +++ b/gateway/v10.ts @@ -32,6 +32,7 @@ import type { APIAuditLogEntry, APIEntitlement, ChannelType, + TextChannelType, APISubscription, APISoundboardSound, GuildChannelType, @@ -1720,6 +1721,12 @@ export interface GatewayMessageEventExtraFields { * @see {@link https://discord.com/developers/docs/resources/user#user-object} */ mentions: APIUserWithMember[]; + /** + * The type of channel the message was sent in + * + * @see {@link https://docs.discord.com/developers/resources/channel#channel-object-channel-types} + */ + channel_type?: TextChannelType; } /** diff --git a/gateway/v9.ts b/gateway/v9.ts index db30746a..eb1793d7 100644 --- a/gateway/v9.ts +++ b/gateway/v9.ts @@ -31,6 +31,7 @@ import type { AutoModerationRuleTriggerType, APIAuditLogEntry, ChannelType, + TextChannelType, APISubscription, APISoundboardSound, GuildChannelType, @@ -1719,6 +1720,12 @@ export interface GatewayMessageEventExtraFields { * @see {@link https://discord.com/developers/docs/resources/user#user-object} */ mentions: APIUserWithMember[]; + /** + * The type of channel the message was sent in + * + * @see {@link https://docs.discord.com/developers/resources/channel#channel-object-channel-types} + */ + channel_type?: TextChannelType; } /**