From 998c1d7466f3a967bd3cc116e5ab8f2a806d792c Mon Sep 17 00:00:00 2001 From: ZRunner Date: Sat, 30 Dec 2023 19:06:45 +0100 Subject: [PATCH] feat(roles-react): add missing cmd translations --- fcts/roles_react.py | 4 ++++ lang/commands/en.json | 17 +++++++++++++++++ lang/commands/fr.json | 17 +++++++++++++++++ 3 files changed, 38 insertions(+) diff --git a/fcts/roles_react.py b/fcts/roles_react.py index 7e34c8e84..5d19f2263 100644 --- a/fcts/roles_react.py +++ b/fcts/roles_react.py @@ -357,6 +357,10 @@ async def rr_set_description(self, ctx: MyContext, emoji: DiscordOrUnicodeEmoji, role=role_mention)) @rr_main.command(name='update') + @app_commands.describe( + embed="A link to the message you want to update", + change_description="Update the embed content (default: True)", + emojis="A list of emojis to include (default: all)") @commands.check(checks.database_connected) async def rr_update(self, ctx: MyContext, embed: discord.Message, change_description: bool = True, emojis: commands.Greedy[DiscordOrUnicodeEmoji] = None): diff --git a/lang/commands/en.json b/lang/commands/en.json index 0220373fd..ad013da7d 100644 --- a/lang/commands/en.json +++ b/lang/commands/en.json @@ -263,6 +263,23 @@ "url": "url", "type": "feed-type" }, + "roles-react add": { + "emoji": "emoji", + "role": "role", + "description": "description" + }, + "roles-react remove": { + "emoji": "emoji" + }, + "roles-react set-description": { + "emoji": "emoji", + "description": "description" + }, + "roles-react update": { + "embed": "embed", + "change_description": "change-description", + "emojis": "emojis" + }, "rss add": { "link": "link" }, diff --git a/lang/commands/fr.json b/lang/commands/fr.json index 382ff129b..0aedcdb9d 100644 --- a/lang/commands/fr.json +++ b/lang/commands/fr.json @@ -260,6 +260,23 @@ "url": "url", "type": "type-de-flux" }, + "roles-react add": { + "emoji": "émoji", + "role": "rôle", + "description": "description" + }, + "roles-react remove": { + "emoji": "émoji" + }, + "roles-react set-description": { + "emoji": "émoji", + "description": "description" + }, + "roles-react update": { + "embed": "embed", + "change_description": "modifier-description", + "emojis": "émojis" + }, "rss add": { "link": "lien" },