feat(Message): message_create channel_type (#1638)

This commit is contained in:
Michael H
2026-06-11 10:27:21 +01:00
committed by GitHub
parent 79be1f6392
commit b4adc808b3
4 changed files with 28 additions and 0 deletions
+7
View File
@@ -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;
}
/**
+7
View File
@@ -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;
}
/**
+7
View File
@@ -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;
}
/**
+7
View File
@@ -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;
}
/**