Version 0.2.0-alpha - Ajout du Player

This commit is contained in:
2025-02-25 16:39:18 +01:00
parent b054c8a316
commit 6f3847138b
19 changed files with 5175 additions and 12 deletions

View File

@@ -53,10 +53,18 @@ class Command {
})
SlashCommand.addStringOption(option => option.setName(SelOption.name).setDescription(SelOption.description).setRequired(SelOption.required).addChoices(choices))
}
if(SelOption.type === "FILE") {
SlashCommand.addAttachmentOption(option => option.setName(SelOption.name).setDescription(SelOption.description).setRequired(SelOption.required))
}
})
}
/**
* @type {SlashCommandBuilder}
* @param {Client} client
* @param {Interaction} interaction
*/
this.data = {data: SlashCommand, async execute(client, interaction) {callback(client, interaction)}}
}