mirror of
https://github.com/myned/modufur.git
synced 2024-12-24 14:27:27 +00:00
Add leave guild command
This commit is contained in:
parent
2a3f4d99f7
commit
41daa41c78
1 changed files with 9 additions and 0 deletions
|
@ -127,6 +127,15 @@ class Bot:
|
|||
u.dump(u.block, 'cogs/block.json', json=True)
|
||||
|
||||
await ctx.send('\N{WHITE HEAVY CHECK MARK} **Unblocked guilds**')
|
||||
|
||||
@cmds.command(name=',leave', aliases=[',l'])
|
||||
@cmds.is_owner()
|
||||
async def leave(self, ctx, *guilds):
|
||||
for guild in guilds:
|
||||
temp = d.utils.get(self.bot.guilds, id=int(guild))
|
||||
|
||||
await temp.leave()
|
||||
|
||||
@cmds.command(name=',permissions', aliases=[',permission', ',perms', ',perm'])
|
||||
@cmds.is_owner()
|
||||
async def permissions(self, ctx, *args: d.Member):
|
||||
|
|
Loading…
Reference in a new issue