topi314 / dgo-paginator

discordgo button paginator
Apache License 2.0
1 stars 4 forks source link

bin - This interaction failed #5

Closed enzofoucaud closed 3 months ago

enzofoucaud commented 3 months ago

image

topi314 commented 3 months ago

this can happen for multiple reasons but since you only posted a screenshot... ¯\(ツ)

enzofoucaud commented 3 months ago

this can happen for multiple reasons but since you only posted a screenshot... ¯_(ツ)_/¯

the bug appears with the example

topi314 commented 3 months ago

unfortunately it seems like discordgo doesn't let you reset the components via a message update interaction response

this code generates: https://github.com/topi314/dgo-paginator/blob/master/paginator.go#L142

[{"type":7,"data":{"tts":false,"content":"","components":[],"embeds":null}}]

while it should generate

[{"type":7,"data":{"components":[]}}]

you're gonna have to take this up with discordgo maintainers since there is nothing I can fix here