fixing emoji wait/defer logic
This commit is contained in:
parent
17a71e6b28
commit
304fbf085d
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user