mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-02 13:34:51 +00:00
Add filters.react to filter react
This commit is contained in:
parent
e0039f2c69
commit
2a260d0d18
1 changed files with 10 additions and 0 deletions
|
|
@ -234,6 +234,16 @@ reply = create(reply_filter)
|
|||
"""Filter messages that are replies to other messages."""
|
||||
|
||||
|
||||
# endregion
|
||||
|
||||
# region reaction_filter
|
||||
async def reaction_filter(_, __, m: Message):
|
||||
return bool(m.edit_hide)
|
||||
|
||||
|
||||
react = create(reaction_filter)
|
||||
"""Filter reactions."""
|
||||
|
||||
# endregion
|
||||
|
||||
# region forwarded_filter
|
||||
|
|
|
|||
Loading…
Reference in a new issue