mirror of https://github.com/kami-blue/client
[fix] Slight user safety that was removed by accident
Yes, of course I tested this commit https://pl.kotl.in/tvB0rVplb
This commit is contained in:
parent
7ba5b646be
commit
dfe3db215c
|
@ -10,7 +10,7 @@ object DiscordNotifsCommand : ClientCommand(
|
|||
name = "discordnotifs",
|
||||
alias = arrayOf("webhook")
|
||||
) {
|
||||
private val urlRegex = Regex("^https://.*discord\\.com/api/webhooks/\\d+/.{68}")
|
||||
private val urlRegex = Regex("^https://.*discord\\.com/api/webhooks/\\d+/.{68}$")
|
||||
|
||||
init {
|
||||
literal("id") {
|
||||
|
|
Loading…
Reference in New Issue