Merge pull request 'chore-cc-update' (#2) from chore-cc-update into main
All checks were successful
Build Docker Image / build (push) Successful in 1m29s

Reviewed-on: #2
This commit is contained in:
cal 2026-02-06 02:46:46 +00:00
commit e0af40804d
2 changed files with 5 additions and 4 deletions

View File

@ -44,7 +44,7 @@ class CustomCommandsCommands(commands.Cog):
@logged_command("/cc")
async def execute_custom_command(self, interaction: discord.Interaction, name: str):
"""Execute a custom command."""
await interaction.response.defer(ephemeral=True)
await interaction.response.defer(ephemeral=False)
try:
# Execute the command and get response

View File

@ -31,12 +31,13 @@ async def player_name_autocomplete(
return []
try:
# Use the dedicated search endpoint to get matching players across ALL seasons
# Use the dedicated search endpoint to get matching players
# Search current season only for performance (all_seasons=True takes 15+ seconds)
# Results are ordered by most recent season first
players = await player_service.search_players(
current,
limit=50,
all_seasons=True, # Fetch more to ensure 25 unique names
limit=30,
all_seasons=False, # Current season only to stay under 3-second timeout
)
# Deduplicate by player name, keeping only the first (most recent) occurrence