0

How can I get my lastest message to a User?
I have a bot, so I wanna know when is lastest time I contact (direct message, mention...) to it?

1 Answers1

0

You need to use the conversations.history method. This returns the whole history of a channel or Direct message. You can then iterate over this and fetch the most recent message.

Caleb Njiiri
  • 1,563
  • 1
  • 11
  • 20