displus
A package that add functions for Discord.
Usage
const displus = require('displus');
const { Client } = require('discord.js');
const client = new Client({ intents: [] });
client.on('messageCreate', async message => {
console.log(displus.removeHiddenText('Hello ||World||!'))
console.log(displus.removeHiddenText('Hello <https://example.com/> !'))
console.log(displus.removeMarkdown('**Hello World!**'));
console.log(displus.removeMarkdown('Hello __World!__'));
console.log(displus.removeMarkdown('`Hello` __World!__'));
console.log(displus.removeMarkdown('Hello <https://example.com/> !'))
console.log(displus.removeMarkdown('Hello [World](https://example.com/)!'));
console.log(displus.removeMarkdown('# Hello World!', true));
console.log(await displus.replaceMentions(client, guild, '<@957885295251034112>'));
console.log(displus.rawCode('```js\nconsole.log("Hello World!")\n```'));
console.log(displus.emojiId('<:check:1240681820815888505>'));
console.log(displus.emojiId('<a:loading:1240671243875913819>'));
const invitationText = "There are invitation links! https://discord.gg/yKW8wWKCnS https://discord.com/invite/YnNTMh6mT6";
console.log(displus.getInvites(invitationText));
console.log(displus.getInvites(invitationText, true));
const embedObject = {
author: 'This is an embed author!',
title: 'This is an embed title!',
redirect: 'https://example.com/',
descripon: 'This is an embed description!',
color: '#777000',
image: 'https://i.imgur.com/EJOjIMC.jpeg'
};
console.log(displus.embed(embedObject));
console.log(displus.embed(embedObject, true));
});
Get Support