!fix: removed the possibility of some Extensions running in DMs
Signed-off-by: limited_dev <loginakkisativ@gmail.com>
This commit is contained in:
parent
13cf183fd5
commit
6d99022bda
2 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue