Added text formatting example and fixed newline

This commit is contained in:
hydrabolt
2015-10-26 20:56:00 +00:00
parent 83fe7caa77
commit 4783b75b84
2 changed files with 65 additions and 1 deletions

View File

@@ -18,7 +18,12 @@ Discord.patchStrings = function () {
defineProperty("strike", "~~");
defineProperty("code", "`");
defineProperty("codeblock", "```");
defineProperty("newline", "\n");
Object.defineProperty(String.prototype, "newline", {
get: function get() {
return this + "\n";
}
});
Object.defineProperty(String.prototype, "italic", {
get: function get() {