From 82d07eac3de760d898dc5c3d42ca595445cf4c29 Mon Sep 17 00:00:00 2001 From: esefxdz Date: Thu, 23 Jul 2026 23:47:23 +0300 Subject: [PATCH] remove dead country_autocomplete function from tz_data --- cogs/tz_data.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/cogs/tz_data.py b/cogs/tz_data.py index 185f1d4..e888717 100644 --- a/cogs/tz_data.py +++ b/cogs/tz_data.py @@ -168,17 +168,3 @@ def find_offset(country: str) -> float | None: return offset return None - -async def country_autocomplete( - _interaction, - current: str, -) -> list: - """Return matching countries for slash-command autocomplete.""" - from discord import app_commands - current = current.lower() - matches = [ - app_commands.Choice(name=c, value=c) - for c in sorted(COUNTRY_TZ) - if current in c.lower() - ] - return matches[:25] # Discord limits to 25 suggestions