discord-bettermarkdown
v2.1.1
Published
Create Discord Markdown with Colorful
Downloads
181
Maintainers
Readme
Discord Markdown
Better Markdown to text chat Discord.
npm i discord-bettermarkdown@latest
Breaking changes
v1.x.x
- const BetterMarkdown = require('discord-bettermarkdown');
- const markdown = new BetterMarkdown();
- markdown.format('Hello World', 'DEFAULT', 'RED', null, true);
v2.x.x
+ const BetterMarkdown = require('discord-bettermarkdown');
+ 'Hello World'.red
ok it's the same way with the colors module
Screenshots
colors and styles!
text colors
- red
- green
- yellow
- blue
- pink
- cyan
- white
- gray
background colors
- bgDarkBlue
- bgOrange
- bgMarbleBlue
- bgGreyishTurquoise
- bgGray
- bgIndigo
- bgLightGray
- bgWhite
styles
- bold
- underline
- reset
Using ?
Patch
String
const BetterMarkdown = require('discord-bettermarkdown');
Send Message (discord.js)
const HelloWorld = 'Hello World'.red.bgWhite.bold.underline;
console.log(HelloWorld); // it's work!
channel.send(`\`\`\`ansi\n${HelloWorld}\`\`\``);
// Send `Hello World` with color red, background color white, bold, underline