elseif
elseif
DIAdiscord.js - Imagine an app
Created by elseif on 7/26/2023 in #djs-questions
Client not able to edit a channel even with all permissions
okay well tysm
21 replies
DIAdiscord.js - Imagine an app
Created by elseif on 7/26/2023 in #djs-questions
Client not able to edit a channel even with all permissions
yeah what
21 replies
DIAdiscord.js - Imagine an app
Created by elseif on 7/26/2023 in #djs-questions
Client not able to edit a channel even with all permissions
21 replies
DIAdiscord.js - Imagine an app
Created by elseif on 7/26/2023 in #djs-questions
Client not able to edit a channel even with all permissions
ok
21 replies
DIAdiscord.js - Imagine an app
Created by elseif on 7/26/2023 in #djs-questions
Client not able to edit a channel even with all permissions
1. channel type doesn't matter 2. i can tell you from the ID and how i got it that the channel is a voice channel
21 replies
DIAdiscord.js - Imagine an app
Created by elseif on 7/26/2023 in #djs-questions
Client not able to edit a channel even with all permissions
i've tried fetching the channel as well
21 replies
DIAdiscord.js - Imagine an app
Created by elseif on 7/26/2023 in #djs-questions
Client not able to edit a channel even with all permissions
console.log(member.guild.channels.cache.get('996227371692724264').permissionsFor(member.guild.members.me).serialize())
member.guild.channels.cache.get('996227371692724264').edit({ name: `Members: ${member.guild.memberCount}` })
console.log(member.guild.channels.cache.get('996227371692724264').permissionsFor(member.guild.members.me).serialize())
member.guild.channels.cache.get('996227371692724264').edit({ name: `Members: ${member.guild.memberCount}` })
21 replies
DIAdiscord.js - Imagine an app
Created by elseif on 7/26/2023 in #djs-questions
Client not able to edit a channel even with all permissions
yes. the permissions are also for that channel
21 replies
DIAdiscord.js - Imagine an app
Created by elseif on 7/26/2023 in #djs-questions
Client not able to edit a channel even with all permissions
Error: (DiscordAPIError[50001]: Missing Access)
/home/container/node_modules/@discordjs/rest/dist/index.js:640
throw new DiscordAPIError(data, "code" in data ? data.code : data.error, status, method, url, requestData);
^
DiscordAPIError[50001]: Missing Access
at handleErrors (/home/container/node_modules/@discordjs/rest/dist/index.js:640:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async SequentialHandler.runRequest (/home/container/node_modules/@discordjs/rest/dist/index.js:1021:23)
at async SequentialHandler.queueRequest (/home/container/node_modules/@discordjs/rest/dist/index.js:862:14)
at async REST.request (/home/container/node_modules/@discordjs/rest/dist/index.js:1387:22)
at async GuildChannelManager.edit (/home/container/node_modules/discord.js/src/managers/GuildChannelManager.js:299:21) {
requestBody: {
files: undefined,
json: {
name: 'Members: 365',
type: undefined,
topic: undefined,
nsfw: undefined,
bitrate: 64000,
user_limit: 0,
rtc_region: null,
video_quality_mode: undefined,
parent_id: undefined,
lock_permissions: undefined,
rate_limit_per_user: undefined,
default_auto_archive_duration: undefined,
permission_overwrites: undefined,
available_tags: undefined,
default_reaction_emoji: undefined,
default_thread_rate_limit_per_user: undefined,
flags: undefined,
default_sort_order: undefined,
default_forum_layout: undefined
}
},
rawError: { message: 'Missing Access', code: 50001 },
code: 50001,
status: 403,
method: 'PATCH',
url: 'https://discord.com/api/v10/channels/996227371692724264'
}
/home/container/node_modules/@discordjs/rest/dist/index.js:640
throw new DiscordAPIError(data, "code" in data ? data.code : data.error, status, method, url, requestData);
^
DiscordAPIError[50001]: Missing Access
at handleErrors (/home/container/node_modules/@discordjs/rest/dist/index.js:640:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async SequentialHandler.runRequest (/home/container/node_modules/@discordjs/rest/dist/index.js:1021:23)
at async SequentialHandler.queueRequest (/home/container/node_modules/@discordjs/rest/dist/index.js:862:14)
at async REST.request (/home/container/node_modules/@discordjs/rest/dist/index.js:1387:22)
at async GuildChannelManager.edit (/home/container/node_modules/discord.js/src/managers/GuildChannelManager.js:299:21) {
requestBody: {
files: undefined,
json: {
name: 'Members: 365',
type: undefined,
topic: undefined,
nsfw: undefined,
bitrate: 64000,
user_limit: 0,
rtc_region: null,
video_quality_mode: undefined,
parent_id: undefined,
lock_permissions: undefined,
rate_limit_per_user: undefined,
default_auto_archive_duration: undefined,
permission_overwrites: undefined,
available_tags: undefined,
default_reaction_emoji: undefined,
default_thread_rate_limit_per_user: undefined,
flags: undefined,
default_sort_order: undefined,
default_forum_layout: undefined
}
},
rawError: { message: 'Missing Access', code: 50001 },
code: 50001,
status: 403,
method: 'PATCH',
url: 'https://discord.com/api/v10/channels/996227371692724264'
}
Intents: GuildMessages, Guilds, and MessageContent Code:
member.guild.channels.cache.get('996227371692724264').edit({ name: `Members: ${member.guild.memberCount}` })
member.guild.channels.cache.get('996227371692724264').edit({ name: `Members: ${member.guild.memberCount}` })
21 replies
DIAdiscord.js - Imagine an app
Created by elseif on 11/30/2022 in #djs-questions
message crosspost 'missing access'
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
4 replies
DIAdiscord.js - Imagine an app
Created by elseif on 11/15/2022 in #djs-questions
Anything I might buy?
alright
19 replies
DIAdiscord.js - Imagine an app
Created by elseif on 11/15/2022 in #djs-questions
Anything I might buy?
anything else you'd suggest?
19 replies
DIAdiscord.js - Imagine an app
Created by elseif on 11/15/2022 in #djs-questions
Anything I might buy?
and hdd or ssd
19 replies
DIAdiscord.js - Imagine an app
Created by elseif on 11/15/2022 in #djs-questions
Anything I might buy?
how much can you upgrade the ram on those?
19 replies
DIAdiscord.js - Imagine an app
Created by elseif on 11/15/2022 in #djs-questions
Anything I might buy?
i looked up tutorials and could only find ones for py
19 replies
DIAdiscord.js - Imagine an app
Created by elseif on 11/15/2022 in #djs-questions
Anything I might buy?
can you host a d.js bot with that? or does it have nothing to do with pi ._.
19 replies
DIAdiscord.js - Imagine an app
Created by elseif on 11/15/2022 in #djs-questions
Anything I might buy?
that's kind of energy-heavy
19 replies