Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

TypeError: client.guilds.forEach is not a function

// This is for Discord Bots
// Version 12 Syntax is different than the v11

client.guilds.cache.forEach((guild) => {
    console.log(guild.name);
});
 
PREVIOUS NEXT
Tagged: #function
ADD COMMENT
Topic
Name
8+5 =