Skip to content

Commit

Permalink
fix(messageUpdate): fixed error on partial newMessages
Browse files Browse the repository at this point in the history
  • Loading branch information
SethCohen committed Aug 30, 2023
1 parent e9d660c commit 8a86039
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/events/messageUpdate.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ async function processEmojis(message, action) {
}

async function processMessageUpdate(oldMessage, newMessage) {
if(newMessage.partial) await newMessage.fetch();

const guildInfo = await getGuildInfo(newMessage.client.db, newMessage.guild);
const userOpt = await getUserOpt(guildInfo, newMessage.author.id);

Expand Down

0 comments on commit 8a86039

Please sign in to comment.