Skip to content

Commit 5ed2b31

Browse files
committed
fix: localise slash command choice in autocomplete
1 parent f24a1ad commit 5ed2b31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interactions/models/internal/context.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -896,7 +896,7 @@ async def send(
896896
name = choice["name"]
897897
value = choice["value"]
898898
elif isinstance(choice, SlashCommandChoice):
899-
name = choice.name
899+
name = choice.name.get_locale(self.locale)
900900
value = choice.value
901901
else:
902902
name = str(choice)

0 commit comments

Comments
 (0)