mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-08 10:22:31 -05:00
[Owner] Limit [p]leave to server chat
This commit is contained in:
@@ -433,7 +433,7 @@ class Owner:
|
|||||||
await self.bot.say("I wasn't able to accept the invite."
|
await self.bot.say("I wasn't able to accept the invite."
|
||||||
" Try again.")
|
" Try again.")
|
||||||
|
|
||||||
@commands.command(pass_context=True)
|
@commands.command(pass_context=True, no_pm=True)
|
||||||
@checks.is_owner()
|
@checks.is_owner()
|
||||||
async def leave(self, ctx):
|
async def leave(self, ctx):
|
||||||
"""Leaves server"""
|
"""Leaves server"""
|
||||||
|
|||||||
Reference in New Issue
Block a user