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

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

Lyxcode

3 года назад

26,309 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@JaimetheNickFanEst
@JaimetheNickFanEst - 23.09.2021 03:43

next: command handler

Ответить
@jmonkey106
@jmonkey106 - 23.09.2021 05:13

thanks this helped, btw 'ascii' is pronounced (Ass-kii)

Ответить
@tomoncrackk
@tomoncrackk - 23.09.2021 06:31

This is sooo sick!!! tysm

Ответить
@tenshoto7972
@tenshoto7972 - 08.10.2021 23:25

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

Ответить
@Sub2BEAR999
@Sub2BEAR999 - 11.10.2021 03:13

I put the value const client = new Client({intents: 32767}); it shows
[Symbol(code)]: 'DISALLOWED_INTENTS', how to fix?

Ответить
@Perplexed_7
@Perplexed_7 - 22.10.2021 15:41

too tough :(((

Ответить
@XMolo
@XMolo - 27.10.2021 02:30

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

Ответить
@paixaonba9639
@paixaonba9639 - 23.11.2021 01:44

why do you need to use promisify and glob? what do they do for real?

Thanks for the content!! Shout out from Brazil

Ответить
@filofra76
@filofra76 - 07.12.2021 23:59

I have a error in Events.js in (await PG....
can you resolve that?

Ответить
@xyller
@xyller - 06.01.2022 13:06

TypeError: (intermediate value) is not a function
at module.exports How to fix?

Ответить
@moarkrabs1591
@moarkrabs1591 - 25.01.2022 23:13

i just got:
.
||
|
'

Ответить
@wafflewaffle1568
@wafflewaffle1568 - 03.02.2022 10:42

best channel ever

Ответить
@linhxx1
@linhxx1 - 03.02.2022 17:45

.-----------------.
| Events Loaded |
|-----------------|
| | ✔️ SUCESSFUL |
'-----------------'
The Client Is Now Ready!

mines got this

Ответить
@thayaganthusiyanthan9708
@thayaganthusiyanthan9708 - 17.02.2022 02:05

help node .
.--------------------------------------------------------------------.
| Events Loaded |
|--------------------------------------------------------------------|
| ready | ❌ Event name is either invalid or missing: Client/ready.js |
'--------------------------------------------------------------------' everything is written correctly

Ответить
@hamhampangpang_customer
@hamhampangpang_customer - 18.02.2022 17:45

event handler? zamnn

Ответить
@MysticalSkir
@MysticalSkir - 19.02.2022 22:24

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?

Ответить
@0xblank
@0xblank - 19.02.2022 22:26

/home/arthur/Documents/Projects/Bot/Handlers/Events.js:10
(await PG(`${process.cwd()}/Events/*/*.js`)).map(async (file) => {
^

TypeError: (intermediate value) is not a function
at module.exports (/home/arthur/Documents/Projects/Bot/Handlers/Events.js:10:3)

how to fix?

Ответить
@RaysMC_id
@RaysMC_id - 04.03.2022 21:59

(await PG(`${process.cwd()}/Events/**/*.js`)).map(async (file) => {
dont forget to add 1 * after Events/*

Ответить
@fw-real
@fw-real - 16.03.2022 09:17

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

Ответить
@Deveshds7089
@Deveshds7089 - 26.03.2022 11:33

I love u it worked I am happy ☺☺☺☺☺

Ответить
@Doxiorek
@Doxiorek - 02.04.2022 13:28

TypeError: require(...) is not a function
at Object.<anonymous> (C:\Users\*****\Documents\discordbot\src\index.js:7:30)
C:\Users\*****\Documents\discordbot\src\index.js:7
require("../Handlers/Events")(client);
^

Ответить
@sinistarcowhay7364
@sinistarcowhay7364 - 12.04.2022 11:06

When i run the but , logs return

.
||
|
'
Can you help me pls ?

Ответить
@sn0gy413
@sn0gy413 - 24.04.2022 00:28

(await PG(`${process.cwd()}/Events/**/*.js`)).map(async (file) => {
^

TypeError: (intermediate value) is not a function
at module.exports (C:\Bot\Handerls\Events.js:11:5)

Ответить
@astral4178
@astral4178 - 12.05.2022 00:45

it says ReferenceError: Table is not defined
at Object.<anonymous> (C:\Users\ultim\DineroManager\Handlers\Events.js:27:17) what do i do?

Ответить
@syntaxx_be
@syntaxx_be - 21.05.2022 03:34

can someone help me ??

Ответить
@xfrizard5317
@xfrizard5317 - 21.05.2022 13:53

await PG(`${process.cwd()}/Events/*/*.js`)).map(async (file) => {
^

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

Ответить
@aliscripts5314
@aliscripts5314 - 22.05.2022 21:06

I have an empty table printed

Ответить
@spa3c
@spa3c - 26.05.2022 12:54

for some reason the events files array that got returned from PG function is returning an empty array
(await PG(`${process.cwd()}/events/*/*.js`))
i checked if there's a mistake with the folder name but there's no mistakes

Ответить
@modernPsych0
@modernPsych0 - 03.06.2022 19:09

ISSUE SOLUTION: TypeError (intermediate value) is not a function
Line Issue: (await PG (`${process.cwd()}/Events/*/*.js`)).map(async (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

Ответить
@MrQusays
@MrQusays - 08.06.2022 13:06

Error: Cannot find module './Handlers/Events'
Require stack:

Ответить
@xzyniix4276
@xzyniix4276 - 22.06.2022 21:48

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

Ответить
@HarritVanBeek
@HarritVanBeek - 07.07.2022 11:20

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

Ответить
@Gbrl_I
@Gbrl_I - 08.07.2022 06:26

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

Ответить
@shwazeemeng
@shwazeemeng - 13.07.2022 15:02

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

Ответить
@AntonisRsmn
@AntonisRsmn - 14.07.2022 03:18

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

at Object.<anonymous> (/home/runner/Toomy/index.js:5:29)

at Module._compile (node:internal/modules/cjs/loader:1101:14)

Ответить
@receparslan8700
@receparslan8700 - 04.08.2022 01:28

E

Ответить
@adamsm1th27
@adamsm1th27 - 04.08.2022 16:14

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?

Ответить
@joecraft9098
@joecraft9098 - 06.08.2022 04:30

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

Ответить
@_MomentCast_
@_MomentCast_ - 27.12.2022 19:24

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

Ответить
@No_Name59
@No_Name59 - 29.04.2023 05:40

Russian Discord servers very problem

Ответить