fix: remove command adaptor

This commit is contained in:
Project_IO 2024-09-08 01:46:29 +09:00
parent fab98e826d
commit 996a728203

View file

@ -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)
}