Skip to content

Commit

Permalink
Add equality for SlackUser class
Browse files Browse the repository at this point in the history
  • Loading branch information
wxp02 committed Jan 7, 2024
1 parent 9c5be36 commit 6e3bdd5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/classes/SlackUser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,7 @@ export default class SlackUser {
this.id = id;
this.userType = userType;
}
equals(other: SlackUser): boolean {
return this.id === other.id;
}
}

0 comments on commit 6e3bdd5

Please sign in to comment.