account for .reply() not working in send()
@@ -15,8 +15,12 @@ async def send(_bot, location, message, respond=False, ping=False):
try:
if respond and hasattr(location, "reply"):
+ try:
await location.reply(embed=embed, mention_author=ping)
- else:
+ return True
+ except discord.errors.HTTPException:
+ pass
+
await location.send(embed=embed)
return True
