diff --git a/app/cogs/cheeky_functions.py b/app/cogs/cheeky_functions.py index 4a489805..e3d63fd3 100644 --- a/app/cogs/cheeky_functions.py +++ b/app/cogs/cheeky_functions.py @@ -128,11 +128,14 @@ class Cheeky(commands.Cog): import meme_gen await ctx.message.delete() - await ctx.send( - embed=core_utils.generate_embed( - embed_url=meme_gen.parse_message(ctx.message.content) + try: + await ctx.send( + embed=core_utils.generate_embed( + embed_url=meme_gen.parse_message(ctx.message.content) + ) ) - ) + except discord.errors.HTTPException: + await ctx.send(meme_gen.get_meme_help()) @commands.command(name="define", aliases=["ud"]) async def define(self, ctx: commands.Context):