[Docs] Modlog Example: action -> action_type (#3368)

* action -> action_type

* Changelog.
This commit is contained in:
flaree 2020-01-15 03:15:55 +00:00 committed by Michael H
parent d8199201a5
commit 27e6f677e8
2 changed files with 2 additions and 1 deletions

View File

@ -0,0 +1 @@
Update modlog documentation example to show "action_type" instead of "action".

View File

@ -25,7 +25,7 @@ Basic Usage
async def ban(self, ctx, user: discord.Member, reason: str = None): async def ban(self, ctx, user: discord.Member, reason: str = None):
await ctx.guild.ban(user) await ctx.guild.ban(user)
case = await modlog.create_case( 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 user=user, moderator=ctx.author, reason=reason
) )
await ctx.send("Done. It was about time.") await ctx.send("Done. It was about time.")