feat: improved UpdateRolesExtension

chore: updated UpdateRolesExtension Documentation

Signed-off-by: moonleay <contact@moonleay.net>
This commit is contained in:
moonleay 2023-09-14 09:43:36 +02:00
parent 1cd622a778
commit 24687d4060
Signed by: moonleay
GPG key ID: 82667543CCD715FB

View file

@ -42,7 +42,7 @@ class UpdateRolesExtension : Extension() {
.hasPermission(Permission.Administrator)
) {
val res = this.respond {
this.content = "no."
this.content = "You need to be an administrator to use this command."
}
res.delete()
return@action
@ -55,7 +55,7 @@ class UpdateRolesExtension : Extension() {
// -- below here is the code of the cronjob --
Logger.out("Starting to update roles...")
AvailabilityManager.runThread()
AvailabilityManager.updateInChannel(this.channel.id)
}
}
}