update DiscordMessage interface JSDocs (#2198)

Co-authored-by: ITOH <to@itoh.at>
This commit is contained in:
LTS20050703
2022-05-13 19:55:09 +07:00
committed by GitHub
parent b542c65ac1
commit b27e487e83

View File

@@ -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)