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 39fb3ba7d6
commit 36f931b919

View file

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