Discord does not assign Role by ID (Error 403)

Good day, I hope you have a good day.
Here is a nice community, I would love to hear some advice.

Workflow:
Alert New Row Added (Instant) from Google Sheets (Google sheet has discord usernames) [test passed] =>
Check if New Row Added is null [test passed] =>
Find Username on Discord Server (Is member in the Guild?) [test passed] =>
Assign the Role to this Username by ID founded with Username [test failed] => 403

Bot has all access and can assign Roles but something pushing him away.
Workflow https://pipedream.com/@lightrout/new-line-in-gs-p_ezC7Aj5/
Allow Pipedream Support to access or edit this workflow - ON

status:403
statusText: Forbidden
data{2}
message: Missing Permissions
code:50013

Error Details

    at null.createError (/tmp/__pdg__/dist/code/e51b4803514343079d94cc3790be392962a1c93b90ddeb70b22e68b82c1db5a6/node_modules/.pnpm/axios@0.21.4/node_modules/axios/lib/core/createError.js:16:15)
    at null.settle (/tmp/__pdg__/dist/code/e51b4803514343079d94cc3790be392962a1c93b90ddeb70b22e68b82c1db5a6/node_modules/.pnpm/axios@0.21.4/node_modules/axios/lib/core/settle.js:17:12)
    at IncomingMessage.handleStreamEnd (/tmp/__pdg__/dist/code/e51b4803514343079d94cc3790be392962a1c93b90ddeb70b22e68b82c1db5a6/node_modules/.pnpm/axios@0.21.4/node_modules/axios/lib/adapters/http.js:269:11)
    at IncomingMessage.emit (events.js:412:35)
    at null.endReadableNT (internal/streams/readable.js:1333:12)
    at process.processTicksAndRejections (internal/process/task_queues.js:82:21)

Hi @lightrout

First off, welcome to the Pipedream community. Happy to have you!

Sounds like you may have found a bug in the Discord - Add Role action component.

You can report bug reports on actions and triggers here in our public Pipedream Github Repository:

A Pipedream team developer or community member will investigate and make a new version to attempt to fix it if they can reproduce the bug.

All Pipedream triggers and actions are open source, so you can also contribute your own fix if you’d like.

Learn about how to develop new and modify existing components here: Overview

Thank you! I definitely will.

1 Like

I got error 403 as my bot’s permissions was not enough: be sure that you bot is above the Roles you try to assign (and has a MANAGE ROLES permission as usual).