From b27e487e83a83871d45c4b8e35b2fedbe477c08a Mon Sep 17 00:00:00 2001 From: LTS20050703 <87189679+lts20050703@users.noreply.github.com> Date: Fri, 13 May 2022 19:55:09 +0700 Subject: [PATCH] update DiscordMessage interface JSDocs (#2198) Co-authored-by: ITOH --- types/discord.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/types/discord.ts b/types/discord.ts index c8ba1e069..c47ab31bf 100644 --- a/types/discord.ts +++ b/types/discord.ts @@ -961,7 +961,10 @@ export interface DiscordMessage { id: string; /** id of the channel the message was sent in */ channel_id: string; - /** id of the guild the message was sent in */ + /** + * id of the guild the message was sent in + * Note: For MESSAGE_CREATE and MESSAGE_UPDATE events, the message object may not contain a guild_id or member field since the events are sent directly to the receiving user and the bot who sent the message, rather than being sent through the guild like non-ephemeral messages. + */ guild_id?: string; /** * The author of this message (not guaranteed to be a valid user)