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() {
|
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
|
||||||
|
|
Loading…
Reference in a new issue