Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ impl RegistrableCommand for MoveCommand {

let mut params = HashMap::new();
params.insert("category".to_string(), category_name.to_string());
params.insert("staff".to_string(), command.user.name.clone());
params.insert("staff".to_string(), command.user.id.to_string());

let response = MessageBuilder::system_message(&ctx, &config)
.translated_content(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ pub async fn move_thread(

let mut params = HashMap::new();
params.insert("category".to_string(), category_name.to_string());
params.insert("staff".to_string(), msg.author.name.clone());
params.insert("staff".to_string(), msg.author.id.to_string());

let confirmation_msg = get_translated_message(
config,
Expand Down
6 changes: 4 additions & 2 deletions rustmail/src/i18n/language/en.rs
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ pub fn load_english_messages(dict: &mut ErrorDictionary) {
);
dict.messages.insert(
"move_thread.success".to_string(),
DictionaryMessage::new("✅ Thread moved to category '{category}' by {staff}")
DictionaryMessage::new("✅ Thread moved to category **{category}** by <@{staff}>")
.with_description("The thread has been successfully moved to the new category"),
);
dict.messages.insert(
Expand Down Expand Up @@ -604,7 +604,9 @@ pub fn load_english_messages(dict: &mut ErrorDictionary) {
);
dict.messages.insert(
"close.auto_canceled_on_message".to_string(),
DictionaryMessage::new("Scheduled closure has been automatically canceled because a message was received."),
DictionaryMessage::new(
"Scheduled closure has been automatically canceled because a message was received.",
),
);
dict.messages.insert(
"close.replacing_existing_closure".to_string(),
Expand Down
6 changes: 4 additions & 2 deletions rustmail/src/i18n/language/fr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ pub fn load_french_messages(dict: &mut ErrorDictionary) {
);
dict.messages.insert(
"move_thread.success".to_string(),
DictionaryMessage::new("✅ Thread déplacé vers la catégorie '{category}' par {staff}")
DictionaryMessage::new("✅ Thread déplacé vers la catégorie **{category}** par <@{staff}>")
.with_description("Le thread a été déplacé avec succès vers la nouvelle catégorie"),
);
dict.messages.insert(
Expand Down Expand Up @@ -632,7 +632,9 @@ pub fn load_french_messages(dict: &mut ErrorDictionary) {
);
dict.messages.insert(
"close.auto_canceled_on_message".to_string(),
DictionaryMessage::new("La fermeture programmée a été automatiquement annulée car un message a été reçu."),
DictionaryMessage::new(
"La fermeture programmée a été automatiquement annulée car un message a été reçu.",
),
);
dict.messages.insert(
"close.replacing_existing_closure".to_string(),
Expand Down