feat: initial commit
Some checks failed
Release / release (push) Failing after 22s

This commit is contained in:
lucasdpt
2025-11-02 21:02:40 +01:00
commit d094e9c321
9 changed files with 320 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
package fr.lucasdupont.gaytabot.command
import net.dv8tion.jda.api.events.interaction.command.SlashCommandInteractionEvent
import net.dv8tion.jda.api.interactions.commands.DefaultMemberPermissions
import net.dv8tion.jda.api.interactions.commands.build.OptionData
import net.dv8tion.jda.api.interactions.commands.build.SubcommandData
interface Command {
val name: String
val description: String
val options: List<OptionData>
get() = emptyList()
val neededPermissions: DefaultMemberPermissions?
get() = null
val subcommands: List<Command>
get() = emptyList()
val subcommandGroups: List<SubCommandGroup>
get() = emptyList()
@Throws(Exception::class)
fun execute(event: SlashCommandInteractionEvent)
fun toSubcommandData(): SubcommandData =
SubcommandData(name, description).addOptions(options)
}