edgelord icon indicating copy to clipboard operation
edgelord copied to clipboard

🚧Command Framework

Open sizumita opened this issue 2 years ago • 1 comments

Structure


fn descriptions() -> HashMap<&'static str, String> {
    HashMap::from([
        ("ja", "ヘルプコマンド".to_string())
    ])
}

#[command(name = "help")]
#[command(description = "help command")]
#[command(i18n_descriptions = descriptions)]
async fn help_command(ctx: &Context) -> Result<Response> {
    ctx.send_message("This is help message.")
}

Tasks

  • [x] macros
    • [x] name
    • [x] description
    • [x] i18n
    • [x] guild_id
    • [x] permission
    • [x] option type converter
    • [x] option choices
    • [x] option parameters
    • [x] subcommand
  • [x] interaction handler
  • [ ] command validator
  • [ ] document

sizumita avatar May 15 '22 14:05 sizumita

I will improve http endpoints

sizumita avatar Jun 28 '22 03:06 sizumita