Fix short help in docstrings for core cogs and commands (#5502)

* fix part of command description not appearing in the help command.

* Add more

Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com>
This commit is contained in:
GhOsT
2021-12-31 01:31:01 +04:00
committed by GitHub
parent dce2378806
commit 337f58f9fb
5 changed files with 16 additions and 5 deletions

View File

@@ -156,6 +156,7 @@ class Warnings(commands.Cog):
@commands.guild_only()
async def warnchannel(self, ctx: commands.Context, channel: discord.TextChannel = None):
"""Set the channel where warnings should be sent to.
Leave empty to use the channel `[p]warn` command was called in.
"""
guild = ctx.guild
@@ -191,6 +192,7 @@ class Warnings(commands.Cog):
@checks.guildowner_or_permissions(administrator=True)
async def warnaction(self, ctx: commands.Context):
"""Manage automated actions for Warnings.
Actions are essentially command macros. Any command can be run
when the action is initially triggered, and/or when the action
is lifted.
@@ -204,6 +206,7 @@ class Warnings(commands.Cog):
@commands.guild_only()
async def action_add(self, ctx: commands.Context, name: str, points: int):
"""Create an automated action.
Duplicate action names are not allowed.
"""
guild = ctx.guild
@@ -255,6 +258,7 @@ class Warnings(commands.Cog):
@checks.guildowner_or_permissions(administrator=True)
async def warnreason(self, ctx: commands.Context):
"""Manage warning reasons.
Reasons must be given a name, description and points value. The
name of the reason must be given when a user is warned.
"""
@@ -369,6 +373,7 @@ class Warnings(commands.Cog):
reason: str,
):
"""Warn the user for the specified reason.
`<points>` number of points the warning should be for. If no number is supplied
1 point will be given. Pre-set warnings disregard this.
`<reason>` is reason for the warning. This can be a registered reason,