added newline modifier

This commit is contained in:
hydrabolt
2015-10-25 19:34:23 +00:00
parent b61c64fa48
commit 91bc1b2d1e
2 changed files with 7 additions and 1 deletions

View File

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

View File

@@ -30,7 +30,12 @@ mybot.on("message", function (message) {
perms = JSON.parse(perms);
mybot.sendMessage(message,
"one" + "two".italic + "three"
"bold".bold.newline +
"italic".italic.newline +
"underline".underline.newline +
"strike".strike.newline +
"code".code.newline +
"codeblock".codeblock.newline
);
});