diff --git a/changelog.d/3368.docs.rst b/changelog.d/3368.docs.rst new file mode 100644 index 000000000..d1f384e9b --- /dev/null +++ b/changelog.d/3368.docs.rst @@ -0,0 +1 @@ +Update modlog documentation example to show "action_type" instead of "action". \ No newline at end of file diff --git a/docs/framework_modlog.rst b/docs/framework_modlog.rst index 18a9cf453..39d1b7b48 100644 --- a/docs/framework_modlog.rst +++ b/docs/framework_modlog.rst @@ -25,7 +25,7 @@ Basic Usage async def ban(self, ctx, user: discord.Member, reason: str = None): await ctx.guild.ban(user) case = await modlog.create_case( - ctx.bot, ctx.guild, ctx.message.created_at, action="ban", + ctx.bot, ctx.guild, ctx.message.created_at, action_type="ban", user=user, moderator=ctx.author, reason=reason ) await ctx.send("Done. It was about time.")