Answer the question
In order to leave comments, you need to log in
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") {
//тут любое действие, например выдать роль, создать канал, или что-то еще.
}
Answer the question
In order to leave comments, you need to log in
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 questionAsk a Question
731 491 924 answers to any question