clean dossier commands et correction quelque commands

This commit is contained in:
Puechberty Arthur
2026-04-10 02:40:26 +02:00
parent 3e69185296
commit 572cfa17b2
139 changed files with 687 additions and 195 deletions
+31
View File
@@ -0,0 +1,31 @@
use serenity::model::prelude::*;
use serenity::prelude::*;
use crate::commands::advanced_tools;
pub async fn handle_create(ctx: &Context, msg: &Message, args: &[&str]) {
advanced_tools::handle_create(ctx, msg, args).await;
}
pub struct CreateCommand;
pub static COMMAND_DESCRIPTOR: CreateCommand = CreateCommand;
impl crate::commands::command_contract::CommandSpec for CreateCommand {
fn metadata(&self) -> crate::commands::command_contract::CommandMetadata {
crate::commands::command_contract::CommandMetadata {
key: "create",
command: "create",
category: "admin",
params: "[emoji/url] [nom]",
summary: "Cree un emoji custom",
description: "Cree un emoji custom a partir d'une image, d'un lien ou d'un emoji nitro.",
examples: &[
"+create <:blob:123456789012345678> blobcopy",
"+create https://... logo",
],
alias_source_key: "create",
default_aliases: &["mkemoji", "ce"],
default_permission: 8,
}
}
}