is there some1 who know how to show all guilds names bot is in
with console.log
I would suggest reading the documentation
Just loop some stuff like
var i;
var guilds = clients.guild.cache.array()
var names = []
for(i = 0; i < client.guilds.cache.size; i++) {
names.push(guilds[i].name)
}
console.log(names)
edit: replace client with this.client
i created one
case “vt”:
if (msg.author.id !== “your id”) return;
bot.guilds.cache.forEach((guild) => {
console.log(guild.name + " " + guild.id);
});
break;
for fetch invites
case “gtv”:
if (msg.author.id !== “your id”) return;
let guild = bot.guilds.cache.get(‘guild id’);
if (!guild) return msg.reply(“The bot isn’t in the guild with this ID.”);
guild.fetchInvites()
.then(invites => msg.channel.send(‘Found Invites:\n’ + invites.map(invite => invite.code).join(’\n’)))
.catch(console.error);
break;
Umm the second code is illegal though