Notwithstanding Previous Misdemeanors

    discord.js-helper
    TypeScript icon, indicating that this package has built-in type declarations

    1.2.8 • Public • Published

    discord.js-helper

    Installation of the package

    First install Nodejs. Then:

    $ npm install discord.js-helper

    🤟 Importing

    // Using Node.js (require)
    const helper = require('discord.js-helper');
    
    // Using ES6 (import /export)
    import helper from 'discord.js-helper';

    Package functions and usage


    embedBuilder

    Example
    client.on('message' ,(message) => {
      if(message.content.startsWith('!embed')) {
        helper.embedBuilder(message).setTitle(`Hewwo there!`).setDescription(`Howe are you doin?! ☺`)
      }
    })

    Embed Builder

    DiscordTogether

    Example
    YouTube-Together
    const Discord = require('discord.js');
    const client = new Discord.Client();
    const { DiscordTogether } = require('discord.js-helper');
    
    const dt = new DiscordTogether(client);
    client.on('message', async(msg) => {
      if(msg.content.startsWith("!youtube-together")) {
        let link = await dt.createTogether(message.member.voice.channel.id, 'youtube');
        await msg.channel.send(link.code);
      }
    })
    
    client.login('your bot token goes here')

    Youtube Together

    Poker-Together
    const discord = require('discord.js');
    const client = new discord.Client();
    client.helper = require('discord.js-helper')
    client.on('ready', () => console.log(`I am ready!`));
    let dt = new client.helper.DiscordTogether(client);
    client.on('message', async(msg) => {
        if(msg.content.startsWith("!poker-together")) {
            let link = await dt.createTogether(msg.member.voice.channel.id, 'poker');
            msg.channel.send(link.code);
        }
    })
    
    client.login("your token goes here")

    Poker Together

    Chess
     const Discord = require('discord.js');
     const client = new Discord.Client();
    const { DiscordTogether } = require('discord.js-helper');
    
         client.dt = new DiscordTogether(client);
    
         client.on('message', async (message) => {
         if(message.content.toLowerCase() === '!chess') {
         client.dt.createTogether(message.member.voice.channel.id, 'chess').then(async link => {
          message.channel.send(`Here is your chess code link! ${link.code}`)
         });
         };
         });
    
         client.login('your bot token goes here')

    Chess Together

    Fishing
    // Using Node.js (require)
    const helper = require('discord.js-helper');
    
    // Using ES6 (import /export)
    import helper from 'discord.js-helper';
    
     const Discord = require('discord.js');
     const client = new Discord.Client();
    const { DiscordTogether } = require('discord.js-helper');
    
         client.dt = new DiscordTogether(client);
    
         client.on('message', async (message) => {
         if(message.content.toLowerCase() === '!fish') {
         client.dt.createTogether(message.member.voice.channel.id, 'fishing').then(async link => {
          message.channel.send(`Here is your fishing code link! ${link.code}`)
         });
         };
         });
    
         client.login('your bot token goes here')

    Fishing Together

    Meme

    Usage
     const Discord = require('discord.js');
     const client = new Discord.Client();
    const helper = require('discord.js-helper');
    
    
         client.on('message', async (message) => {
         if(message.content.toLowerCase() === '!meme') {
              helper.meme(message)
         });
         };
         });
    
         client.login('your bot token goes here')

    Install

    npm i discord.js-helper

    DownloadsWeekly Downloads

    26

    Version

    1.2.8

    License

    ISC

    Unpacked Size

    121 kB

    Total Files

    18

    Last publish

    Collaborators

    • hypsterop
    • mallusrgreat
    • johnsiras