Footer for command embeds doesn't update depending on configured guild language
rasmusgerdin opened this issue · 0 comments
Describe the bug
The string for "Requested by X" footer field doesn't update depending on the configured guild language, instead only displaying in the default one (en-US
).
To Reproduce
Steps to reproduce the behavior:
- Run any command that generates an embed.
Expected behavior
The footer field should be localized to the guild's configured language.
Screenshots
Guild language set to en-US
:
Additional context
The relevant line of code.
This should likely be done in a similar fashion to how we fetch language strings in listeners instead, example shown below. The async
modifier is however not valid for a constructor declaration, meaning we can't await
anything, so we need to pass the string to the embed in another way.
rtbyte/src/listeners/guilds/channels/channelCreateLog.ts
Lines 19 to 20 in 3249f09