mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-06-07 12:18:59 +00:00
Fix false positives in animated for PartialEmoji.from_str
This commit is contained in:
parent
49e31e9e23
commit
a7f2c670c9
@ -94,7 +94,7 @@ class PartialEmoji(_EmojiTag, AssetMixin):
|
||||
|
||||
__slots__ = ('animated', 'name', 'id', '_state')
|
||||
|
||||
_CUSTOM_EMOJI_RE = re.compile(r'<?(?P<animated>a)?:?(?P<name>[A-Za-z0-9\_]+):(?P<id>[0-9]{13,20})>?')
|
||||
_CUSTOM_EMOJI_RE = re.compile(r'<?(?:(?P<animated>a)?:)?(?P<name>[A-Za-z0-9\_]+):(?P<id>[0-9]{13,20})>?')
|
||||
|
||||
if TYPE_CHECKING:
|
||||
id: Optional[int]
|
||||
|
Loading…
x
Reference in New Issue
Block a user