From 6e1fce6e18d452965ce0bebe91241a84c929ba4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nils=20Kr=C3=BCger?= Date: Wed, 8 Jan 2025 18:06:24 +0100 Subject: [PATCH 1/2] Fix wrong kotlin syntax in kord docs --- docs/discord/kord.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/discord/kord.md b/docs/discord/kord.md index 18bc874..564ad16 100644 --- a/docs/discord/kord.md +++ b/docs/discord/kord.md @@ -128,7 +128,7 @@ You may then use the annotation: ```kotlin @CommandScope(guilds = { 1337 }) @Command("command") -public suspend void yourCommand() { /* ... */ } +public suspend fun yourCommand() { /* ... */ } ``` ### Permissions From 325f82c7a3e15c2fe211d2eeba1b3cbe89224a65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nils=20Kr=C3=BCger?= Date: Wed, 8 Jan 2025 18:08:43 +0100 Subject: [PATCH 2/2] Fix annotation array syntax in kord docs --- docs/discord/kord.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/discord/kord.md b/docs/discord/kord.md index 564ad16..821c185 100644 --- a/docs/discord/kord.md +++ b/docs/discord/kord.md @@ -126,7 +126,7 @@ CommandScopeBuilderModifier.install(annotationParser) You may then use the annotation: ```kotlin -@CommandScope(guilds = { 1337 }) +@CommandScope(guilds = [1337]) @Command("command") public suspend fun yourCommand() { /* ... */ } ```