@@ -17,20 +17,21 @@ const EXECUTE_RES: ExecuteResponse = ExecuteResponse {
1717 prefix_command,
1818 slash_command,
1919 rename = "run" ,
20- subcommands( "run_gist" , "run_file" )
20+ subcommands( "run_gist" , "run_file" ) ,
21+ category = "cargo" ,
22+ broadcast_typing
2123) ]
2224pub async fn run_code_block ( ctx : Context < ' _ > , #[ rest] input : String ) -> Result < ( ) , Error > {
2325 super :: code_block ( ctx, & input, parse_run_command, EXECUTE_RES , "run" ) . await
2426}
2527
26- /// Runs code from a code block in the Rust playground and returns the output
27- #[ poise:: command( prefix_command, rename = "run" ) ]
28- pub async fn run_alias ( ctx : Context < ' _ > , #[ rest] input : String ) -> Result < ( ) , Error > {
29- super :: code_block ( ctx, & input, parse_run_command, EXECUTE_RES , "run" ) . await
30- }
31-
3228/// Runs code from a Github gist
33- #[ poise:: command( slash_command, rename = "gist" , member_cooldown = 60 ) ]
29+ #[ poise:: command(
30+ slash_command,
31+ rename = "gist" ,
32+ member_cooldown = 60 ,
33+ category = "cargo"
34+ ) ]
3435#[ allow( clippy:: too_many_arguments) ]
3536async fn run_gist (
3637 ctx : Context < ' _ > ,
@@ -58,7 +59,12 @@ async fn run_gist(
5859}
5960
6061/// Runs code from a Rust source file upload
61- #[ poise:: command( slash_command, rename = "file" , member_cooldown = 60 ) ]
62+ #[ poise:: command(
63+ slash_command,
64+ rename = "file" ,
65+ member_cooldown = 60 ,
66+ category = "cargo"
67+ ) ]
6268#[ allow( clippy:: too_many_arguments) ]
6369async fn run_file (
6470 ctx : Context < ' _ > ,
0 commit comments