mirror of
https://github.com/uhIgnacio/EmoteManager.git
synced 2024-08-15 02:23:13 +00:00
Merge branch 'master' into metrics
This commit is contained in:
commit
fa7ce425cf
1 changed files with 4 additions and 0 deletions
|
@ -546,6 +546,10 @@ class Emotes(commands.Cog):
|
||||||
await context.send(f'{emote.name}: {emote.url}')
|
await context.send(f'{emote.name}: {emote.url}')
|
||||||
|
|
||||||
async def parse_emote(self, context, name_or_emote, *, local=True):
|
async def parse_emote(self, context, name_or_emote, *, local=True):
|
||||||
|
# this function is mostly synchronous,
|
||||||
|
# so we yield in order to let the emoji cache update between repeated calls
|
||||||
|
await asyncio.sleep(0)
|
||||||
|
|
||||||
match = utils.emote.RE_CUSTOM_EMOTE.match(name_or_emote)
|
match = utils.emote.RE_CUSTOM_EMOTE.match(name_or_emote)
|
||||||
if match:
|
if match:
|
||||||
id = int(match['id'])
|
id = int(match['id'])
|
||||||
|
|
Loading…
Reference in a new issue