edgelord
edgelord copied to clipboard
🚧Command Framework
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
I will improve http endpoints