Skip to content

Commit

Permalink
held chat messages have custom-reward-id= even without a redeem
Browse files Browse the repository at this point in the history
  • Loading branch information
asottile committed Feb 22, 2025
1 parent da3fd7b commit 18558f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bot/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def color(self) -> tuple[int, int, int]:
def bg_color(self) -> tuple[int, int, int] | None:
if self.info.get('msg-id') == 'highlighted-message':
return (117, 94, 188)
elif 'custom-reward-id' in self.info:
elif self.info.get('custom-reward-id'):
return 29, 91, 130
else:
return None
Expand Down

0 comments on commit 18558f3

Please sign in to comment.