G
G
getaxe2022-03-09 07:54:53
JavaScript
getaxe, 2022-03-09 07:54:53

How to make a bot not require a response from a button?

There is a button and code for it, for example:

if (interaction.customId == "test") {
//тут любое действие, например выдать роль, создать канал, или что-то еще.
}

But without interaction.reply('some kind of response') after some time the bot writes "Interaction error".
How to remove it? It's even better to add something like "Juniper thinks:" as in the attached screenshot.unknown.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
getaxe, 2022-03-10
@getaxe

Finally found what I was looking for. May be useful to someone.
In order to do it as in the screenshot, the .deploy () function is used - increasing the waiting response.
In order to edit a message with a button, .update() is used.
Without a response, there is no way to do it (it was possible before, but it was a bug) (update is the answer).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question