Skip to content

Commit 86c09e7

Browse files
authored
feat(custom_msg): Add docstring help messages
1 parent 8192430 commit 86c09e7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

custom_msg/custom_msg.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ async def msg_cmd(self, ctx: commands.Context):
1616

1717
@msg_cmd.command(name="create", aliases=["send"]) # type: ignore
1818
async def msg_create(self, ctx: commands.GuildContext, specified_channel: Optional[discord.TextChannel] = None):
19+
"""Create a new message"""
1920
channel = ctx.channel
2021
if specified_channel is not None:
2122
channel = specified_channel
@@ -40,6 +41,7 @@ async def msg_create(self, ctx: commands.GuildContext, specified_channel: Option
4041
@msg_cmd.command(name="edit") # type: ignore
4142
async def msg_edit(self, ctx: commands.Context, message: discord.Message):
4243
"""Edit a message sent by this cog
44+
4345
It's best to use a message link when specifying which message to edit.
4446
Providing a message ID is likely to fail for older messages, as they won't be in cache.
4547
"""
@@ -70,3 +72,4 @@ async def msg_edit(self, ctx: commands.Context, message: discord.Message):
7072

7173
await message.edit(**payload)
7274
await ctx.send("Message edited.")
75+

0 commit comments

Comments
 (0)