Slash commands are cool
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
382B

  1. use crate::discord;
  2. // fn foo() -> (definition, private?)
  3. pub fn hello_world() -> (discord::ApplicationCommand, Option<String>) {
  4. (discord::ApplicationCommand {
  5. id: None,
  6. application_id: None,
  7. name: "hello-world".to_string(),
  8. description: "Hello World".to_string(),
  9. options: None,
  10. }, None)//Some("616329232389505055".to_string()))
  11. }