1.0.2 • Published 1 year ago

codeblock-color v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Codeblock Color

What is it ?

Codeblock color is a package for discord that allow you to add color to your blockquote. It also can add Bold and underline to your text or both.

It only support color that discord have set.

Example :

const { TextColorize } = require('codeblock-color');

const text = '%_this part will be blue %_and this par will have a orange background';

const colorizedText = new TextColorize(text, { textColor: 'BLUE' }, { bgColor: 'ORANGE' });

// Color text can be either put in discordEmbed description
// or value options of field and also directly in reply.

this a example used in a ping command to let add color to ping values. ping example

Formating option

  • textColor : GRAY, RED, GREEN, YELLOW, BLUE, PINK, CYAN, WHITE
  • bgColor : DARK_BLUE, ORANGE, MARBLE_BLUE, GREYISH_TURQUOISE, GRAY, INDINGO, LIGHT_GRAY, WHITE
  • style: NORMAL (default), BOLD
  • decoration : UNDERLINE
1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago