D
D
Dream2021-06-21 22:07:46
Python
Dream, 2021-06-21 22:07:46

How to remove a component in a Discord message?

There is a code:

msg = await ctx.send("Текст", components=[Button(style.ButtonStyle=blue, label="Кнопка", id="button_1")])

How to make components be removed when message changes?
await msg.edit("Текст")

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dream, 2021-06-21
@dreameddd

await msg.edit("Текст", components=[])

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question