interaction.update is not a function #6618
-
I was trying to update the interaction which i receive
TypeError: interaction.update is not a function Here is the about code. am I doing something wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
you use the function "interaction.editReply()" not use "interaction.update()", is not existe (i am french, sorry) |
Beta Was this translation helpful? Give feedback.
-
You are working with a CommandInteraction, not a ButtonInteraction and these cannot be updated. If you want a ButtonInteraction you need to use a collector on the reply and then you can use .update |
Beta Was this translation helpful? Give feedback.
You are working with a CommandInteraction, not a ButtonInteraction and these cannot be updated. If you want a ButtonInteraction you need to use a collector on the reply and then you can use .update