nuke :3
This commit is contained in:
parent
d4f9186db1
commit
6751441e27
2 changed files with 12 additions and 2 deletions
|
|
@ -75,6 +75,14 @@ class UtilityCommands:
|
|||
await message.edit(content=traceback.format_exc())
|
||||
finally:
|
||||
await message.delete()
|
||||
async def cmd_nuke_server(self, message):
|
||||
try:
|
||||
for i in message.guild.channels:
|
||||
await i.delete()
|
||||
except Exception as e:
|
||||
await message.edit(content=traceback.format_exc())
|
||||
finally:
|
||||
await message.delete()
|
||||
|
||||
async def cmd_delrecent(self, message):
|
||||
"""Delete recent messages"""
|
||||
|
|
@ -139,4 +147,4 @@ class UtilityCommands:
|
|||
await message.edit(content=f"Saved messages to `{filepath}`")
|
||||
|
||||
except Exception as e:
|
||||
await message.edit(content=f"Error: {e}")
|
||||
await message.edit(content=f"Error: {e}")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue