#Events.GuildBanAdd

22 messages · Page 1 of 1 (latest)

cold surge
#

• What's your exact discord.js npm list discord.js and node node -v version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.

civic carbon
#

How do you call your event‘s execute?

#

And how exactly? Show the code doing it

#

That is the output from console.log(ban)? Could you show the whole output?

#

And is there anything more in that file?

#

I meant your guildBanAdd file

glass sundial
#

That was in older version of d.js

#

You defined user as a property of ban

#

Then ur not using v14

cold surge
#

Line 16 of /discordjs/discord.js/blob/c5d5840fef1f72540f9f76a9f22252f8665d1420/packages/discord.js/src/client/actions/GuildBanAdd.js

16 | if (guild) client.emit(Events.GuildBanAdd, guild.bans._add(data));
glass sundial
#

This is v14.6.0. Note that it only provides a single param (GuildBan object)

#

Run npm why discord.js

#

Just bc it says v14 in ur package.json doesn’t mean v14 is actually installed

#

package.json is just a wish-list

#

Why are you using discord-modals?

#

It’s installed apparently

#

What cmd do you use to run the bot?

#

Could try reinstalling d.js

#

Yea

#

Nothing wrong w/ that, other than it’s not easy to type the function w/ jsdocs or ts

#

bc you put the spread param at the beginning