feat: fix the command handler to reveal more data about the interaction

This commit is contained in:
2026-03-27 01:35:29 -04:00
parent d9e0801ec9
commit 3439bf9699
8 changed files with 70 additions and 55 deletions

View File

@@ -2,7 +2,7 @@ use std::sync::LazyLock;
use twilight_model::application::{
command::{Command, CommandType},
interaction::application_command::CommandData,
interaction::Interaction,
};
use twilight_util::builder::command::CommandBuilder;
@@ -19,6 +19,6 @@ pub static COMMAND: LazyLock<Command> = LazyLock::new(|| {
});
#[tracing::instrument]
pub async fn handle(state: State, data: CommandData) {
pub async fn handle(state: State, interaction: Interaction) {
todo!();
}