fix: Avoid using locale.language_string

Fixes an issue where this is not a valid attribute for some
interactions.
This commit is contained in:
2026-07-22 17:13:13 +03:00
parent c9b6ce8f60
commit 8818263d88
+1 -1
View File
@@ -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)