forked from syntaxbullet/AuroraBot-discord
feat: Introduce dynamic JSON-based configuration for game settings and command toggling via a new admin command.
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
import { Events } from "discord.js";
|
||||
import type { Event } from "@lib/types";
|
||||
|
||||
// Visitor role
|
||||
const event: Event<Events.GuildMemberAdd> = {
|
||||
name: Events.GuildMemberAdd,
|
||||
execute: async (member) => {
|
||||
const role = member.guild.roles.cache.find(role => role.name === "Visitor");
|
||||
const role = member.guild.roles.cache.find(role => role.id === "1449859380269940947");
|
||||
if (!role) return;
|
||||
await member.roles.add(role);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user