1
0

this finally works i think

This commit is contained in:
Jannik Reimers 2024-11-06 20:18:34 +01:00
parent c85958807a
commit f14f50a94d
Signed by: jansel
GPG Key ID: 39C62D7D5233CFD0

View File

@ -7,6 +7,7 @@ import dev.kordex.core.checks.anyGuild
import dev.kordex.core.checks.hasPermission import dev.kordex.core.checks.hasPermission
import dev.kordex.core.commands.Arguments import dev.kordex.core.commands.Arguments
import dev.kordex.core.commands.application.slash.publicSubCommand import dev.kordex.core.commands.application.slash.publicSubCommand
import dev.kordex.core.commands.converters.impl.optionalSnowflake
import dev.kordex.core.commands.converters.impl.snowflake import dev.kordex.core.commands.converters.impl.snowflake
import dev.kordex.core.commands.converters.impl.string import dev.kordex.core.commands.converters.impl.string
import dev.kordex.core.extensions.Extension import dev.kordex.core.extensions.Extension
@ -65,10 +66,9 @@ class StreamerCommand : Extension() {
description = "Channel where the bot will send a message when the streamer goes live" description = "Channel where the bot will send a message when the streamer goes live"
require(true) require(true)
} }
val role by snowflake { val role by optionalSnowflake {
name = "role" name = "role"
description = "Role to ping when the streamer goes live" description = "Role to ping when the streamer goes live"
require(false)
} }
} }