1
0
Fork 0
mirror of https://github.com/myned/modufur.git synced 2024-11-01 13:02:38 +00:00

Add suppressing of NotFound errors while deleting messages

This commit is contained in:
Dylan Dizon 2018-11-08 22:32:04 -05:00
parent f06f743179
commit b978148e0f

View file

@ -1524,9 +1524,10 @@ class MsG:
finally:
if messages:
for msg in messages:
await msg.delete()
await message.delete()
with suppress(err.NotFound):
for msg in messages:
await msg.delete()
await message.delete()
@_add_tags.command(name='global', aliases=['gl', 'g'])
@cmds.is_owner()