misc(moderation): added docstring for inline argument
Some checks failed
Pylint / Pylint (3.10) (push) Failing after 53s

This commit is contained in:
Seaswimmer 2023-12-14 17:02:51 -05:00
parent 24f933f6f6
commit 47d359718c
Signed by: cswimr
GPG key ID: 1EBC234EEDA901AE

View file

@ -822,7 +822,7 @@ class Moderation(commands.Cog):
await self.log(interaction, moderation_id) await self.log(interaction, moderation_id)
@app_commands.command(name="history") @app_commands.command(name="history")
async def history(self, interaction: discord.Interaction, target: discord.User = None, moderator: discord.User = None, pagesize: app_commands.Range[int, 1, 25] = 5, page: int = 1, ephemeral: bool = False, export: bool = False, inline: bool = False): async def history(self, interaction: discord.Interaction, target: discord.User = None, moderator: discord.User = None, pagesize: app_commands.Range[int, 1, 25] = 5, page: int = 1, ephemeral: bool = False, inline: bool = False, export: bool = False):
"""List previous infractions. """List previous infractions.
Parameters Parameters
@ -837,6 +837,8 @@ class Moderation(commands.Cog):
Page to select Page to select
ephemeral: bool ephemeral: bool
Hide the command response Hide the command response
inline: bool
Display infractions in a grid arrangement (does not look very good)
export: bool export: bool
Exports the server's entire moderation history to a JSON file""" Exports the server's entire moderation history to a JSON file"""
await interaction.response.defer(ephemeral=ephemeral) await interaction.response.defer(ephemeral=ephemeral)