Discord JS - How to Create a Discord Bot

Discord JS - How to Create a Discord Bot

Michael Kitas

2 года назад

1,214 Просмотров

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


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

WAT WAT
WAT WAT - 01.02.2023 17:30

client.on("message", (msg) =>{
console.log(msg.content)
})
does not log any message. Bot has admin rights and client.on("ready) is working

Ответить
CrucialAmbitions
CrucialAmbitions - 09.01.2023 19:48

I followed everything to the T and I get the error. TypeError: Cannot read properties of undefined (reading 'FLAGS')

How do I fix that?

Ответить
Controller Kings
Controller Kings - 21.08.2022 00:57

hey, if i type const client = new Discord.Client({
intents: [
Discord.Intents

And all the stuff you showed in the video, it doesnt show Intents as an option in visual studio
How can i fix that?

Ответить
Don Eros
Don Eros - 08.05.2022 01:46

Hey Michael trust that you're well,

intents: [Intents.FLAGS.GUILDS, Intents.FLAGS.GUILDS_MESSAGES],
^

TypeError: Cannot read properties of undefined (reading 'FLAGS')

Ответить
Osman Candan
Osman Candan - 28.04.2022 04:29

Hello Michael! I have a problem with my bot. It works with other servers but it doesn't work in the server I want it to work. It gives me "Cannot read properties of undefined (reading 'id') error. What should I do to fix this problem? Please help me...

Ответить