mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-13 18:13:29 +01:00
Added text formatting example and fixed newline
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user