Skip to content

Commit

Permalink
fix(docs): incorrect examples (#369)
Browse files Browse the repository at this point in the history
* Update onInteraction.md

* Update onInteractionComplex.md

* Update onInteractionComplex.md

* Update blackListUsers.md

* Update disableInnerSpaceRemoval.md

* Update reply.md
  • Loading branch information
xNickyDev committed Oct 10, 2023
1 parent 1785a95 commit f5521c2
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/bdscript/blackListUsers.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
2 changes: 1 addition & 1 deletion src/bdscript/disableInnerSpaceRemoval.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ $disableInnerSpaceRemoval
$nomention
$disableInnerSpaceRemoval
Hello $username!
Hello $displayName!
```

### Output Without
Expand Down
2 changes: 1 addition & 1 deletion src/bdscript/reply.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
2 changes: 1 addition & 1 deletion src/callbacks/onInteraction.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ $if[$customID==interaction]
$endif
$if[$customID==onlyauthor-$authorID]
$sendMessage[Hello $username!]
$sendMessage[Hello $displayName!]
$endif
```
``` discord yaml
Expand Down
18 changes: 9 additions & 9 deletions src/callbacks/onInteractionComplex.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f5521c2

Please sign in to comment.