[Utils] Fix regex for role mentions in MessagePredicate (#4030)

This commit is contained in:
aikaterna
2020-06-30 18:29:16 -07:00
committed by GitHub
parent 8b529f488b
commit 7d30e3de14

View File

@@ -10,7 +10,7 @@ from redbot.core import commands
_ID_RE = re.compile(r"([0-9]{15,21})$")
_USER_MENTION_RE = re.compile(r"<@!?([0-9]{15,21})>$")
_CHAN_MENTION_RE = re.compile(r"<#([0-9]{15,21})>$")
_ROLE_MENTION_RE = re.compile(r"<&([0-9]{15,21})>$")
_ROLE_MENTION_RE = re.compile(r"<@&([0-9]{15,21})>$")
class MessagePredicate(Callable[[discord.Message], bool]):