New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(MessageComponentInteraction): component getter #5840
Conversation
get component() { | ||
return this.message.components | ||
.map(row => row.components) | ||
.flat() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is flat
defaulted to Infinity?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Default depth is 1, though not sure it makes a difference here based on the data the API gives us.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Otherwise LGTM
Lint CI is failing here. |
This needs a rebase too. |
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com>
Co-authored-by: SpaceEEC <spaceeec@yahoo.com>
Co-authored-by: Jan <66554238+vaporox@users.noreply.github.com>
a7555c9
to
4998189
Compare
Closes #5828
This currently uses generic Object/unknown typings for a raw message component, pending discordjs/discord-api-types#132 being merged.
Status and versioning classification: