Skip to content

Commit 8192430

Browse files
authored
Merge pull request #354 from rHomelab/feat/custom_msg
2 parents 3c08cf3 + 23a09c6 commit 8192430

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

custom_msg/custom_msg.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@ async def msg_create(self, ctx: commands.GuildContext, specified_channel: Option
3939

4040
@msg_cmd.command(name="edit") # type: ignore
4141
async def msg_edit(self, ctx: commands.Context, message: discord.Message):
42+
"""Edit a message sent by this cog
43+
It's best to use a message link when specifying which message to edit.
44+
Providing a message ID is likely to fail for older messages, as they won't be in cache.
45+
"""
46+
4247
if message.author != ctx.me:
4348
return await ctx.send("You must specify a message that was sent by the bot.")
4449

0 commit comments

Comments
 (0)