DiscordAPIError[50001] Missing Access

When I send messages in chat and run commands, buttons and etc this occur (I have invited bot with bot and application.commands scopes):
DiscordAPIError[50001]: Missing Access
at SequentialHandler.runRequest (F:\WETBOT_discordjs_v14\node_modules\discord.js\node_modules\@discordjs\rest\dist\lib\handlers\SequentialHandler.cjs:287:15)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async SequentialHandler.queueRequest (F:\WETBOT_discordjs_v14\node_modules\discord.js\node_modules\@discordjs\rest\dist\lib\handlers\SequentialHandler.cjs:99:14)
at async REST.request (F:\WETBOT_discordjs_v14\node_modules\discord.js\node_modules\@discordjs\rest\dist\lib\REST.cjs:52:22)
at async ChannelManager.fetch (F:\WETBOT_discordjs_v14\node_modules\discord.js\src\managers\ChannelManager.js:123:18)
at async eval (eval at _eval (F:\WETBOT_discordjs_v14\node_modules\discord.js\src\client\Client.js:470:12), <anonymous>:2:31)
at async ShardClientUtil._handleMessage (F:\WETBOT_discordjs_v14\node_modules\discord.js\src\sharding\ShardClientUtil.js:194:64)
DiscordAPIError[50001]: Missing Access
at SequentialHandler.runRequest (F:\WETBOT_discordjs_v14\node_modules\discord.js\node_modules\@discordjs\rest\dist\lib\handlers\SequentialHandler.cjs:287:15)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async SequentialHandler.queueRequest (F:\WETBOT_discordjs_v14\node_modules\discord.js\node_modules\@discordjs\rest\dist\lib\handlers\SequentialHandler.cjs:99:14)
at async REST.request (F:\WETBOT_discordjs_v14\node_modules\discord.js\node_modules\@discordjs\rest\dist\lib\REST.cjs:52:22)
at async ChannelManager.fetch (F:\WETBOT_discordjs_v14\node_modules\discord.js\src\managers\ChannelManager.js:123:18)
at async eval (eval at _eval (F:\WETBOT_discordjs_v14\node_modules\discord.js\src\client\Client.js:470:12), <anonymous>:2:31)
at async ShardClientUtil._handleMessage (F:\WETBOT_discordjs_v14\node_modules\discord.js\src\sharding\ShardClientUtil.js:194:64)
My client:
const { Client, Collection, Partials, GatewayIntentBits } = require("discord.js");
const client = new Client({
intents: [
GatewayIntentBits.GuildBans,
GatewayIntentBits.GuildInvites,
GatewayIntentBits.GuildScheduledEvents,
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildEmojisAndStickers,
GatewayIntentBits.GuildMembers,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.GuildVoiceStates,
GatewayIntentBits.MessageContent,
GatewayIntentBits.DirectMessages,
GatewayIntentBits.GuildMessageReactions,
],
partials: [Partials.Channel]
});
const { Client, Collection, Partials, GatewayIntentBits } = require("discord.js");
const client = new Client({
intents: [
GatewayIntentBits.GuildBans,
GatewayIntentBits.GuildInvites,
GatewayIntentBits.GuildScheduledEvents,
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildEmojisAndStickers,
GatewayIntentBits.GuildMembers,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.GuildVoiceStates,
GatewayIntentBits.MessageContent,
GatewayIntentBits.DirectMessages,
GatewayIntentBits.GuildMessageReactions,
],
partials: [Partials.Channel]
});
2 Replies
d.js docs
d.js docs2y ago
• What's your exact discord.js npm list discord.js and node node -v version? • Post the full error stack trace, not just the top part! • Show your code! • Explain what exactly your issue is. • Not a discord.js issue? Check out #useful-servers.
AnthonyVault
AnthonyVault2y ago
Now i have only one guild where admin permission is granted and same error Im testing it for large bot 1