From 23c68fce2773467208b0b6503038052a217da53e Mon Sep 17 00:00:00 2001 From: Nicky <111157596+xNickyDev@users.noreply.github.com> Date: Thu, 29 Jun 2023 15:27:07 +0200 Subject: [PATCH 1/4] Create displayName.md --- src/bdscript/displayName.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/bdscript/displayName.md diff --git a/src/bdscript/displayName.md b/src/bdscript/displayName.md new file mode 100644 index 0000000000..1b02d17ea1 --- /dev/null +++ b/src/bdscript/displayName.md @@ -0,0 +1,14 @@ +# $displayName +Returns the author's display name. + +## Syntax +``` +$displayName +``` + +## Example +``` +$nomention +Your display name is `$displayName` +``` +![example](https://github.com/xNickyDev/bdfd-wiki/assets/111157596/f89e590e-cdf2-4226-bdf5-082b52533329) From 90451bf4dbaa5c3781869bf5348bbc354bcff689 Mon Sep 17 00:00:00 2001 From: Nicky <111157596+xNickyDev@users.noreply.github.com> Date: Thu, 29 Jun 2023 15:37:04 +0200 Subject: [PATCH 2/4] Create displayNameComplex.md --- src/bdscript/displayNameComplex.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/bdscript/displayNameComplex.md diff --git a/src/bdscript/displayNameComplex.md b/src/bdscript/displayNameComplex.md new file mode 100644 index 0000000000..cff49e7fd3 --- /dev/null +++ b/src/bdscript/displayNameComplex.md @@ -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) From 0adca58620e8e40e9edf51e93a4a163f99362056 Mon Sep 17 00:00:00 2001 From: Nicky <111157596+xNickyDev@users.noreply.github.com> Date: Thu, 29 Jun 2023 15:37:38 +0200 Subject: [PATCH 3/4] Update displayName.md --- src/bdscript/displayName.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bdscript/displayName.md b/src/bdscript/displayName.md index 1b02d17ea1..d2991b4c7d 100644 --- a/src/bdscript/displayName.md +++ b/src/bdscript/displayName.md @@ -11,4 +11,4 @@ $displayName $nomention Your display name is `$displayName` ``` -![example](https://github.com/xNickyDev/bdfd-wiki/assets/111157596/f89e590e-cdf2-4226-bdf5-082b52533329) +![example](https://user-images.githubusercontent.com/111157596/249784142-f89e590e-cdf2-4226-bdf5-082b52533329.png) From 26eb910e94be60abc0970e32a7d7b246e81ca748 Mon Sep 17 00:00:00 2001 From: Nicky <111157596+xNickyDev@users.noreply.github.com> Date: Thu, 29 Jun 2023 15:38:47 +0200 Subject: [PATCH 4/4] Update SUMMARY.md --- src/SUMMARY.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/SUMMARY.md b/src/SUMMARY.md index 826c555000..6ca641fa17 100644 --- a/src/SUMMARY.md +++ b/src/SUMMARY.md @@ -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)