mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 03:08:55 -05:00
[Docs] Modlog Example: action -> action_type (#3368)
* action -> action_type * Changelog.
This commit is contained in:
parent
d8199201a5
commit
27e6f677e8
1
changelog.d/3368.docs.rst
Normal file
1
changelog.d/3368.docs.rst
Normal file
@ -0,0 +1 @@
|
||||
Update modlog documentation example to show "action_type" instead of "action".
|
||||
@ -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.")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user