feat: add four skeletons of commands
This commit is contained in:
24
src/command/opt_out.rs
Normal file
24
src/command/opt_out.rs
Normal file
@@ -0,0 +1,24 @@
|
||||
use std::sync::LazyLock;
|
||||
|
||||
use twilight_model::application::{
|
||||
command::{Command, CommandType},
|
||||
interaction::application_command::CommandData,
|
||||
};
|
||||
use twilight_util::builder::command::CommandBuilder;
|
||||
|
||||
use crate::command::State;
|
||||
|
||||
const NAME: &str = "opt-out";
|
||||
const DESCRIPTION: &str = "Opt out of being recorded (duration option TODO)";
|
||||
|
||||
pub static COMMAND: LazyLock<Command> = LazyLock::new(|| {
|
||||
CommandBuilder::new(NAME, DESCRIPTION, CommandType::ChatInput)
|
||||
.validate()
|
||||
.expect("command wasn't correct")
|
||||
.build()
|
||||
});
|
||||
|
||||
#[tracing::instrument]
|
||||
pub async fn handle(state: State, data: CommandData) {
|
||||
todo!();
|
||||
}
|
||||
Reference in New Issue
Block a user