#Disabling buttons after clicks
1 messages · Page 1 of 1 (latest)
disabled=True
Can you be more detailed? I tried through interaction.component.disabled = True, but it didn’t work
You need to edit the message with the now disabled bit
That is, I write interaction.component.disabled = True, and in interaction.responce.edit_message(components = ?)
what needs to be put there?
for button in components:
button.disabled = True
edit_message(components=components)
Why are you using listener?are you one of those who using listener for every command?
This algorithm is to turn off all the buttons, but I only need the one that was clicked.
I use listener because I can have 15 buttons there with different identifiers, doing it through view is like that.
U can use view with 15 buttons
well, why? I already have this code, it’s fully working, I just need to find out how to disable the button that was pressed and that’s it.