If bot does not have embed links permission, send normal text error message

pull/8/head
sgoudham 4 years ago
parent d344732864
commit 4926c6b242

@ -28,6 +28,9 @@ async def send_error(ctx, perms, embed):
if perms.send_messages and perms.embed_links: if perms.send_messages and perms.embed_links:
await ctx.send(embed=embed) await ctx.send(embed=embed)
elif perms.send_messages:
await ctx.send(
"Error Embed Message Could Not Be Sent. Make sure that the bot has the **Embed Links** Permission")
else: else:
print("Error: Error Handling Message Could Not Be Sent") print("Error: Error Handling Message Could Not Be Sent")

Loading…
Cancel
Save