From bbfb7fdf892bfb5872a0c23187ca64d796d67a86 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Fri, 20 Jan 2023 03:41:09 +0100 Subject: [PATCH] add messagecontent intent --- src/utils/client.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/utils/client.ts b/src/utils/client.ts index 448b882..870bd3d 100644 --- a/src/utils/client.ts +++ b/src/utils/client.ts @@ -7,7 +7,11 @@ import { Database } from "sqlite3"; /** Creation of the client and definition of its properties. */ export default async () => { const client: Client = new Client({ - intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMessages], + intents: [ + GatewayIntentBits.Guilds, + GatewayIntentBits.GuildMessages, + GatewayIntentBits.MessageContent, + ], }); client.config = {