fixing emoji wait/defer logic

This commit is contained in:
Luke Robles 2022-12-25 13:42:35 -08:00
parent 7464c7a306
commit 4d88accba8

View File

@ -55,6 +55,7 @@ class ServerUtils(commands.Cog):
async def emoji(self, ctx: commands.Context, url, emoji_name):
import core_utils
await ctx.defer()
if "webp" in url:
url = url.replace("webp", "png").split("?")[0]
@ -65,7 +66,8 @@ class ServerUtils(commands.Cog):
name=emoji_name,
image=open(emoji_staging, "rb").read(),
)
await ctx.respond(
await ctx.send_followup(
embed=core_utils.generate_embed(
embed_title="New emoji: %s" % emoji_name,
embed_description=emoji_id,