Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

discord.js-helper

Package Overview
Dependencies
Maintainers
3
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

discord.js-helper

Make your discord bots more awesome with discord.js-helper

  • 1.2.8
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
5
decreased by-54.55%
Maintainers
3
Weekly downloads
 
Created
Source

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')

Keywords

FAQs

Package last updated on 30 Jun 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc