From 62f7ce2453d4c0dae7e8a6fb5d0c4c6bce9c996e Mon Sep 17 00:00:00 2001 From: AlienKnight Date: Wed, 15 Mar 2023 20:50:50 -0400 Subject: [PATCH] Use proper enums --- src/Util/Services/discord.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Util/Services/discord.ts b/src/Util/Services/discord.ts index c12df22a..690f5f3b 100644 --- a/src/Util/Services/discord.ts +++ b/src/Util/Services/discord.ts @@ -22,7 +22,7 @@ import metrics from "datadog-metrics"; import settings from "../../../settings.json" assert { type: "json" }; import moment from "moment"; -import { PresenceUpdateStatus } from "discord.js"; +import { PresenceUpdateStatus, GatewayIntentBits } from "discord.js"; import * as botCache from "./botCaching.js"; import { hostname } from "os"; @@ -54,7 +54,7 @@ class Client extends Discord.Client { export const bot = new Client({ allowedMentions: { parse: [] }, - intents: ["Guilds", "GuildMembers", "GuildPresences"], + intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMembers, GatewayIntentBits.GuildPresences], }); bot.on("guildBanRemove", async (ban) => {