!fix: removed the possibility of some Extensions running in DMs

Signed-off-by: limited_dev <loginakkisativ@gmail.com>
This commit is contained in:
limited_dev 2023-06-05 12:51:46 +02:00
parent 13cf183fd5
commit 6d99022bda
2 changed files with 5 additions and 0 deletions

View file

@ -42,6 +42,8 @@ import org.jetbrains.exposed.sql.transactions.transaction
class FeatureManageExtension : Extension() {
override val name = "feature"
override val allowApplicationCommandInDMs: Boolean
get() = false
/*
* Note: This has to be rewritten at some point to better support more features

View file

@ -30,6 +30,9 @@ import net.moonleay.lilJudd.util.MessageUtil
It is used in testing to test stuff, without having to wait for certain events to trigger. */
class TestExtension : Extension() {
override val name = "test"
override val allowApplicationCommandInDMs: Boolean
get() = false
override suspend fun setup() {
publicSlashCommand {
name = "test"