const botMember = await role.guild.members.fetch(executor.id).catch(() => null);
if (botMember && botMember.user.bot) {
return;
}
So Im trying not to trigger this GuildRoleCreate event if user adds bot to a server but I cant make it work. Can someone guide me thru how can I do it. bots create a role when joining the server and this event triggers also same GuildRoleDelete when any bot gets kicked my bot counts it as user kicked the bot.
New contributor
Oğulcan Ketenci is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.