log: welp I forgot to await

This commit is contained in:
Ave Ozkal 2019-02-15 01:14:09 +03:00
parent 014c915590
commit c5b518e9c0
No known key found for this signature in database
GPG key ID: 09356ABAA42C842B

View file

@ -86,7 +86,8 @@ class Logs:
# If resulting message is too long, upload to hastebin
if len(msg) > 2000:
msg = f"📝 **Message edit**: \nToo long: <{self.bot.haste(msg)}>"
haste_url = await self.bot.haste(msg)
msg = f"📝 **Message edit**: \nToo long: <{haste_url}>"
await log_channel.send(msg)
@ -102,7 +103,8 @@ class Logs:
# If resulting message is too long, upload to hastebin
if len(msg) > 2000:
msg = f"🗑️ **Message delete**: \nToo long: <{self.bot.haste(msg)}>"
haste_url = await self.bot.haste(msg)
msg = f"🗑️ **Message delete**: \nToo long: <{haste_url}>"
await log_channel.send(msg)