From 4e2ae7344c92f883de76b16094eee3404275eb15 Mon Sep 17 00:00:00 2001 From: "Navy.gif" Date: Wed, 11 May 2022 15:45:05 +0300 Subject: [PATCH] disable intent --- options.json | 4 ++-- src/structure/components/observers/UtilityHook.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/options.json b/options.json index 7b1554b..f798272 100644 --- a/options.json +++ b/options.json @@ -6,7 +6,7 @@ "132777808362471424" ], "clientOptions": { - "commentedOut": ["REACTION","MESSAGE","USER"], + "commentedOut": ["GUILD_PRESENCES","REACTION","MESSAGE","USER"], "partials": [ "CHANNEL" ], @@ -17,7 +17,7 @@ "GUILD_VOICE_STATES", "GUILD_WEBHOOKS", "GUILD_BANS", - "GUILD_PRESENCES", + "GUILD_MESSAGE_REACTIONS", "DIRECT_MESSAGES" ], diff --git a/src/structure/components/observers/UtilityHook.js b/src/structure/components/observers/UtilityHook.js index ce3e15f..627422d 100644 --- a/src/structure/components/observers/UtilityHook.js +++ b/src/structure/components/observers/UtilityHook.js @@ -41,7 +41,7 @@ class UtilityHook extends Observer { await this.client.storageManager.mongodb.role_cache.updateOne({ member: member.id, guild: guild.id }, { - roles: storeThese, timestamp: Math.floor(Date.now() / 1000) + roles: storeThese, timestamp: Date.now() }); }