Skip to content

Latest commit

History

History
34 lines (23 loc) 路 642 Bytes

Discord.md

File metadata and controls

34 lines (23 loc) 路 642 Bytes

How to use Discord.js

Installation:

Install Discord:

npm i discord.js

Edit your sandbox so it looks like this:

modules: [
	'discord.js'
]

Go to https://discordapp.com/developers/applications

Create a new application and make it a bot.

Finally. Put the bot token in the script as it says:

bot.login("Token should go here")

Enable developer mode in apperance settings.

And that should be it, but before continuing on writing your script you'll need DiscordJS imported on your files.

It's as easy as:

const discordJS = getModule('discord.js');

// rest of your discord bot interactivity here!