Preview environment

interface GatewayMessageEventExtraFields

export interface GatewayMessageEventExtraFields

https://discord.com/developers/docs/topics/gateway-events#message-create-message-create-extra-fields

optional
guild_id? : Snowflake

ID of the guild the message was sent in

optional
member? : Omit<APIGuildMember, 'user'>

Member properties for this message's authorThe member object exists in MESSAGE_CREATE and MESSAGE_UPDATE events from text-based guild channelsSee https://discord.com/developers/docs/resources/guild#guild-member-object

mentions : (APIUser & { member?: Omit<APIGuildMember, 'user'>; })[]

Users specifically mentioned in the messageThe member field is only present in MESSAGE_CREATE and MESSAGE_UPDATE events from text-based guild channelsSee https://discord.com/developers/docs/resources/user#user-object See https://discord.com/developers/docs/resources/guild#guild-member-object