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
Solution:
ah I see thank you
Jump to solution
13 Replies
Oreo ™
Oreo ™3mo ago
can u show me the full stack trace
Oreo ™
Oreo ™3mo ago
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
Lynx Gian
Lynx Gian3mo ago
I don’t use it at all it’s something on sapphire’s end
Oreo ™
Oreo ™3mo ago
i guess we will have to wait till one of the maintainers come
Lynx Gian
Lynx Gian3mo ago
It’s definitely a stupid mistake I made
Oreo ™
Oreo ™3mo ago
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
Oreo ™
Oreo ™3mo ago
could it be because ur not returning here?
No description
Oreo ™
Oreo ™3mo ago
return this.some()
Lynx Gian
Lynx Gian3mo ago
Might be I doubt it makes a difference but I’ll try
Favna
Favna3mo ago
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
Lynx Gian
Lynx Gian3mo ago
ah I see thank you
Lynx Gian
Lynx Gian3mo ago
now I get this https://srcb.in/KLKokPAZnG it like responds right but I get that error wait nvm