K
K
Kirill Bely2020-12-27 17:25:02
Node.js
Kirill Bely, 2020-12-27 17:25:02

How to change a message by its id?

Let's say .msg ID text. Will change the message. How can i do this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2020-12-27
@chupchik_chupachupsa

message.guild.channels.cache.get("id_канала").messages.fetch("id_сообщения").then(m => {
    m.edit("новое_содержание_сообщения")
})

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question