Skip to content

setClient

JustCarry edited this page Apr 30, 2018 · 2 revisions

What is that?

  • To define client to the package.

Required arguments:

( client ) client: Client The client.

Example:

const Discord = require('discord.js');
const jc = require('jc-codes');
const client = new Discord.Client();

jc.setClient( client ) // Put client

client.login('token');
Clone this wiki locally