Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
monbrey committed Jun 24, 2021
1 parent 90c6688 commit 4998189
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/structures/MessageComponentInteraction.js
Expand Up @@ -63,9 +63,11 @@ class MessageComponentInteraction extends Interaction {
* @readonly
*/
get component() {
return this.message.components
.flatMap(row => row.components)
.find(component => (component.customID ?? component.custom_id) === this.customID) ?? null;
return (
this.message.components
.flatMap(row => row.components)
.find(component => (component.customID ?? component.custom_id) === this.customID) ?? null
);
}

/**
Expand Down

0 comments on commit 4998189

Please sign in to comment.