chore: updated SendPlannerExtension documentation

Signed-off-by: moonleay <contact@moonleay.net>
This commit is contained in:
moonleay 2023-09-14 09:42:08 +02:00
parent 50ab9c0b0d
commit 1cd622a778
Signed by: moonleay
GPG key ID: 82667543CCD715FB

View file

@ -47,13 +47,13 @@ class SendPlannerExtension : Extension() {
override suspend fun setup() {
publicSlashCommand() {
name = "sendplanner"
description = "Send the planner for the current and x next weeks"
description = "Send the planner for the current week"
this.action {
if (!this.member!!.asMember(this.guild!!.id)
.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