From 27e6f677e83304cb14447eab2a2048e07788367b Mon Sep 17 00:00:00 2001 From: flaree <31554168+flaree@users.noreply.github.com> Date: Wed, 15 Jan 2020 03:15:55 +0000 Subject: [PATCH] [Docs] Modlog Example: action -> action_type (#3368) * action -> action_type * Changelog. --- changelog.d/3368.docs.rst | 1 + docs/framework_modlog.rst | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 changelog.d/3368.docs.rst 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.")