[Owner] Limit [p]leave to server chat

This commit is contained in:
Twentysix 2016-09-07 08:39:09 +02:00
parent 26263ee67e
commit f121e6a90d

View File

@ -433,7 +433,7 @@ class Owner:
await self.bot.say("I wasn't able to accept the invite."
" Try again.")
@commands.command(pass_context=True)
@commands.command(pass_context=True, no_pm=True)
@checks.is_owner()
async def leave(self, ctx):
"""Leaves server"""