#DiscordAPIError[50001] Missing Access

7 messages · Page 1 of 1 (latest)

placid shuttle
#

When I send messages in chat and run commands, buttons and etc this occur (I have invited bot with bot and application.commands scopes):

    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]
});```
celest yarrowBOT
#

• 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.

cobalt flower
placid shuttle
cobalt flower
#

How many shards?

placid shuttle