YoVDO

Creating a Discord Bot with JavaScript and Discord.js

Offered By: Coding Train via YouTube

Tags

Discord Bot Development Courses Javascript Courses Node.Js Courses

Course Description

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Create a Discord bot using Discord.js in JavaScript and Node.js in this comprehensive 33-minute tutorial. Set up a Node project, create a Discord application, and write code for authentication, slash commands, and bot interaction. Learn about Discord Gateway Intents, relative and absolute imports, and how Discord bots communicate with the platform. Follow along with step-by-step instructions, from enabling developer mode on Discord to deploying slash commands and handling command interactions. Explore essential resources like the Discord Developer Portal, API documentation, and Discord.js guide to enhance your bot development skills.

Syllabus

Introduction
Setting up the Node.js project
Creating the Discord application
Inviting your Discord bot
Enabling developer mode on Discord
Setting up the .env file
Code! Getting the bot to log into Discord
Creating a slash command
Deploying the slash command
Listening for the command interaction and executing the command
How Discord bots communicate with Discord
Discord.JS documentation
Intents describe what events your bot will receive and what it has access to. The guilds intent is required so discord.js can internally populate it's cache to limit it's API calls to Discord.
Using ./ means the import will be relative to the file that the import is made in. Without it the import would be absolute meaning it would be from the root of your Node.JS project


Taught by

The Coding Train

Related Courses

Advanced Monitoring and Optimizing with DynamoDB (Spanish)
Amazon Web Services via AWS Skill Builder
Advanced Monitoring and Optimizing with DynamoDB (Simplified Chinese)
Amazon Web Services via AWS Skill Builder
Amazon Connect Developer Assessment
Amazon Web Services via AWS Skill Builder
Amazon DynamoDB for Serverless Architectures (Japanese)
Amazon Web Services via AWS Skill Builder
Amazon DynamoDB for Serverless Architectures (Simplified Chinese)(中文配音版)
Amazon Web Services via AWS Skill Builder