mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 03:08:55 -05:00
[Utils] Fix regex for role mentions in MessagePredicate (#4030)
This commit is contained in:
parent
8b529f488b
commit
7d30e3de14
@ -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]):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user