fix(moderation): fixed blacklist autocomplete

This commit is contained in:
Seaswimmer 2023-12-16 21:19:40 -05:00
parent d65cb8a2a8
commit b270e1724d
Signed by untrusted user: cswimr
GPG key ID: 1EBC234EEDA901AE

View file

@ -678,7 +678,7 @@ class Moderation(commands.Cog):
return [] return []
@app_commands.command(name="blacklist") @app_commands.command(name="blacklist")
@app_commands.autocomplete(blacklist_autocomplete) @app_commands.autocomplete(role=blacklist_autocomplete)
async def blacklist(self, interaction: discord.Interaction, target: discord.Member, role: str, reason: str, silent: bool = None): async def blacklist(self, interaction: discord.Interaction, target: discord.Member, role: str, reason: str, silent: bool = None):
"""Add a blacklist role to a user. """Add a blacklist role to a user.