From 8818263d88c7f75c4f817b77ab6f6bf2584128a1 Mon Sep 17 00:00:00 2001 From: Interitio Date: Wed, 22 Jul 2026 17:13:13 +0300 Subject: [PATCH] fix: Avoid using locale.language_string Fixes an issue where this is not a valid attribute for some interactions. --- profiles/discord/cog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/profiles/discord/cog.py b/profiles/discord/cog.py index dd8ab7b..6536100 100644 --- a/profiles/discord/cog.py +++ b/profiles/discord/cog.py @@ -56,7 +56,7 @@ class ProfilesCog(LionCog): } if interaction: if interaction.locale: - args['locale_hint'] = interaction.locale.language_code + args['locale_hint'] = str(interaction.locale) if user.avatar: args['avatar'] = user.avatar.url profile = await UserProfile.create(**args)