RileCraft / DiscordBot-Template

A bot template with command , event , button , selectmenus , slashcommands handler and error handlers. Made in Discord.JS V14
MIT License
229 stars 59 forks source link

Confused #11

Closed Arex69 closed 2 years ago

Arex69 commented 2 years ago

I added my own guildMemberAdd.js event from a tutorial and tweaked it a little bit. Code - https://pastebin.com/v5A6mxLV

unknown I then get this error.

I've contacted discord.js public support but they told me i didnt define my root in "loadEvents.js Line 16" What should I do? (and yes i know i mentioned "discord-js", I already corrected that)

RileCraft commented 2 years ago

give the guildMemberAdd file code and loadEvents code

Arex69 commented 2 years ago

guildMemberAdd.js - https://pastebin.com/v5A6mxLV loadEvents.js - https://pastebin.com/LQT7EreB

RileCraft commented 2 years ago
module.exports = {
name: "guildMemberAdd",
run: async(member) => {
enter code
}
}

ur format was wrong

Arex69 commented 2 years ago

Finally, my saviour. Thank you so much!