3.9.0, chainable string modifiers

This commit is contained in:
hydrabolt
2015-10-25 19:27:43 +00:00
parent f9679879f2
commit b61c64fa48
6 changed files with 82 additions and 50 deletions

View File

@@ -35,6 +35,33 @@ mybot.login("email", "password");
```
---
### What's new in 3.9.0?
Amongst some fixes to web distribution creation, you can now opt for easier string formatting! However, it does modify String globally so you'll have to run:
```js
Discord.patchStrings()
```
After you have run this, you can do:
```
"message".bold.underline.italic
// generates "*__**message**__*"
```
A full list of modifiers (all chainable):
* bold `**`
* italic `*`
* underline `__`
* strike `~`
* code ` ` `
* codeblock` ``` `
---
### Related Projects
Here is a list of other Discord APIs: