- What's your exact discord.js
npm list discord.jsand nodenode -vversion? - Not a discord.js issue? Check out #1081585952654360687.
- 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!
✅Marked as resolved by OP
#Ticket bot not granting permission for user
17 messages · Page 1 of 1 (latest)
Can you do this:
await channel.permissionOverwrites.edit(interaction.user.id, { ViewChannel: true, SendMessages: true }, { type: OverwriteType.Member })
OverwriteType.User doesnt exist.
OverwriteType.Member however does exist
My bad
Any errors?
Yeah it granted the perms
Ask strix#0890 to refresh discord maybe?
Even after refreshing discord?
Does audit log state anything else by other bots?
What happens if they try to click No Access?
Can you manually check the thread permission and see if they are there?
I'll ask in the discord dev server about this, don't think this has got to do with djs because your code seems fine
This sounds like a race condition, you want to do all permission updates in one go.
You‘d even want to set the overwrites in the create call directly.
other tickets bots, disabled the everyone view permission, in order to access the channel. the bot / member automatically enable the view permission
not only the send message and read messages
ViewChannel is both view and read permission 
GuildChannelManager#create()
Creates a new channel in the guild.