Skip to content

Commit 8d7cd21

Browse files
committed
fix(command): fixed too lond description for recover command
1 parent 70b4880 commit 8d7cd21

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

src/handlers/ready_handler.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ impl EventHandler for ReadyHandler {
5353

5454
let guild_id = GuildId::new(self.config.bot.get_staff_guild_id());
5555

56-
let _ = guild_id
56+
if let Err(e) = guild_id
5757
.set_commands(
5858
&ctx.http,
5959
vec![
@@ -72,6 +72,9 @@ impl EventHandler for ReadyHandler {
7272
help::register(&self.config).await,
7373
],
7474
)
75-
.await;
75+
.await
76+
{
77+
eprintln!("set_commands() failed: {:?}", e);
78+
}
7679
}
7780
}

src/i18n/language/fr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -724,7 +724,7 @@ pub fn load_french_messages(dict: &mut ErrorDictionary) {
724724
);
725725
dict.messages.insert(
726726
"slash_command.recover_command_description".to_string(),
727-
DictionaryMessage::new("Récupérer les messages manqués pendant la période d'indisponibilité du bot (Ce processus est automatique)"),
727+
DictionaryMessage::new("Récupérer les messages manqués pendant la période d'indisponibilité du bot (automatique)"),
728728
);
729729
dict.messages.insert(
730730
"slash_command.help_command_description".to_string(),

0 commit comments

Comments
 (0)