feat: improved UpdateRolesExtension
All checks were successful
Build Gradle project / build-gradle-project (push) Successful in 2m37s
All checks were successful
Build Gradle project / build-gradle-project (push) Successful in 2m37s
chore: updated UpdateRolesExtension Documentation Signed-off-by: moonleay <contact@moonleay.net>
This commit is contained in:
parent
39fb3ba7d6
commit
36f931b919
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue