feat: add four skeletons of commands

This commit is contained in:
2026-03-24 01:49:01 -04:00
parent df6056d549
commit 30c4761fe0
4 changed files with 81 additions and 1 deletions

24
src/command/join.rs Normal file
View 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 = "join";
const DESCRIPTION: &str = "The bot will join the same VC as you (with intention to record)";
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!();
}