auto bot role
This commit is contained in:
parent
9829642916
commit
d44014224d
|
|
@ -9,6 +9,12 @@ export class MemberEvents {
|
|||
await channel.send(
|
||||
`Welcome to **${member.guild.name}** <@${member.user.id}> ! You are member #${member.guild.memberCount}! Get a color role and Operating System role(s) in the Channels & Roles section if you want and enjoy your stay <3`,
|
||||
);
|
||||
if(member.user.bot) {
|
||||
const botRole = member.guild.roles.cache.get(Bun.env.BOT_ROLE!);
|
||||
if(botRole) {
|
||||
await member.roles.add(botRole);
|
||||
}
|
||||
}
|
||||
}
|
||||
@On({ event: "guildMemberRemove" })
|
||||
async memberRemove([member]: ArgsOf<"guildMemberRemove">, client: Client) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue