#can someone help me with this error
71 messages · Page 1 of 1 (latest)
module.exports, export takes a s
did you make sure you have the intents for guild messages enabled?
at discord devenloper portal?
that and in your bot code as well
where can i find it at the bot?
it's in the options for the Client class
so where you create the Client instance
yeah, well did you made the code? because I don't know either since I didn't made this code.
though if I have to guess it's probably in the index file
was this your code or someone else's code ?
I am not sure what the intents are for 32767 but I would say it's probably good.
Is the prefix the correct one?
is there other commands that works or there is only this command for now?
only one
I would need to see the Handler stuff.
You will have to be more precise with what doesn't work because I can help but I will not debug everything of someone's code though
From this file, it seems like the command name is given from the name property of the command file
you don't have a name in your command file though
module.exports.name = "announce"
doesn't really matter but it should not be between { }.
like module.exports.help
so like before the first module.exports.run or after it. or after module.exports.help
yes
now test?
yeah
wouldn't it be faster to ask your friend? like he made the code, he would know where everything is. I have to guess everything right now
he stopped
with everything
don't have contact with him anymore
can i maybe send the source to you
and you can see?
did you read the code? because you will have to understand it if you want to continue adding stuff.
I don't want the source. I am here to help not to make it for you, there is a difference.
For me to help you, you at least need to know the basics of how to program (specifically in js for this project) and you should know most of the code you are using.
did you read the code for the event where the bot receives messages, you should check there. it's probably there that it's wrong
for the announce command?
have you looked at discord.js documentation? you would know which event it is if you do.
can you send the link to the right page?
didn't find man
like I said, I will not make it for you.
you don't see to have any experience in basic javascript. To make a discord bot you should at least have the basic down.
https://discord.js.org/#/docs/discord.js/main/class/Client?scrollTo=e-messageCreate
There is only 1 subdirectory read. commands/<directory>
Any deeper than that, it wouldn't load it. Any more shallow than that, it wouldn't load it.
I am 4 days late
fuck