fix: Avoid using locale.language_string
Fixes an issue where this is not a valid attribute for some interactions.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user