From 996a72820376fe3388c124115c34342f7615037c Mon Sep 17 00:00:00 2001 From: Project_IO Date: Sun, 8 Sep 2024 01:46:29 +0900 Subject: [PATCH] fix: remove command adaptor --- .../net/wh64/p/x32/SlashCommandExecutor.kt | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/px32-bot-core/src/main/kotlin/net/wh64/p/x32/SlashCommandExecutor.kt b/px32-bot-core/src/main/kotlin/net/wh64/p/x32/SlashCommandExecutor.kt index 8139280..a525d7d 100644 --- a/px32-bot-core/src/main/kotlin/net/wh64/p/x32/SlashCommandExecutor.kt +++ b/px32-bot-core/src/main/kotlin/net/wh64/p/x32/SlashCommandExecutor.kt @@ -19,21 +19,3 @@ interface MessageContextExecutor { val data: CommandData fun execute(ev: MessageContextInteractionEvent) } - -abstract class CommandAdapter : SlashCommandExecutor, UserContextExecutor, MessageContextExecutor { - abstract override val data: CommandData - - override fun execute(ev: SlashCommandInteractionEvent) { - executor(ev) - } - - override fun execute(ev: UserContextInteractionEvent) { - executor(ev) - } - - override fun execute(ev: MessageContextInteractionEvent) { - executor(ev) - } - - abstract fun executor(ev: Any) -}