Skip to content

Installation and Setup

paige edited this page Aug 29, 2023 · 12 revisions

Installation

npm i willclient
npm i paigeroid/willclient

Setting Up

Discord.JS Client

WC is built off of Discord.JS so for it to work you need Discord.JS.

const { Client } = require('discord.js');
const client = new Client({
	// your stuff here
});

WC Client

once you have your Discord.JS client you can add in WC

const { WillClient } = require('willclient');
const wc = new WillClient({
	client: client,
	prefix: "!",
	token: token
});

once you have your client set up and working you can run it using either of these:

client.login(token); // normal discord.js

wc.run(token); // optional alternative
Clone this wiki locally