Spurious messageUpdate

I just observed a messageUpdate event emitted on a message from 2018 that doesn't show as edited. What can cause this other than an edit? There are no embeds to the message so it shouldn't be embed related. Can this event fire when there is no change?
8 Replies
d.js toolkit
d.js toolkit11mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button! - Marked as resolved by OP
Kevinnnn
Kevinnnn11mo ago
are you sure its a message from 2018 that was emitted with the event? could you please provide your version number and client options
jr
jrOP11mo ago
I am sure, I was logging the message the even fired on. I'm on 14.14.1 with client
const client = new Discord.Client({
intents: [
// fuck it, everything (almost)
Discord.GatewayIntentBits.Guilds,
Discord.GatewayIntentBits.GuildMembers,
Discord.GatewayIntentBits.GuildModeration,
Discord.GatewayIntentBits.GuildEmojisAndStickers,
Discord.GatewayIntentBits.GuildIntegrations,
Discord.GatewayIntentBits.GuildWebhooks,
Discord.GatewayIntentBits.GuildInvites,
Discord.GatewayIntentBits.GuildVoiceStates,
Discord.GatewayIntentBits.GuildMessages,
Discord.GatewayIntentBits.GuildMessageReactions,
Discord.GatewayIntentBits.GuildMessageTyping,
Discord.GatewayIntentBits.MessageContent,
Discord.GatewayIntentBits.DirectMessages,
Discord.GatewayIntentBits.DirectMessageReactions,
Discord.GatewayIntentBits.DirectMessageTyping,
],
partials: [
Discord.Partials.Channel,
Discord.Partials.Message,
Discord.Partials.Reaction,
Discord.Partials.User,
],
makeCache: Discord.Options.cacheWithLimits({
...Discord.Options.DefaultMakeCacheSettings,
MessageManager: 1000,
}),
});
const client = new Discord.Client({
intents: [
// fuck it, everything (almost)
Discord.GatewayIntentBits.Guilds,
Discord.GatewayIntentBits.GuildMembers,
Discord.GatewayIntentBits.GuildModeration,
Discord.GatewayIntentBits.GuildEmojisAndStickers,
Discord.GatewayIntentBits.GuildIntegrations,
Discord.GatewayIntentBits.GuildWebhooks,
Discord.GatewayIntentBits.GuildInvites,
Discord.GatewayIntentBits.GuildVoiceStates,
Discord.GatewayIntentBits.GuildMessages,
Discord.GatewayIntentBits.GuildMessageReactions,
Discord.GatewayIntentBits.GuildMessageTyping,
Discord.GatewayIntentBits.MessageContent,
Discord.GatewayIntentBits.DirectMessages,
Discord.GatewayIntentBits.DirectMessageReactions,
Discord.GatewayIntentBits.DirectMessageTyping,
],
partials: [
Discord.Partials.Channel,
Discord.Partials.Message,
Discord.Partials.Reaction,
Discord.Partials.User,
],
makeCache: Discord.Options.cacheWithLimits({
...Discord.Options.DefaultMakeCacheSettings,
MessageManager: 1000,
}),
});
Kevinnnn
Kevinnnn11mo ago
well you have the message partial so that would explain why you received that message event no idea why it would emit though if there were no changes
jr
jrOP11mo ago
Indeed 🙂 I was surprised to see it
Kevinnnn
Kevinnnn11mo ago
are there any links in it? was it pinned at one point and unpinned? the event emits if the link embed for it was cleared
jr
jrOP11mo ago
No links but pins are a good thought Yep looking back through the logs that was it 🙂 Thanks for the help!
Kevinnnn
Kevinnnn11mo ago
wooo love pinned messages, and no problem dogeHaHa
Want results from more Discord servers?
Add your server