#Event : messageDelete gives a message object with content and author as null

1 messages · Page 1 of 1 (latest)

desert wave

I have a audit functionality for my bot. It sends a log item to the server when a message is deleted from the guild.
Everything used to run fine but since past few days,
every time a message is deleted and if that message was made before the current session of bot started (Heroku restarts dyno's everyday) the message object returned by the messageDelete event is totally waste.
Attached below

<ref *1> Message {
  channelId: '1050491814500642887',
  guildId: '1030918008559898726',
  id: '1068670289535320104',
  createdTimestamp: 1674861251959,
  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: 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: 0 },
  reference: null,
  interaction: null
}

What I need is the content, author and the creation timestamp.