From 71d0f648e95cc0d770acd5a33ab463733dc26904 Mon Sep 17 00:00:00 2001 From: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com> Date: Wed, 28 Apr 2021 11:58:25 -0400 Subject: [PATCH] Update message.ts --- src/structures/message.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/structures/message.ts b/src/structures/message.ts index f1b745d9b..9f24937ee 100644 --- a/src/structures/message.ts +++ b/src/structures/message.ts @@ -155,6 +155,7 @@ export async function createDiscordenoMessage(data: Message) { ...props, /** The message id of the original message if this message was sent as a reply. If null, the original message was deleted. */ channelId: createNewProp(channelId), + content: createNewProp(data.content || ""), guildId: createNewProp(guildIdFinal), mentionedUserIds: createNewProp(mentions.map((m) => m.id)), mentionedRoleIds: createNewProp(mentionRoles), @@ -181,6 +182,8 @@ export interface DiscordenoMessage // For better user experience /** Id of the guild which the massage has been send in. Empty string if it a DM */ guildId: string; + /** The message content for this message. Empty string if no content was sent like an attachment only. */ + content: string; /** Ids of users specifically mentioned in the message */ mentionedUserIds: string[]; /** Ids of roles specifically mentioned in this message */