From 16455f3d33bd206dcca50f613dc016b558e6cdc5 Mon Sep 17 00:00:00 2001 From: liushuyu Date: Thu, 28 Oct 2021 15:59:44 -0600 Subject: [PATCH] server: add a missing intent for greeting new members --- src/server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server.ts b/src/server.ts index 6a7bbc2..5f4f09b 100644 --- a/src/server.ts +++ b/src/server.ts @@ -16,7 +16,7 @@ interface IModuleMap { let cachedModules: IModuleMap = {}; let cachedTriggers: ITrigger[] = []; -const client = new discord.Client({ intents: discord.Intents.FLAGS.GUILDS | discord.Intents.FLAGS.GUILD_BANS | discord.Intents.FLAGS.GUILD_MESSAGES }); +const client = new discord.Client({ intents: discord.Intents.FLAGS.GUILD_MEMBERS | discord.Intents.FLAGS.GUILDS | discord.Intents.FLAGS.GUILD_BANS | discord.Intents.FLAGS.GUILD_MESSAGES }); const rulesTrigger = process.env.DISCORD_RULES_TRIGGER; const rluesRole = process.env.DISCORD_RULES_ROLE; const mediaUsers = new Map();