Discord Bot | send message error: "Missing Access" when trying to select user

When I use the discord bot as a step in a workflow, I can’t select a user. There pops up a configuration error, when I click on the specific field:

This is the error (in case, someone searches for this error code in plain text):

Configuration error:
Error: Request failed with status code 403: {“message”:“Missing Access”,“code”:50001}

I thought, this must be something with the access rights for this specific bot, so I checked the scope “bot” and the permissions “administrator”. I assume, when the bot has “administrator” permissions, it should be able to send messages. (I wanted to add a screenshot of the OAuth2 settings of this bot, but as a new user I can only add 1 media to my this thread – Here is the uploaded image: https://pipedream.com/community/uploads/default/original/2X/d/d2f64f32366999058b3da5cc5bd347c640ed3153.png).

Questions

  • Am I doing something wrong?
  • Or am I missing something here to give access to sending messages to specific users (not just one or more channels)?

EDIT – SOLUTION
See this answer by @vunguyenhung:

Hi @formlos, I think you might need to also enable this Server Member Intent to list the Guild member

. Could you try it?

1 Like

@vunguyenhung HOORAY – this is it! now it works. :+1::tada:

Maybe this should be added to the docs?

Yeah, good suggestion!

Hello @pierce, could you update the doc to recommend enable this Server Member Intent permission if they’d like to use some actions? Thank you so much!

1 Like

@vunguyenhung I wonder if we could return a more descriptive message with a link to the right page etc in the ConfigurationError for that specific error on that prop. What do you think?

@danny, I think it is possible though not very user-friendly. Since after setting up the Discord Bot, the user will still faced an error to know that they need to go back to change the Discord Bot configuration.

IMO, it would be better if we have detailed permission instructions for users to setup everything with Discord Bot initially, then the Pipedream actions will work without error.

1 Like

From a user perspective, both ways would be perfect:

  • So I get to know all the right steps when looking at the docs.
  • And if I don’t have a look in the docs, the error message could guide me to the right solution/settings.
1 Like

Great suggestion. I’m updating the Bot creation guide here: https://pipedream.com/apps/discord-bot#overview

@Leo can you create a ticket to update the Configuration Error also? We should point users to those instructions, in the error message.

Hi @danny, I’ve created the ticket here: [IMPROVEMENT] Discord Bot: Improve Configuration Error when there's permission error on User prop · Issue #5138 · PipedreamHQ/pipedream · GitHub

Could you advice the error message text to the ticket?

Added to the ticket

1 Like