Event Handler + Validation | Discord.JS Series | #2

preview_player
Показать описание
Create your advanced by easy to code event handler, that will handle all of your events inside their catagories and error handle names with the validation system with a cool console log!

Intents Number: 32767
Want to get the code? support me on Ko-Fi:
SUPPORT DISCORD:

Timestamps:
00:00 Intro
00:21 Removing Old Event
00:43 Intents Calculating
01:19 Creating Handlers + Validation Folders
1:32 Creating The Validation Array
2:02 Coding The Event Handler
11:20 Creating Our First Event
11:56 Testing, and showcasing
Рекомендации по теме
Комментарии
Автор

When I did "node ." 11:56 to see if the bot was working, It came online but validation isn't working, and the bot status wasn't working. there was also no "The Client is now ready!" message . just a bunch of lines like below.

||
|
'

jcdagod
Автор

you are so underrated man, great tutorials, absolutely love it and subscribed

fw-real
Автор

Thank you it worked! Just had to fix some spelling mistakes and that was it.

XMolo
Автор

for some reason the events files array that got returned from PG function is returning an empty array
(await
i checked if there's a mistake with the folder name but there's no mistakes

spac
Автор

(await (file) => {
dont forget to add 1 * after Events/*

RaysMC_id
Автор

await (file) => {
^

TypeError: (intermediate value) is not a function whats the error??

xfrizard
Автор

TypeError: require(...) is not a function

at Object.<anonymous>

at Module._compile

AntonisRsmn
Автор

When I create an event and start it, it doesn't run and doesn't show up in the list. Can you help me?

_MomentCast_
Автор

If anyone gets the error msg while running the code.. please make sure
+The code is correct
+U have enabled `PRESENCE INTENT`, `SERVER MEMBERS INTENT` & `MESSAGE CONTENT INTENT` (Note that u have to make the bot public, If u set them to privet.. it won't work)
(U can enable them in Discord.dev portal > app> bot section
And if u are stuck please rewatch the video again from the starting, As he explained well how to set up the bot.
Thank you. Hope this helps :)

CLAYZANE
Автор

hey i didn't understand the part when you typed
const Table = new Ascii, what do you mean by the whatever name is? is it gotta be ascii?

MysticalSkir
Автор

Hi, i have try to install glob and the table but i get lot of errors bu the installatiions i run discord.js 13.8.0

HarritVanBeek
Автор

I did everything as you said in this video and everyting works, but...
my console outputs incomplete message.
messge in console:
.
||
|
'
how can i fix this?

adamsmth
Автор

TypeError: require(...) is not a function
at Object.<anonymous>


^

Doxiorek
Автор

It works but when i put rEady instead of ready I get the error in the console but both of my L array variables are undefined and my code is the exact same. Event name is either invalid or missing: undefined/undefined

shwazeemeng
Автор

here is how to pronounce Ascii: "Ass" - "Key"
sorry for the swear word if you think that is a swear word

joecraft
Автор

mistake : ( line 16 )
await Table.addRow(`${event.name || "MISSING"}`, `❌ Event name either invalid or missing: ${L[6] + `/` + L[7]}`);
correct : ( line 16 )
await Table.addRow(`${event.name || "MISSING"}`, `❌ Event name either invalid or missing: ${L[7] + `/` + L[8]}`);

find issuse and fixed !

Kaykeni
Автор

ISSUE SOLUTION: TypeError (intermediate value) is not a function
Line Issue: (await PG (file) => {...}

Put a semicolon after Line 8 (the one right before the issue line): const Table = new ascii("Events Loaded")
It should work properly afterwards

modernPsych
Автор

How can i use @param? The text is just green for me.

xzyniix
Автор

i have a problem code: 'MODULE_NOT_FOUND' can you help me pls

tenshoto
Автор

to everyone who gets the console crashed u can use this (await PG(`${(process.cwd().replace(/\\/g, "/"))}/TYPE/*/*.js`))

Gbrl_I
visit shbcf.ru