File tree 1 file changed +9
-4
lines changed
1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -279,14 +279,19 @@ await NotificationEmbed(
279
279
}
280
280
281
281
[ SlashCommand ( "retry-deployment" , "This command will skip the hot update build and retry the deployment." ) ]
282
- public Task RetryDeployment ( string projectName )
282
+ public async Task RetryDeployment ( string projectName )
283
283
{
284
- if ( ! UnityEditorService . Instance . TryGetProject ( projectName , out var project ) )
285
- return RespondAsync ( $ "Project **{ projectName } ** not found!") ;
284
+ if ( ! UnityEditorService . Instance . TryGetProject ( projectName , out var project ) )
285
+ {
286
+ await RespondAsync ( $ "Project **{ projectName } ** not found!") ;
287
+ return ;
288
+ }
286
289
287
290
UnityEditorService . Instance . ExecuteDeploymentAction ( project ) ;
288
291
289
- return RespondAsync ( $ "Deployment for { projectName } started.") ;
292
+ await Task . Delay ( TimeSpan . FromSeconds ( 3 ) ) ;
293
+
294
+ await RespondAsync ( $ "Deployment for { projectName } started.") ;
290
295
}
291
296
#endregion
292
297
You can’t perform that action at this time.
0 commit comments