@@ -88,28 +88,30 @@ impl RegistrableCommand for ReleaseCommand {
8888 if thread_name == thread. user_name {
8989 return Err ( ModmailError :: Command ( CommandError :: TicketAlreadyReleased ) ) ;
9090 }
91-
92- rename_channel_with_timeout (
93- & ctx,
94- & config,
95- thread_id,
96- thread. user_name . clone ( ) ,
97- None ,
98- Some ( & command) ,
99- )
100- . await ?;
101-
102- let mut params = std:: collections:: HashMap :: new ( ) ;
103- params. insert ( "staff" . to_string ( ) , format ! ( "<@{}>" , command. user. id) ) ;
104-
105- let response = MessageBuilder :: system_message ( & ctx, & config)
106- . translated_content ( "release.confirmation" , Some ( & params) , None , None )
107- . await
108- . to_channel ( command. channel_id )
109- . build_interaction_message_followup ( )
110- . await ;
111-
112- let _ = command. create_followup ( ctx. clone ( ) , response) . await ;
91+
92+ tokio:: spawn ( async move {
93+ let _ = rename_channel_with_timeout (
94+ & ctx,
95+ & config,
96+ thread_id,
97+ thread. user_name . clone ( ) ,
98+ None ,
99+ Some ( & command) ,
100+ )
101+ . await ;
102+
103+ let mut params = std:: collections:: HashMap :: new ( ) ;
104+ params. insert ( "staff" . to_string ( ) , format ! ( "<@{}>" , command. user. id) ) ;
105+
106+ let response = MessageBuilder :: system_message ( & ctx, & config)
107+ . translated_content ( "release.confirmation" , Some ( & params) , None , None )
108+ . await
109+ . to_channel ( command. channel_id )
110+ . build_interaction_message_followup ( )
111+ . await ;
112+
113+ let _ = command. create_followup ( ctx. clone ( ) , response) . await ;
114+ } ) ;
113115
114116 Ok ( ( ) )
115117 } else {
0 commit comments