K
K
Killsayden2020-10-31 17:39:23
Node.js
Killsayden, 2020-10-31 17:39:23

How to get the id of the last message sent to a Discord.js channel?

How can I get the id of the last message sent to the server's discord channel?
If possible, please give an example, thanks in advance!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2020-10-31
@Killsayden

use property .lastMessageID:

message.channel.send(`ID последнего сообщения: ${message.channel.lastMessageID}`)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question