Added translation for user remove command

This commit is contained in:
Nick Jungmann 2022-12-11 14:25:47 +01:00
parent b6f2ed464f
commit 701fa21c64
2 changed files with 5 additions and 3 deletions

View File

@ -183,6 +183,10 @@
"set": {
"xp": "{} hat nun {} xp"
},
"remove": {
"xp": "Die {} von {} wurden entfernt",
"ontime": "Die {} von {} wurden entfernt"
},
"error": {
"atr_not_found": "Das Attribut {} konnte nicht gefunden werden :(",
"value_type": "Der angegebende Wert konnte nicht für das Attribut interpretiert werden :("

View File

@ -221,14 +221,12 @@ class UserGroup(DiscordCommandABC):
return
case other:
# ToDo: Move atr_not_found
await self._message_service.send_interaction_msg(ctx.interaction, self._t.transform('modules.base.user.error.atr_not_found').format(atr))
return
# ToDo: Add text for it
await self._message_service.send_interaction_msg(
ctx.interaction,
self._t.transform(f'modules.base.user.remove.{atr}').format(member.mention, value)
self._t.transform(f'modules.base.user.remove.{atr}').format(value, member.mention)
)
@remove.autocomplete('atr')