File tree Expand file tree Collapse file tree
rustmail/src/commands/take Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ pub async fn rename_channel_with_timeout(
1515) -> ModmailResult < ( ) > {
1616 let rename_future = channel_id. edit (
1717 & ctx. http ,
18- EditChannel :: new ( ) . name ( format ! ( "🔵-{}" , new_name) ) ,
18+ EditChannel :: new ( ) . name ( new_name. clone ( ) ) ,
1919 ) ;
2020 let timeout = sleep ( Duration :: from_secs ( 2 ) ) ;
2121
@@ -57,7 +57,7 @@ pub async fn rename_channel_with_timeout(
5757 None
5858 } ;
5959
60- if let Err ( e) = channel_id. edit( & ctx. http, EditChannel :: new( ) . name( format! ( "🔵-{}" , new_name) ) ) . await {
60+ if let Err ( e) = channel_id. edit( & ctx. http, EditChannel :: new( ) . name( new_name) ) . await {
6161 return Err ( ModmailError :: Discord ( DiscordError :: ApiError ( e. to_string( ) ) ) ) ;
6262 }
6363
Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ impl RegistrableCommand for TakeCommand {
9393 & ctx,
9494 & config,
9595 thread_id,
96- command. user . name . clone ( ) ,
96+ format ! ( "🔵-{}" , command. user. name. clone( ) ) ,
9797 None ,
9898 Some ( & command) ,
9999 )
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ pub async fn take(
4444 & ctx,
4545 config,
4646 thread_id,
47- msg. author . name . clone ( ) ,
47+ format ! ( "🔵-{}" , msg. author. name. clone( ) ) ,
4848 Some ( & msg) ,
4949 None ,
5050 )
You can’t perform that action at this time.
0 commit comments