mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-21 10:17:59 -05:00
Add leave example and arguments
This commit is contained in:
@@ -1541,7 +1541,14 @@ class Core(commands.commands._RuleDropper, commands.Cog, CoreLogic):
|
||||
|
||||
Note: This command is interactive.
|
||||
|
||||
""" # TODO: Example and arguments
|
||||
**Examples:**
|
||||
- `[p]leave` - Leave the current server.
|
||||
- `[p]leave "Red - Discord Bot"` - Quotes are necessary when there are spaces in the name.
|
||||
- `[p]leave 133049272517001216 240154543684321280` - Leaves multiple servers, using IDs.
|
||||
|
||||
**Arguments:**
|
||||
- `[servers...]` - The servers to leave. When blank, attempts to leave the current server.
|
||||
"""
|
||||
guilds = servers
|
||||
if ctx.guild is None and not guilds:
|
||||
return await ctx.send(_("You need to specify at least one server ID."))
|
||||
@@ -4223,7 +4230,7 @@ class Core(commands.commands._RuleDropper, commands.Cog, CoreLogic):
|
||||
@command_disable.command(name="server", aliases=["guild"])
|
||||
async def command_disable_guild(self, ctx: commands.Context, *, command: str):
|
||||
"""
|
||||
Disable a command in this server only.
|
||||
Disable a command in this server only.
|
||||
|
||||
**Examples:**
|
||||
- `[p]command disable server userinfo` - Disables the `userinfo` command in the Mod cog.
|
||||
@@ -4289,7 +4296,7 @@ class Core(commands.commands._RuleDropper, commands.Cog, CoreLogic):
|
||||
@command_enable.command(name="global")
|
||||
async def command_enable_global(self, ctx: commands.Context, *, command: str):
|
||||
"""
|
||||
Enable a command globally.
|
||||
Enable a command globally.
|
||||
|
||||
**Examples:**
|
||||
- `[p]command enable global userinfo` - Enables the `userinfo` command in the Mod cog.
|
||||
@@ -4320,7 +4327,7 @@ class Core(commands.commands._RuleDropper, commands.Cog, CoreLogic):
|
||||
@command_enable.command(name="server", aliases=["guild"])
|
||||
async def command_enable_guild(self, ctx: commands.Context, *, command: str):
|
||||
"""
|
||||
Enable a command in this server.
|
||||
Enable a command in this server.
|
||||
|
||||
**Examples:**
|
||||
- `[p]command enable server userinfo` - Enables the `userinfo` command in the Mod cog.
|
||||
|
||||
Reference in New Issue
Block a user