From f5521c2ec0e5b0766f101283b5426a9be21c5797 Mon Sep 17 00:00:00 2001 From: Nicky <111157596+xNickyDev@users.noreply.github.com> Date: Tue, 10 Oct 2023 19:59:14 +0200 Subject: [PATCH] fix(docs): incorrect examples (#369) * Update onInteraction.md * Update onInteractionComplex.md * Update onInteractionComplex.md * Update blackListUsers.md * Update disableInnerSpaceRemoval.md * Update reply.md --- src/bdscript/blackListUsers.md | 2 +- src/bdscript/disableInnerSpaceRemoval.md | 2 +- src/bdscript/reply.md | 2 +- src/callbacks/onInteraction.md | 2 +- src/callbacks/onInteractionComplex.md | 18 +++++++++--------- 5 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/bdscript/blackListUsers.md b/src/bdscript/blackListUsers.md index 882579d366..baacc1cb1c 100644 --- a/src/bdscript/blackListUsers.md +++ b/src/bdscript/blackListUsers.md @@ -14,6 +14,6 @@ $blackListUsers[Usernames;...;Error message] ``` $nomention $blackListUsers[RainbowKey;❌ You can't use this command!] -Hello $username! +Hello $displayName! ``` ![example](https://user-images.githubusercontent.com/113303649/211997181-4ad65536-9b54-4f15-bd1f-07eb0df92686.png) diff --git a/src/bdscript/disableInnerSpaceRemoval.md b/src/bdscript/disableInnerSpaceRemoval.md index c529e1342f..27830f0e56 100644 --- a/src/bdscript/disableInnerSpaceRemoval.md +++ b/src/bdscript/disableInnerSpaceRemoval.md @@ -11,7 +11,7 @@ $disableInnerSpaceRemoval $nomention $disableInnerSpaceRemoval -Hello $username! +Hello $displayName! ``` ### Output Without diff --git a/src/bdscript/reply.md b/src/bdscript/reply.md index c482dbabf0..fab552a4ac 100644 --- a/src/bdscript/reply.md +++ b/src/bdscript/reply.md @@ -11,6 +11,6 @@ $reply $nomention $reply $allowUserMentions[] -Hello $username 👋🏻 +Hello $displayName 👋🏻 ``` ![image](https://user-images.githubusercontent.com/42785890/151721130-51524143-b136-4cfc-b028-694b1d09e84a.png) diff --git a/src/callbacks/onInteraction.md b/src/callbacks/onInteraction.md index a8a4df8539..8f7740e02a 100644 --- a/src/callbacks/onInteraction.md +++ b/src/callbacks/onInteraction.md @@ -20,7 +20,7 @@ $if[$customID==interaction] $endif $if[$customID==onlyauthor-$authorID] - $sendMessage[Hello $username!] + $sendMessage[Hello $displayName!] $endif ``` ``` discord yaml diff --git a/src/callbacks/onInteractionComplex.md b/src/callbacks/onInteractionComplex.md index 6ac1f65827..9599af9807 100644 --- a/src/callbacks/onInteractionComplex.md +++ b/src/callbacks/onInteractionComplex.md @@ -18,16 +18,16 @@ $onIneraction[Interaction ID] 1. Create two commands and set the trigger `$onInteraction[example]` for one command and `!example` for the other. - Code with trigger `!example`: - ``` - $nomention - Click! - $addButton[no;example;Click!;primary] - ``` + ``` + $nomention + Click! + $addButton[no;example;Click!;primary] + ``` - Code with trigger `$onInteraction[example]`: - ``` - $nomention - $sendMessage[Hello $username!] - ``` + ``` + $nomention + $sendMessage[Hello $displayName!] + ``` 2. Execute commands ``` discord yaml - user_id: 729343563401265193