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 99964d7981
commit 39fb3ba7d6

View file

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