diff --git a/custom_msg/custom_msg.py b/custom_msg/custom_msg.py index e25dc1d9..54734b1d 100644 --- a/custom_msg/custom_msg.py +++ b/custom_msg/custom_msg.py @@ -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.")