From fb6ab3f8e825242c586c0036be52fdb623721ee3 Mon Sep 17 00:00:00 2001 From: March 7th <71698422+aiko-chan-ai@users.noreply.github.com> Date: Fri, 15 Jul 2022 01:56:00 +0700 Subject: [PATCH] fix(MessageManager) fetch throw 'Missing Access' --- src/managers/MessageManager.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/managers/MessageManager.js b/src/managers/MessageManager.js index 8b7fa9f..b0fa1db 100644 --- a/src/managers/MessageManager.js +++ b/src/managers/MessageManager.js @@ -221,11 +221,11 @@ class MessageManager extends CachedManager { } // Const data = await this.client.api.channels[this.channel.id].messages[messageId].get(); // Discord Block - // https://canary.discord.com/api/v9/guilds/809133733591384155/messages/search?channel_id=840225732902518825&max_id=957254525360697375&min_id=957254525360697373 + // https://canary.discord.com/api/v9/guilds/809133733591384155/messages/search?max_id=957254525360697375&min_id=957254525360697373 + // Remove channelId from url (around not working) const data = ( await this.client.api.guilds[this.channel.guild.id].messages.search.get({ query: { - channel_id: this.channel.id, max_id: new BigNumber.BigNumber(messageId).plus(1).toString(), min_id: new BigNumber.BigNumber(messageId).minus(1).toString(), },