Error when clicking button
error: https://srcb.in/dIL4feMtz6
code: https://srcb.in/MGmSNTYXw6
I tried using Message Component and ButtonType
I get this error when trying to interact with a button passed on an embed
13 Replies
can u show me the full stack trace
will do
https://srcb.in/4d4ZJT8Yut
yeah sorry idk whats going on, never faced an issue like that. could u search across ur project for
.match
since that seems to be the issue. on vscode u can do Ctrl
+ Shift
+ F
I don’t use it at all it’s something on sapphire’s end
i guess we will have to wait till one of the maintainers come
It’s definitely a stupid mistake I made
since im not on pc i cant check whats wrong by trying out ur code but everything that u sent looks alright but idk im just guessing
could it be because ur not returning here?
return this.some()
Might be I doubt it makes a difference but I’ll try
Yes you have to return it. The match will be in Some.match but the function returns undefined now so it's undefined.match
Solution
ah I see thank you