mirror of
https://github.com/danbulant/discord.js
synced 2026-05-27 05:52:05 +00:00
added newline modifier
This commit is contained in:
parent
b61c64fa48
commit
91bc1b2d1e
2 changed files with 7 additions and 1 deletions
|
|
@ -16,6 +16,7 @@ Discord.patchStrings = function () {
|
||||||
defineProperty("strike", "~~");
|
defineProperty("strike", "~~");
|
||||||
defineProperty("code", "`");
|
defineProperty("code", "`");
|
||||||
defineProperty("codeblock", "```");
|
defineProperty("codeblock", "```");
|
||||||
|
defineProperty("newline", "\n");
|
||||||
|
|
||||||
Object.defineProperty(String.prototype, "italic", {
|
Object.defineProperty(String.prototype, "italic", {
|
||||||
get: function () {
|
get: function () {
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,12 @@ mybot.on("message", function (message) {
|
||||||
perms = JSON.parse(perms);
|
perms = JSON.parse(perms);
|
||||||
|
|
||||||
mybot.sendMessage(message,
|
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
|
||||||
);
|
);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue