Skip to content

Commit

Permalink
Merge pull request #307 from oceanbit/main
Browse files Browse the repository at this point in the history
Add isHighlight and isRedemption fields to Twitch private field
  • Loading branch information
d-fischer committed Nov 8, 2021
2 parents b489b23 + 2508fe9 commit 3cc1d5e
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions packages/chat/src/commands/TwitchPrivateMessage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,20 @@ export class TwitchPrivateMessage extends MessageTypes.Commands.PrivateMessage {
return this._tags.has('bits');
}

/**
* Whether the message is a redemption.
*/
get isRedemption(): boolean {
return this._tags.has('custom-reward-id');
}

/**
* Whether the message is a highlighted message.
*/
get isHighlight(): boolean {
return this._tags.has('highlighted-message');
}

/**
* The number of bits cheered with the message.
*/
Expand Down

0 comments on commit 3cc1d5e

Please sign in to comment.