2.0.2 • Published 3 years ago
zepcord v2.0.2
About
A Package That Is Useful For Discord.js v13+
Installation
npm install zepcord
yarn add zepcord
pnpm add zepcord
Requirements
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
Parameter | Typeof | Required |
---|---|---|
text | String | true |
text | String | true |
Color
const color = zcord.Color('GREEN');
console.log(color);
// Expected Output: 65280
Available Colors
Color | Hex |
---|---|
BLUE | 0000FF |
RED | FF0000 |
GREEN | 00FF00 |
CYAN | 00FFFF |
YELLOW | FFFF00 |
LIGHTBLUE | 89CFF0 |
PINK | FF69B4 |
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
Parameter | Typeof | Required |
---|---|---|
maxLength | Number | false |
Shuffle
const text = zcord.shuffle('Zeptar');
console.log(text);
// Random Output: eraZpt
// Random Output: pertaZ
// Random Output: eatZpr