Closed xMaxximum closed 3 years ago
Your error is because you called .map()
with no arguments. This is not a discord.js bug - you used the method wrong.
If you're unsure about something, you should ask in the Discord server or create a new discussion as this issue tracker is only for bug reports and enhancement suggestions.
Issue description
this code is executed on messageCreate. I was unable to figure out when exactly the program terminates but this is the error stack:
the code at
at Object.execute (C:\code\js\kciw-remake\events\messageCreate.js:18:40)
is this:const afks = message.mentions.users.map();
the code at
at Client.<anonymous> (C:\code\js\kciw-remake\index.js:42:45)
is this:client.on(event.name, (...args) => event.execute(...args, client));
<-- this is executing normally so the problem isn't thereCodesample
discord.js version
13.1.0
Node.js version
16.9.1
Operating system
Windows
Priority this issue should have
Medium (should be fixed soon)
Which partials do you have configured?
No Partials
Which gateway intents are you subscribing to?
GUILDS, GUILD_MEMBERS, GUILD_WEBHOOKS, GUILD_PRESENCES, GUILD_MESSAGES, DIRECT_MESSAGES
I have tested this issue on a development release
discord.js@13.2.0-dev.1632312194.92f6471