#Events.GuildBanAdd
22 messages · Page 1 of 1 (latest)
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
That was in older version of d.js
You defined user as a property of ban
Then ur not using v14
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));
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