From f121e6a90d37b670868dd28b53ba6180d0254ce1 Mon Sep 17 00:00:00 2001 From: Twentysix Date: Wed, 7 Sep 2016 08:39:09 +0200 Subject: [PATCH] [Owner] Limit [p]leave to server chat --- cogs/owner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogs/owner.py b/cogs/owner.py index a95b5bf53..d441ac5c6 100644 --- a/cogs/owner.py +++ b/cogs/owner.py @@ -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"""