rubii
rubii
DIAdiscord.js - Imagine an app
Created by rubii on 8/2/2024 in #djs-questions
Cannot create permissionOverwrites for users with server booster
No description
18 replies
DIAdiscord.js - Imagine an app
Created by rubii on 8/2/2024 in #djs-questions
Cannot create permissionOverwrites for users with server booster
So I supposed it should already have the other roles that it needs
18 replies
DIAdiscord.js - Imagine an app
Created by rubii on 8/2/2024 in #djs-questions
Cannot create permissionOverwrites for users with server booster
But what's strange is that it works for other members who don't have the Server Booster role, and only gives error to this one person (that have the Booster role)...
18 replies
DIAdiscord.js - Imagine an app
Created by rubii on 8/2/2024 in #djs-questions
Cannot create permissionOverwrites for users with server booster
The bot currently has ManageChannels and ManageRoles. But also before that line of code, I have checked the bot's permission in that channel (line 174:
if (channel.permissionsFor(interaction.guild.member.me).has(PermissionsBitField.Flags.ViewChannel)) {
if (channel.permissionsFor(interaction.guild.member.me).has(PermissionsBitField.Flags.ViewChannel)) {
, shouldn't that prevent the bot to access channels that it can't view already?
18 replies
DIAdiscord.js - Imagine an app
Created by rubii on 8/2/2024 in #djs-questions
Cannot create permissionOverwrites for users with server booster
No description
18 replies
DIAdiscord.js - Imagine an app
Created by rubii on 8/2/2024 in #djs-questions
Cannot create permissionOverwrites for users with server booster
(Line 175 is the code I posted in the question!)
18 replies
DIAdiscord.js - Imagine an app
Created by rubii on 8/2/2024 in #djs-questions
Cannot create permissionOverwrites for users with server booster
throw new DiscordAPIError(data, "code" in data ? data.code : data.error, status, method, url, requestData);
^

DiscordAPIError[50013]: Missing Permissions
at handleErrors (/app/node_modules/@discordjs/rest/dist/index.js:722:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async SequentialHandler.runRequest (/app/node_modules/@discordjs/rest/dist/index.js:1120:23)
at async SequentialHandler.queueRequest (/app/node_modules/@discordjs/rest/dist/index.js:953:14)
at async _REST.request (/app/node_modules/@discordjs/rest/dist/index.js:1266:22)
at async PermissionOverwriteManager.upsert (/app/node_modules/discord.js/src/managers/PermissionOverwriteManager.js:107:5)
at async /app/commands/apolomute.js:175:15 {
requestBody: {
files: undefined,
json: {
id: '548655063615275027',
type: 1,
allow: PermissionsBitField { bitfield: 0n },
deny: PermissionsBitField { bitfield: 70746701301760n }
}
},
rawError: { message: 'Missing Permissions', code: 50013 },
code: 50013,
status: 403,
method: 'PUT',
url: 'https://discord.com/api/v10/channels/780526772231077922/permissions/548655063615275027'
}
throw new DiscordAPIError(data, "code" in data ? data.code : data.error, status, method, url, requestData);
^

DiscordAPIError[50013]: Missing Permissions
at handleErrors (/app/node_modules/@discordjs/rest/dist/index.js:722:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async SequentialHandler.runRequest (/app/node_modules/@discordjs/rest/dist/index.js:1120:23)
at async SequentialHandler.queueRequest (/app/node_modules/@discordjs/rest/dist/index.js:953:14)
at async _REST.request (/app/node_modules/@discordjs/rest/dist/index.js:1266:22)
at async PermissionOverwriteManager.upsert (/app/node_modules/discord.js/src/managers/PermissionOverwriteManager.js:107:5)
at async /app/commands/apolomute.js:175:15 {
requestBody: {
files: undefined,
json: {
id: '548655063615275027',
type: 1,
allow: PermissionsBitField { bitfield: 0n },
deny: PermissionsBitField { bitfield: 70746701301760n }
}
},
rawError: { message: 'Missing Permissions', code: 50013 },
code: 50013,
status: 403,
method: 'PUT',
url: 'https://discord.com/api/v10/channels/780526772231077922/permissions/548655063615275027'
}
18 replies
DIAdiscord.js - Imagine an app
Created by rubii on 8/2/2024 in #djs-questions
Cannot create permissionOverwrites for users with server booster
Is it not possible to still keep that role but mute them? D:
18 replies
DIAdiscord.js - Imagine an app
Created by rubii on 8/2/2024 in #djs-questions
Cannot create permissionOverwrites for users with server booster
It works well for normal members but just not those with "server booster" role
18 replies
DIAdiscord.js - Imagine an app
Created by rubii on 8/2/2024 in #djs-questions
Cannot create permissionOverwrites for users with server booster
Oh and for context, I have checked all of the conditions (bot should be of higher role than target user, bot has permission to kick, bot cannot kick guild owner and etc)
18 replies
DIAdiscord.js - Imagine an app
Created by rubii on 6/27/2024 in #djs-questions
Permission needed for permissionOverwrite method
I just figured out the issue! Turns out the bot cannot access private channels, and I think it's because it doesn't have admin permission. Is it not possible for a bot without admin permission to view private channel?
17 replies
DIAdiscord.js - Imagine an app
Created by rubii on 6/27/2024 in #djs-questions
Permission needed for permissionOverwrite method
No description
17 replies
DIAdiscord.js - Imagine an app
Created by rubii on 6/27/2024 in #djs-questions
Permission needed for permissionOverwrite method
when i logged this (
channel.permissionsFor(guild.members.me).toArray()
channel.permissionsFor(guild.members.me).toArray()
), it's giving all the permission i think:
CreateInstantInvite,KickMembers,BanMembers,ManageChannels,ManageGuild,AddReactions,ViewAuditLog,PrioritySpeaker,Stream,SendMessages,SendTTSMessages,ManageMessages,EmbedLinks,AttachFiles,ReadMessageHistory,MentionEveryone,UseExternalEmojis,ViewGuildInsights,Connect,Speak,MuteMembers,DeafenMembers,MoveMembers,UseVAD,ChangeNickname,ManageNicknames,ManageRoles,ManageWebhooks,ManageEmojisAndStickers,ManageGuildExpressions,UseApplicationCommands,RequestToSpeak,ManageEvents,ManageThreads,CreatePublicThreads,CreatePrivateThreads,UseExternalStickers,SendMessagesInThreads,UseEmbeddedActivities,ModerateMembers,ViewCreatorMonetizationAnalytics,UseSoundboard,UseExternalSounds,SendVoiceMessages
CreateInstantInvite,KickMembers,BanMembers,ManageChannels,ManageGuild,AddReactions,ViewAuditLog,PrioritySpeaker,Stream,SendMessages,SendTTSMessages,ManageMessages,EmbedLinks,AttachFiles,ReadMessageHistory,MentionEveryone,UseExternalEmojis,ViewGuildInsights,Connect,Speak,MuteMembers,DeafenMembers,MoveMembers,UseVAD,ChangeNickname,ManageNicknames,ManageRoles,ManageWebhooks,ManageEmojisAndStickers,ManageGuildExpressions,UseApplicationCommands,RequestToSpeak,ManageEvents,ManageThreads,CreatePublicThreads,CreatePrivateThreads,UseExternalStickers,SendMessagesInThreads,UseEmbeddedActivities,ModerateMembers,ViewCreatorMonetizationAnalytics,UseSoundboard,UseExternalSounds,SendVoiceMessages
17 replies
DIAdiscord.js - Imagine an app
Created by rubii on 6/27/2024 in #djs-questions
Permission needed for permissionOverwrite method
i tried checking only needed permission at first but it just doesn't work, so i'm so desperate to the point that i checked everything but admin and it still doesnt work T T
17 replies
DIAdiscord.js - Imagine an app
Created by rubii on 6/27/2024 in #djs-questions
Permission needed for permissionOverwrite method
yes I checked all the permission but admin :,,,,,,,(
17 replies
DIAdiscord.js - Imagine an app
Created by rubii on 6/27/2024 in #djs-questions
Permission needed for permissionOverwrite method
yes it is. when i see the channel, i see the bot is online
17 replies
DIAdiscord.js - Imagine an app
Created by rubii on 6/27/2024 in #djs-questions
Permission needed for permissionOverwrite method
also this happens after i issued the slash command
17 replies
DIAdiscord.js - Imagine an app
Created by rubii on 6/27/2024 in #djs-questions
Permission needed for permissionOverwrite method
it's for some personal reason, specifically i want the user to not be able to send message but able to click some buttons so that's why i customize this "mute"
17 replies
DIAdiscord.js - Imagine an app
Created by rubii on 6/27/2024 in #djs-questions
Permission needed for permissionOverwrite method
The full code that causes the error is
await channel.permissionOverwrites.create(user.id,
{ 'SendMessages': false,
'SendMessagesInThreads': false,
'SendVoiceMessages': false,
});
await channel.permissionOverwrites.create(user.id,
{ 'SendMessages': false,
'SendMessagesInThreads': false,
'SendVoiceMessages': false,
});
17 replies
DIAdiscord.js - Imagine an app
Created by rubii on 2/20/2024 in #djs-questions
Error - Opening handshake timed out
Then does that mean there is some problem with my local host?
4 replies