1
0
Fork 0
mirror of https://github.com/myned/modufur.git synced 2024-12-23 22:27:27 +00:00

Add leave guild command

This commit is contained in:
Myned 2019-01-03 18:04:17 -05:00
parent 2a3f4d99f7
commit 41daa41c78

View file

@ -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):