forked from DiscordBots/lilJudd
chore: updated SendPlannerExtension documentation
Signed-off-by: moonleay <contact@moonleay.net>
This commit is contained in:
parent
99964d7981
commit
39fb3ba7d6
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue