'TypeError this.options.components?.map is not a function' when using spliceComponents() function
Hello there. I am fairly certain this is a bug rather than a question. I tried using the
spliceComponents()
function and got this error in return:
Here is the code that generated this error:
Not really sure if there's a solution except from waiting for a bug fix. If there is, please let me know. Thank you.14 Replies
Log messageComponents
I assume this is a discord.js error because it originates from the library itself, not my code.
This happens with the
setComponents()
function as well.
This is the components in general.
One second.you are v13.8 right?
Yes.
yeah I wanted
messageComponents
exactlyoh just put it in an array
🤦
Yep.
That was the problem.
Thanks, lol.
There's no bug lmao
I thought the error happened at the
sliceComponents()
part,Sure, no problem.
My bad, lol.
no read it
Clearly says MessagePayload anyway have a nice day ig