2.0.2 • Published 3 years ago

zepcord v2.0.2

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

About

A Package That Is Useful For Discord.js v13+

Installation

npm install zepcord

yarn add zepcord

pnpm add zepcord

Requirements

Discord.js v13+

Features

  • Hyperlink
  • Color
  • reverseText
  • randomNumber
  • shuffle

Declaring

Requiring

const zcord = require('zepcord');

Importing

import zcord from 'zepcord';

Usage

Using Features

Hyperlinks

Note: Hyperlinks Only Work On A Embed

const link = zcord.Hyperlink({ text: 'Text', link: 'Link' });

const embed = new MessageEmbed()
.setDescription(link);

message.reply({ embeds: [embed] });

console.log(link);

// Expected Output: '[Text](Link)'

Options

ParameterTypeofRequired
textStringtrue
textStringtrue

Color

const color = zcord.Color('GREEN');

console.log(color);

// Expected Output: 65280

Available Colors

ColorHex
BLUE0000FF
REDFF0000
GREEN00FF00
CYAN00FFFF
YELLOWFFFF00
LIGHTBLUE89CFF0
PINKFF69B4

More Colors Coming Soon!


Reverse Text

const text = zcord.reverseText('Zeptar');

console.log(text);

// Expected Output: 'ratpeZ'

Random Number

const num = zcord.randomNumber({ maxLength: 20 });

// If there is no maxLength given, the maxLength will be set as 100.

console.log(num);

// Random Output: 4
// Random Output: 17
// Random Output: 9

Options

ParameterTypeofRequired
maxLengthNumberfalse

Shuffle

const text = zcord.shuffle('Zeptar');

console.log(text);

// Random Output: eraZpt
// Random Output: pertaZ
// Random Output: eatZpr

2.0.2

3 years ago

2.0.1

3 years ago

1.0.12

3 years ago

1.0.11

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago