Author missing from oldMessage on MessageUpdateEvent

I am listening on MessageUpdateEvent. When I delete the embed from a contentless message (only embed), a message update event is triggered with the following data. oldMessage
Message {
channelId: '1040010885504176188',
guildId: '1030918008559898726',
id: '1054809397769011281',
createdTimestamp: 1671556557839,
system: null,
type: null,
content: null,
author: null,
pinned: null,
tts: null,
nonce: null,
embeds: [],
components: [],
attachments: Collection(0) [Map] {},
stickers: Collection(0) [Map] {},
position: null,
editedTimestamp: null,
reactions: <ref *1> ReactionManager {
message: Message {
channelId: '1040010885504176188',
guildId: '1030918008559898726',
id: '1054809397769011281',
createdTimestamp: 1671556557839,
system: false,
type: 0,
content: '',
author: [ClientUser],
pinned: false,
tts: false,
nonce: null,
embeds: [],
components: [],
attachments: Collection(0) [Map] {},
stickers: Collection(0) [Map] {},
position: null,
editedTimestamp: null,
reactions: [Circular *1],
mentions: [MessageMentions],
webhookId: null,
groupActivityApplication: null,
applicationId: null,
activity: null,
flags: [MessageFlagsBitField],
reference: null,
interaction: null
}
},
mentions: MessageMentions {
everyone: false,
users: Collection(0) [Map] {},
roles: Collection(0) [Map] {},
_members: null,
_channels: null,
_parsedUsers: null,
crosspostedChannels: Collection(0) [Map] {},
repliedUser: null
},
webhookId: null,
groupActivityApplication: null,
applicationId: null,
activity: null,
flags: MessageFlagsBitField { bitfield: 0 },
reference: null,
interaction: null
}
Message {
channelId: '1040010885504176188',
guildId: '1030918008559898726',
id: '1054809397769011281',
createdTimestamp: 1671556557839,
system: null,
type: null,
content: null,
author: null,
pinned: null,
tts: null,
nonce: null,
embeds: [],
components: [],
attachments: Collection(0) [Map] {},
stickers: Collection(0) [Map] {},
position: null,
editedTimestamp: null,
reactions: <ref *1> ReactionManager {
message: Message {
channelId: '1040010885504176188',
guildId: '1030918008559898726',
id: '1054809397769011281',
createdTimestamp: 1671556557839,
system: false,
type: 0,
content: '',
author: [ClientUser],
pinned: false,
tts: false,
nonce: null,
embeds: [],
components: [],
attachments: Collection(0) [Map] {},
stickers: Collection(0) [Map] {},
position: null,
editedTimestamp: null,
reactions: [Circular *1],
mentions: [MessageMentions],
webhookId: null,
groupActivityApplication: null,
applicationId: null,
activity: null,
flags: [MessageFlagsBitField],
reference: null,
interaction: null
}
},
mentions: MessageMentions {
everyone: false,
users: Collection(0) [Map] {},
roles: Collection(0) [Map] {},
_members: null,
_channels: null,
_parsedUsers: null,
crosspostedChannels: Collection(0) [Map] {},
repliedUser: null
},
webhookId: null,
groupActivityApplication: null,
applicationId: null,
activity: null,
flags: MessageFlagsBitField { bitfield: 0 },
reference: null,
interaction: null
}
4 Replies
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Febkosq8
Febkosq82y ago
newMessage
<ref *1> Message {
channelId: '1040010885504176188',
guildId: '1030918008559898726',
id: '1054809397769011281',
createdTimestamp: 1671556557839,
system: false,
type: 0,
content: '',
author: ClientUser {
id: '1030967755274473522',
bot: true,
system: false,
flags: UserFlagsBitField { bitfield: 0 },
username: 'Jappan - Dev',
discriminator: '3817',
avatar: '55eba0b28db2406a8a371cb936b58192',
banner: undefined,
accentColor: undefined,
verified: true,
mfaEnabled: true
},
editedTimestamp: null,
reactions: ReactionManager { message: [Circular *1] },
mentions: MessageMentions {
everyone: false,
users: Collection(0) [Map] {},
roles: Collection(0) [Map] {},
_members: null,
_channels: null,
_parsedUsers: null,
crosspostedChannels: Collection(0) [Map] {},
repliedUser: null
},
webhookId: null,
groupActivityApplication: null,
applicationId: null,
activity: null,
flags: MessageFlagsBitField { bitfield: 4 },
reference: null,
interaction: null
}
<ref *1> Message {
channelId: '1040010885504176188',
guildId: '1030918008559898726',
id: '1054809397769011281',
createdTimestamp: 1671556557839,
system: false,
type: 0,
content: '',
author: ClientUser {
id: '1030967755274473522',
bot: true,
system: false,
flags: UserFlagsBitField { bitfield: 0 },
username: 'Jappan - Dev',
discriminator: '3817',
avatar: '55eba0b28db2406a8a371cb936b58192',
banner: undefined,
accentColor: undefined,
verified: true,
mfaEnabled: true
},
editedTimestamp: null,
reactions: ReactionManager { message: [Circular *1] },
mentions: MessageMentions {
everyone: false,
users: Collection(0) [Map] {},
roles: Collection(0) [Map] {},
_members: null,
_channels: null,
_parsedUsers: null,
crosspostedChannels: Collection(0) [Map] {},
repliedUser: null
},
webhookId: null,
groupActivityApplication: null,
applicationId: null,
activity: null,
flags: MessageFlagsBitField { bitfield: 4 },
reference: null,
interaction: null
}
I am unable to understand why oldMessage author is null
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Febkosq8
Febkosq82y ago
that makes sense. i guess the workaround is to cache messages which is not a good solution for my case.