File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -355,6 +355,7 @@ impl RegistrableCommand for CloseCommand {
355355 let panel_url = format ! ( "{}/panel/tickets/{}" , base_url, thread. id) ;
356356
357357 let mut params = HashMap :: new ( ) ;
358+ params. insert ( "staff" . to_string ( ) , command. user . id . to_string ( ) ) ;
358359 params. insert ( "username" . to_string ( ) , thread. user_name . clone ( ) ) ;
359360 params. insert ( "user_id" . to_string ( ) , thread. user_id . to_string ( ) ) ;
360361 params. insert ( "panel_url" . to_string ( ) , panel_url) ;
Original file line number Diff line number Diff line change @@ -295,6 +295,7 @@ pub async fn close(
295295 let panel_url = format ! ( "{}/panel/tickets/{}" , base_url, thread. id) ;
296296
297297 let mut params = HashMap :: new ( ) ;
298+ params. insert ( "staff" . to_string ( ) , msg. author . id . to_string ( ) ) ;
298299 params. insert ( "username" . to_string ( ) , thread. user_name . clone ( ) ) ;
299300 params. insert ( "user_id" . to_string ( ) , thread. user_id . to_string ( ) ) ;
300301 params. insert ( "panel_url" . to_string ( ) , panel_url) ;
Original file line number Diff line number Diff line change @@ -640,7 +640,7 @@ pub fn load_english_messages(dict: &mut ErrorDictionary) {
640640 ) ;
641641 dict. messages . insert (
642642 "logs.ticket_closed" . to_string ( ) ,
643- DictionaryMessage :: new ( "Ticket closed for user **{username}** (ID: {user_id})\n [View log on panel]({panel_url})" ) ,
643+ DictionaryMessage :: new ( "Ticket closed by <@{staff}> for user **{username}** (ID: {user_id})\n [View log on panel]({panel_url})" ) ,
644644 ) ;
645645 dict. messages . insert (
646646 "feature.not_implemented" . to_string ( ) ,
Original file line number Diff line number Diff line change @@ -662,7 +662,7 @@ pub fn load_french_messages(dict: &mut ErrorDictionary) {
662662 ) ;
663663 dict. messages . insert (
664664 "logs.ticket_closed" . to_string ( ) ,
665- DictionaryMessage :: new ( "Ticket fermé pour l'utilisateur **{username}** (ID: {user_id})\n [Voir le log sur le panel]({panel_url})" ) ,
665+ DictionaryMessage :: new ( "Ticket fermé par <@{staff}> pour l'utilisateur **{username}** (ID: {user_id})\n [Voir le log sur le panel]({panel_url})" ) ,
666666 ) ;
667667 dict. messages . insert (
668668 "feature.not_implemented" . to_string ( ) ,
You can’t perform that action at this time.
0 commit comments