forked from DiscordBots/lilJudd
fix!: fixed compilation issues on Winblows (This resulted in a new base package.) Signed-off-by: moonleay <contact@moonleay.net>
45 lines
1.4 KiB
Kotlin
45 lines
1.4 KiB
Kotlin
/*
|
|
* lilJudd
|
|
* Copyright (C) 2023 moonleay
|
|
*
|
|
* This program is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
package net.moonleay.liljudd.features.component
|
|
|
|
import dev.kord.core.behavior.UserBehavior
|
|
import dev.kord.core.entity.channel.Channel
|
|
import dev.kord.rest.builder.message.EmbedBuilder
|
|
import net.moonleay.liljudd.extensions.FeatureManageExtension
|
|
|
|
interface IFeature {
|
|
val feat: FeatureEnum
|
|
suspend fun registerThread()
|
|
|
|
suspend fun enable(
|
|
u: UserBehavior,
|
|
gID: Long,
|
|
cID: Long,
|
|
ch: Channel,
|
|
args: FeatureManageExtension.FeatureManagerArgs
|
|
): EmbedBuilder
|
|
|
|
suspend fun disable(
|
|
u: UserBehavior,
|
|
gID: Long,
|
|
cID: Long,
|
|
ch: Channel,
|
|
args: FeatureManageExtension.FeatureManagerArgs
|
|
): EmbedBuilder
|
|
}
|