Answer the question
In order to leave comments, you need to log in
How to change the language within the command to Russian?
Hello, I am writing a bot for the reporting system, when activated, the bot sends the following embed:
emb1 = discord.Embed(title = "Інформаційне табло", description = 'Це табло надає інформацію про автора тікета', colour = 0xFF8C00)
emb1.add_field(name = 'Користувач', value = f'{member.mention}')
emb1.add_field(name = 'ID', value = f'{member.id}')
emb1.add_field(name = 'Ролі', value = " ".join([role.mention for role in roles]), inline = False)
emb1.add_field(name = 'Приєднався', value = f'{member.joined_at.strftime("%a, %#d %B %Y, %I:%M")}')
emb1.add_field(name = 'Дата створення', value = f'{member.created_at.strftime("%a, %#d %B %Y, %I:%M")}')
emb1.set_thumbnail(url = f'{member.avatar_url}')
emb1.set_footer(icon_url = f'{member.avatar_url}', text = f'{member}')
await channel.send(
embed = emb1,
components = [
Button(style = ButtonStyle.gray, label = 'Закрити', emoji = '⛔')
]
)
Answer the question
In order to leave comments, you need to log in
As for the time, they ask here with enviable regularity, you need to set the Russian locale. For example How can I change the language of created_at.strftime?
Regarding the locale of system notifications - in the settings of a specific server. The bot has no effect on this.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question