mirror of
https://github.com/devproje/px32-bot.git
synced 2024-11-29 20:13:06 +00:00
fix: remove command adaptor
This commit is contained in:
parent
fab98e826d
commit
996a728203
1 changed files with 0 additions and 18 deletions
|
@ -19,21 +19,3 @@ interface MessageContextExecutor {
|
||||||
val data: CommandData
|
val data: CommandData
|
||||||
fun execute(ev: MessageContextInteractionEvent)
|
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)
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in a new issue