L
L
Lucsan2021-05-20 16:38:06
Python
Lucsan, 2021-05-20 16:38:06

Python discord bot. How to edit posts?

Greetings to all readers. Recently I wondered if it is possible to send messages and edit them through a python bot.
Let's say I write /say *text* and it outputs something like this:

60a666098b7a1951304114.png

Well, of course, the command to edit such messages.
After looking at the library, I found only await ctx.edit(content="new content") or await ctx.message.edit() but did not fully understand how to use it.
Please help me with this problem

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
s4q, 2021-05-20
@s4q

I mean, you didn't fully understand how to use it?

msg = await ctx.fetch_message(айди_сообщения)
await msg.edit('прикол')

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question