fixing emoji wait/defer logic
This commit is contained in:
parent
5505982434
commit
bd201af80a
@ -55,6 +55,7 @@ class ServerUtils(commands.Cog):
|
|||||||
async def emoji(self, ctx: commands.Context, url, emoji_name):
|
async def emoji(self, ctx: commands.Context, url, emoji_name):
|
||||||
import core_utils
|
import core_utils
|
||||||
|
|
||||||
|
await ctx.defer()
|
||||||
if "webp" in url:
|
if "webp" in url:
|
||||||
url = url.replace("webp", "png").split("?")[0]
|
url = url.replace("webp", "png").split("?")[0]
|
||||||
|
|
||||||
@ -65,7 +66,8 @@ class ServerUtils(commands.Cog):
|
|||||||
name=emoji_name,
|
name=emoji_name,
|
||||||
image=open(emoji_staging, "rb").read(),
|
image=open(emoji_staging, "rb").read(),
|
||||||
)
|
)
|
||||||
await ctx.respond(
|
|
||||||
|
await ctx.send_followup(
|
||||||
embed=core_utils.generate_embed(
|
embed=core_utils.generate_embed(
|
||||||
embed_title="New emoji: %s" % emoji_name,
|
embed_title="New emoji: %s" % emoji_name,
|
||||||
embed_description=emoji_id,
|
embed_description=emoji_id,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user