mirror of
https://github.com/arthur-pbty/shadowbot.git
synced 2026-06-07 14:55:33 +02:00
clean dossier commands et correction quelque commands
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
use serenity::model::prelude::*;
|
||||
use serenity::prelude::*;
|
||||
|
||||
use crate::commands::{advanced_tools, help, mp, perms_service, suggestion, tempvoc, ticket};
|
||||
use crate::commands::{
|
||||
advanced_tools, help, helpsetting, mp, perms_service, suggestion, tempvoc, ticket,
|
||||
};
|
||||
|
||||
pub async fn handle_interaction_create(ctx: &Context, interaction: &Interaction) {
|
||||
if let Interaction::Command(_) = interaction {
|
||||
@@ -27,6 +29,10 @@ pub async fn handle_interaction_create(ctx: &Context, interaction: &Interaction)
|
||||
return;
|
||||
}
|
||||
|
||||
if helpsetting::handle_component_interaction(ctx, component).await {
|
||||
return;
|
||||
}
|
||||
|
||||
if mp::handle_mp_component(ctx, component).await {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user