DiscordMessage
Field | Type | Description |
---|---|---|
author | object | The author’s metadata. |
author.id | string | The author’s ID. |
author.avatar | string | The author’s avatar URL. |
author.username | string | The author’s username. |
author.globalName | string | The author’s global name. |
authorId | string | The ID of the message author. |
channelId | string | The ID of the channel this message belongs to. |
content | string | The content of the message. |
createdAt | Date | The creation date of the message. |
guildId | string | The ID of the server this message belongs to. |
mentionEveryone | boolean | Whether the message mentions everyone. |
mentions | Array<object> | The mentions in the message. |
mentions.id | string | The ID of the mentioned user. |
mentions.avatar | string | The avatar URL of the mentioned user. |
mentions.username | string | The username of the mentioned user. |
mentions.globalName | string | The global name of the mentioned user. |
modifiedAt | Date | The last modification date of the message. |
position | number | The position of the message in the channel. |
referencedMessageId | string | The remote ID of the referenced message. |
remoteId | string | The unique identifier in the source. |
sourceId | string | The source identifier. |
attachments | Array<ImageBlock | AudioFile | VideoFile> | The attachments in the message. |