From d2cf5743d78027297b1c68eedb143b2c07fced66 Mon Sep 17 00:00:00 2001 From: GhomKrosmonaute Date: Sun, 22 Oct 2023 13:33:35 +0200 Subject: [PATCH] fixed config --- src/config.ts | 20 ++++++++++++++++++++ src/namespaces/tools.ts | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/src/config.ts b/src/config.ts index 56ab0bd2..e2ed908f 100644 --- a/src/config.ts +++ b/src/config.ts @@ -1,7 +1,27 @@ import * as app from "./app.js" export const config: app.Config = { + ignoreBots: true, getPrefix: (message) => { return app.prefix(message.guild) }, + client: { + intents: [ + "GUILDS", + "GUILD_MEMBERS", + "GUILD_BANS", + "GUILD_EMOJIS_AND_STICKERS", + "GUILD_INTEGRATIONS", + "GUILD_WEBHOOKS", + "GUILD_INVITES", + "GUILD_VOICE_STATES", + "GUILD_PRESENCES", + "GUILD_MESSAGES", + "GUILD_MESSAGE_REACTIONS", + "GUILD_MESSAGE_TYPING", + "DIRECT_MESSAGES", + "DIRECT_MESSAGE_REACTIONS", + "DIRECT_MESSAGE_TYPING", + ], + }, } diff --git a/src/namespaces/tools.ts b/src/namespaces/tools.ts index df9091f2..028339ee 100644 --- a/src/namespaces/tools.ts +++ b/src/namespaces/tools.ts @@ -42,7 +42,7 @@ export async function sendLog( export async function createUser(user: { id: string }) { await users.query.insert({ id: user.id, - is_bot: app.client.client.users.cache.get(user.id)?.bot ?? false, + is_bot: app.client.users.cache.get(user.id)?.bot ?? false, }) }