Fixed 3.9.0 dist

This commit is contained in:
hydrabolt
2015-10-25 19:41:40 +00:00
parent 26a1850f01
commit 9662d52d4f
4 changed files with 28 additions and 4 deletions

View File

@@ -7,4 +7,28 @@ var Discord = {
Client : Client
}
Discord.patchStrings = function () {
defineProperty("bold", "**");
defineProperty("underline", "__");
defineProperty("strike", "~~");
defineProperty("code", "`");
defineProperty("codeblock", "```");
defineProperty("newline", "\n");
Object.defineProperty(String.prototype, "italic", {
get: function () {
return "*" + this + "*";
}
});
function defineProperty(name, joiner) {
Object.defineProperty(String.prototype, name, {
get: function () {
return joiner + this + joiner;
}
});
}
}
module.exports = Discord;