remove dead country_autocomplete function from tz_data

This commit is contained in:
esef committed 2026-07-23 23:47:23 +03:00
1 parent b51967dc9b
commit 82d07eac3d
1 file changed
-14
-14
View File
@@ -168,17 +168,3 @@ def find_offset(country: str) -> float | None:
return offset return offset
return None 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