#Ticket bot not granting permission for user

17 messages · Page 1 of 1 (latest)

chilly elkBOT
#
  • What's your exact discord.js npm list discord.js and node node -v version?
  • 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
ember siren
#

Can you do this:

await channel.permissionOverwrites.edit(interaction.user.id, { ViewChannel: true, SendMessages: true }, { type: OverwriteType.Member })
fathom dew
#

OverwriteType.User doesnt exist.

OverwriteType.Member however does exist

ember siren
#

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

void night
#

This sounds like a race condition, you want to do all permission updates in one go.

pseudo oriole
#

You‘d even want to set the overwrites in the create call directly.

queen charm
#

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

pseudo oriole
#

ViewChannel is both view and read permission waitWhat

worthy troutBOT