feat: ajout des commandes rolemenu et slowmode avec gestion des interactions

This commit is contained in:
Puechberty Arthur
2026-04-10 07:11:14 +02:00
parent b6d8953c46
commit 82e6ed1ca6
6 changed files with 752 additions and 3 deletions
+10 -1
View File
@@ -2,7 +2,8 @@ use serenity::model::prelude::*;
use serenity::prelude::*;
use crate::commands::{
advanced_tools, boostembed, help, helpsetting, mp, perms_service, suggestion, tempvoc, ticket,
advanced_tools, boostembed, help, helpsetting, mp, perms_service, rolemenu, suggestion,
tempvoc, ticket,
};
pub async fn handle_interaction_create(ctx: &Context, interaction: &Interaction) {
@@ -29,6 +30,10 @@ pub async fn handle_interaction_create(ctx: &Context, interaction: &Interaction)
return;
}
if rolemenu::handle_component_interaction(ctx, component).await {
return;
}
if help::handle_help_component(ctx, component).await {
return;
}
@@ -66,6 +71,10 @@ pub async fn handle_interaction_create(ctx: &Context, interaction: &Interaction)
return;
}
if rolemenu::handle_modal_interaction(ctx, modal).await {
return;
}
let _ = advanced_tools::handle_modal_interaction(ctx, modal).await;
}
}