tux.cogs.moderation.report ¶
Classes:
| Name | Description |
|---|---|
Report | |
Classes¶
Report(bot: Tux) ¶
Bases: Cog
Methods:
| Name | Description |
|---|---|
report | Report a user or issue anonymously |
Source code in tux/cogs/moderation/report.py
Functions¶
report(interaction: discord.Interaction) -> None async ¶
Report a user or issue anonymously
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
interaction | Interaction | The interaction that triggered the command. | required |
Source code in tux/cogs/moderation/report.py
Python
@app_commands.command(name="report")
@app_commands.guild_only()
async def report(self, interaction: discord.Interaction) -> None:
"""
Report a user or issue anonymously
Parameters
----------
interaction : discord.Interaction
The interaction that triggered the command.
"""
modal = ReportModal(bot=self.bot)
await interaction.response.send_modal(modal)