Some small docstrings

This commit is contained in:
bobloy
2020-12-03 14:09:58 -05:00
parent 64d851446d
commit f3822cdb3b

View File

@@ -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. If public (yes is specified), it will be sent to the chat instead.
Warning: Sending the traceback publicly can accidentally reveal Warning: Sending the traceback publicly can accidentally reveal sensitive information about your computer or configuration.
sensitive information about your computer or configuration.
Examples: Examples:
- `[p]traceback` - Sends the traceback to your DMs. - `[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. """Shows [botname]'s invite url.
This will always send the invite to DMs to keep it private. 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: try:
await ctx.author.send(await self._invite_url()) 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\ Please note that you might need two factor authentication for\
some permissions. some permissions.
Example:
- `[p]inviteset perms 134217728` - Adds a "Manage Nicknames" permission requirement to the invite.
**Arguments:**
- `<level>` The permission level to require for the bot in the generated invite.
""" """
await self.bot._config.invite_perm.set(level) await self.bot._config.invite_perm.set(level)
await ctx.send("The new permissions level has been set.") await ctx.send("The new permissions level has been set.")