mirror of
https://github.com/myned/modufur.git
synced 2024-12-24 22:27:28 +00:00
Add suppressing of NotFound errors while deleting messages
This commit is contained in:
parent
f06f743179
commit
b978148e0f
1 changed files with 4 additions and 3 deletions
|
@ -1524,9 +1524,10 @@ class MsG:
|
||||||
|
|
||||||
finally:
|
finally:
|
||||||
if messages:
|
if messages:
|
||||||
for msg in messages:
|
with suppress(err.NotFound):
|
||||||
await msg.delete()
|
for msg in messages:
|
||||||
await message.delete()
|
await msg.delete()
|
||||||
|
await message.delete()
|
||||||
|
|
||||||
@_add_tags.command(name='global', aliases=['gl', 'g'])
|
@_add_tags.command(name='global', aliases=['gl', 'g'])
|
||||||
@cmds.is_owner()
|
@cmds.is_owner()
|
||||||
|
|
Loading…
Reference in a new issue