From f3822cdb3ba53ede812e2b8481525479007a3ea7 Mon Sep 17 00:00:00 2001 From: bobloy Date: Thu, 3 Dec 2020 14:09:58 -0500 Subject: [PATCH] Some small docstrings --- redbot/core/core_commands.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/redbot/core/core_commands.py b/redbot/core/core_commands.py index e62f530f8..8a172cf20 100644 --- a/redbot/core/core_commands.py +++ b/redbot/core/core_commands.py @@ -1198,8 +1198,7 @@ class Core(commands.commands._RuleDropper, commands.Cog, CoreLogic): If public (yes is specified), it will be sent to the chat instead. - Warning: Sending the traceback publicly can accidentally reveal - sensitive information about your computer or configuration. + Warning: Sending the traceback publicly can accidentally reveal sensitive information about your computer or configuration. Examples: - `[p]traceback` - Sends the traceback to your DMs. @@ -1233,6 +1232,8 @@ class Core(commands.commands._RuleDropper, commands.Cog, CoreLogic): """Shows [botname]'s invite url. This will always send the invite to DMs to keep it private. + + This command is locked to the owner unless `[p]inviteset public` is set to True. """ try: await ctx.author.send(await self._invite_url()) @@ -1300,6 +1301,13 @@ class Core(commands.commands._RuleDropper, commands.Cog, CoreLogic): Please note that you might need two factor authentication for\ some permissions. + + Example: + - `[p]inviteset perms 134217728` - Adds a "Manage Nicknames" permission requirement to the invite. + + **Arguments:** + + - `` The permission level to require for the bot in the generated invite. """ await self.bot._config.invite_perm.set(level) await ctx.send("The new permissions level has been set.")