Skip to content

Commit

Permalink
Added $displayName (#327)
Browse files Browse the repository at this point in the history
* Create displayName.md

* Create displayNameComplex.md

* Update displayName.md

* Update SUMMARY.md
  • Loading branch information
xNickyDev committed Jul 3, 2023
1 parent 88d4ceb commit d20e442
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,8 @@
- [$disableInnerSpaceRemoval](./bdscript/disableInnerSpaceRemoval.md)
- [$disableSpecialEscaping](./bdscript/disableSpecialEscaping.md)
- [$discriminator](./bdscript/discriminator.md)
- [$displayName](./bdscript/displayName.md)
- [$displayName[]](./bdscript/displayNameComplex.md)
- [$divide](./bdscript/divide.md)
- [$dm](./bdscript/dm.md)
- [$dmChannelID](./bdscript/dmChannelID.md)
Expand Down
14 changes: 14 additions & 0 deletions src/bdscript/displayName.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# $displayName
Returns the author's display name.

## Syntax
```
$displayName
```

## Example
```
$nomention
Your display name is `$displayName`
```
![example](https://user-images.githubusercontent.com/111157596/249784142-f89e590e-cdf2-4226-bdf5-082b52533329.png)
17 changes: 17 additions & 0 deletions src/bdscript/displayNameComplex.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# $displayName[]
Returns the display name of the given user.

## Syntax
```
$displayName[User ID]
```

### Parameters
- `User ID` `(Type: Snowflake || Flag: Required)`: The user to get the display name for.

## Example
```
$nomention
**$username[$message[1]]**'s display name is `$displayName[$message[1]]`
```
![example](https://user-images.githubusercontent.com/111157596/249786688-61ed7be7-2c9d-48f0-8a7a-280e498a09e7.png)

0 comments on commit d20e442

Please sign in to comment.