feat: improved UpdateRolesExtension
chore: updated UpdateRolesExtension Documentation Signed-off-by: moonleay <contact@moonleay.net>
This commit is contained in:
parent
1cd622a778
commit
24687d4060
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