Add is:redemption search predicate (#4118)

This commit is contained in:
Felanbird 2022-11-06 06:14:27 -05:00 committed by GitHub
parent 6f88c1cc8a
commit 1e6e18f53a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View file

@ -20,6 +20,7 @@
- Minor: Added `is:first-msg` search option. (#3700)
- Minor: Added `is:elevated-msg` search option. (#4018)
- Minor: Added `is:cheer-msg` search option. (#4069)
- Minor: Added `is:redemption` search option. (#4118)
- Minor: Added `subtier:` search option (e.g. `subtier:3` to find Tier 3 subs). (#4013)
- Minor: Added `badge:` search option (e.g. `badge:mod` to users with the moderator badge). (#4013)
- Minor: Added AutoMod message flag filter. (#3938)

View file

@ -42,6 +42,11 @@ MessageFlagsPredicate::MessageFlagsPredicate(const QString &flags)
{
this->flags_.set(MessageFlag::CheerMessage);
}
else if (flag == "redemption")
{
this->flags_.set(MessageFlag::RedeemedChannelPointReward);
this->flags_.set(MessageFlag::RedeemedHighlight);
}
}
}