Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions custom_msg/custom_msg.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ async def msg_create(self, ctx: commands.GuildContext, specified_channel: Option

@msg_cmd.command(name="edit") # type: ignore
async def msg_edit(self, ctx: commands.Context, message: discord.Message):
"""Edit a message sent by this cog
It's best to use a message link when specifying which message to edit.
Providing a message ID is likely to fail for older messages, as they won't be in cache.
"""

if message.author != ctx.me:
return await ctx.send("You must specify a message that was sent by the bot.")

Expand Down
Loading