problem with permission override

problem lies in line 42
No description
No description
DT
d.js toolkit16d ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button!
D
duck16d ago
unlike many other methods, <PermissionOverwriteManager>.create() doesn't take a single options object
DD
d.js docs16d ago
:method: PermissionOverwriteManager#create() Creates permission overwrites for a user or role in this channel, or replaces them if already present.
B
br16d ago
is using PermissionsBitField correct?
D
duck16d ago
sure
B
br16d ago
No description
B
br16d ago
so this is correct?
D
duck16d ago
sorry I bonked on context for a moment there you wouldn't use PermissionsBitField for this please look at the example on the docs
Want results from more Discord servers?
Add your server
More Posts
Confirmation and error messages problem:Hi everybody I'm currently trying to make a slash command with 4 subcommands: The first creates a nset undefinedthis.client.voice.adapters.set(this.id, methods); ^ TypeError: CannCan not read dmsI for somereason can not fetch dms sent to my discord bot using 'messageCreate', I have Direct messwhere would one find the d.js "send a message in a channel" chain in the v14 docssorry if i got the terminology wrong im not super used to JS but where could i find the chain for seERREUR```[ERROR] DiscordAPIError[50035]: Invalid Form Body embeds[0][LIST_ITEM_VALUE_REQUIRED]: List item Is there a way to loop through each guild and channel without getting error using fetch?Basically, right now I am using try/catch without logging the error(s), because it works. But, if I Bot cannot play musicI recently started a bot that play music, everything works just fine, no error, the bot is able to fThis interaction failed but components are workingI'm trying to create an interactive settings command by using interactable dropdown menus and buttoninteraction.channel is null in DMit works for servers, but not in direct message as 'user app'. I already use as suggestions of otheDiscord cdn not working?I'm storing a link of an image attachment `...cdn.discordapp.com/attachments...` and the content is this isn’t really an error but more of a questionHow would you exactly use the presence to detect if a specific role has online members? as i am tryduplicate responsesSlash command Duplicate error!!i keep getting this error trying to refresh my slash cmds using the command deploy from discordjs.gucrash even if I have a trycatchThe bot crashes even if I put a trycatch(error).Trouble with collector and interactionsHere's the part of my code that's causing errors: ```javascript async function handleListReactions(unknown interactionhello everyone i have a ticket bot and when the admin want to close the ticket and press the button What are the exact differences between a Webhook and a Webhook client?I've read the page on the [discordjs.guide](https://discordjs.guide/popular-topics/webhooks.html#whaChecking if a user is mobiile```JS client.on('messageCreate', async (message) => { // Check if the user is online and has pre