server: add a missing intent for greeting new members

This commit is contained in:
liushuyu 2021-10-28 15:59:44 -06:00
parent e2fb430042
commit 16455f3d33
No known key found for this signature in database
GPG Key ID: 23D1CE4534419437

View File

@ -16,7 +16,7 @@ interface IModuleMap {
let cachedModules: IModuleMap = {}; let cachedModules: IModuleMap = {};
let cachedTriggers: ITrigger[] = []; 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 rulesTrigger = process.env.DISCORD_RULES_TRIGGER;
const rluesRole = process.env.DISCORD_RULES_ROLE; const rluesRole = process.env.DISCORD_RULES_ROLE;
const mediaUsers = new Map(); const mediaUsers = new Map();