Skip to content

Commit

Permalink
style
Browse files Browse the repository at this point in the history
  • Loading branch information
TrustyJAID committed May 6, 2024
1 parent 324f23d commit 12ed3b4
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions redbot/core/tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,11 +342,13 @@ async def interaction_check(self, interaction: discord.Interaction):
if interaction.guild:
if not (await self.client.ignored_channel_or_guild(interaction)):
if interaction.type is discord.InteractionType.autocomplete:
await interaction.response.autocomplete([
discord.app_commands.Choice(
name=_("This channel or server is ignored."), value="None"
)
])
await interaction.response.autocomplete(
[
discord.app_commands.Choice(
name=_("This channel or server is ignored."), value="None"
)
]
)
return False
await interaction.response.send_message(
"This channel or server is ignored.", ephemeral=True
Expand Down

0 comments on commit 12ed3b4

Please sign in to comment.