message crosspost 'missing access'

i'm trying to crosspost a message, but being told i'm "missing access" (DiscordAPIError[50001]: Missing Access). the bot role specifically has send messages, manage messages, and manage channel permissions in the specific channel, with no other roles. i don't want to enable administrator as people inviting the bot will likely feel uncomfortable requiring that permission. what's going on 👀
3 Replies
Unknown User
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
elseif
elseifOP•2y ago
discord v14.7.0 node v16.13.2
DiscordAPIError[50001]: Missing Access
at SequentialHandler.runRequest (C:\Users\Owner\Desktop\VSCode\node_modules\@discordjs\rest\dist\index.js:667:15)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async SequentialHandler.queueRequest (C:\Users\Owner\Desktop\VSCode\node_modules\@discordjs\rest\dist\index.js:464:14)
at async REST.request (C:\Users\Owner\Desktop\VSCode\node_modules\@discordjs\rest\dist\index.js:910:22)
at async MessageManager.crosspost (C:\Users\Owner\Desktop\VSCode\node_modules\discord.js\src\managers\MessageManager.js:195:18) {
requestBody: { files: undefined, json: undefined },
rawError: { message: 'Missing Access', code: 50001 },
code: 50001,
status: 403,
method: 'POST',
url: 'https://discord.com/api/v10/channels/1047300085832228904/messages/1047306157481537536/crosspost'
}
DiscordAPIError[50001]: Missing Access
at SequentialHandler.runRequest (C:\Users\Owner\Desktop\VSCode\node_modules\@discordjs\rest\dist\index.js:667:15)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async SequentialHandler.queueRequest (C:\Users\Owner\Desktop\VSCode\node_modules\@discordjs\rest\dist\index.js:464:14)
at async REST.request (C:\Users\Owner\Desktop\VSCode\node_modules\@discordjs\rest\dist\index.js:910:22)
at async MessageManager.crosspost (C:\Users\Owner\Desktop\VSCode\node_modules\discord.js\src\managers\MessageManager.js:195:18) {
requestBody: { files: undefined, json: undefined },
rawError: { message: 'Missing Access', code: 50001 },
code: 50001,
status: 403,
method: 'POST',
url: 'https://discord.com/api/v10/channels/1047300085832228904/messages/1047306157481537536/crosspost'
}
client.on(Events.MessageCreate, message => {
message.crosspost()
console.log(`Crosspostable: ${message.crosspostable}\nIndex: ${(db.get(`${message.guild.id}.exceptions`) || []).indexOf(message.channelId)}`)
// if (message.crosspostable && db.get(`${message.guild.id}.status`) == true && (db.get(`${message.guild.id}.exceptions`) || []).indexOf(message.channelId) == -1) message.crosspost()
})
client.on(Events.MessageCreate, message => {
message.crosspost()
console.log(`Crosspostable: ${message.crosspostable}\nIndex: ${(db.get(`${message.guild.id}.exceptions`) || []).indexOf(message.channelId)}`)
// if (message.crosspostable && db.get(`${message.guild.id}.status`) == true && (db.get(`${message.guild.id}.exceptions`) || []).indexOf(message.channelId) == -1) message.crosspost()
})
issue in thread title
Unknown User
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server