Best answer

Failed to create a role : Class constructor AppError cannot be invoked without 'new'

  • 10 March 2024
  • 5 replies
  • 154 views

Hello

I have this message error. I looked over the forum to find help : Zapier has the permissions to manage webhooks, to send message, to manage roles …. i show you all my tasks.

 do you have any idea on this troubleshoot error ? Thanks in advance :)



 

icon

Best answer by Troy Tessalone 10 March 2024, 17:32

View original

5 replies

Userlevel 7
Badge +14

Hi @ZOO_Lea 

Help article to reference about mapping dynamic variable values to dropdown fields:

https://help.zapier.com/hc/en-us/articles/8496241696141-Add-custom-values-to-dropdown-menu-fields-in-Zaps

 

Hi @Troy Tessalone ,

Thanks for your answer :)
I thought I used custom field, look at my 3rd screen ? isn’t it ok ? what am I doing wrong?

Userlevel 7
Badge +14

@ZOO_Lea 

Make sure to reference the help article for understanding the expected value to pass for a dropdown field.

 

Help article to reference about mapping dynamic variable values to dropdown fields:

https://help.zapier.com/hc/en-us/articles/8496241696141-Add-custom-values-to-dropdown-menu-fields-in-Zaps

Hey Troy!

I’ve been facing the same issues as Lea :)


I use custom variables all the time and they work fine for me, but when it comes to Discord.. it does act weird.

Custom values outside of Discord work fine but when I use it with Discord it displays that exact error that Lea mentioned.


The best thing I can recommend is using the API feature through Webhooks by Zapier.

Create a Webhook step and follow the Discord documentation here:
https://discord.com/developers/docs/resources/guild#add-guild-member-role


It does take a bit to get that all figured out.. but it is possible!

Userlevel 7
Badge +11

Thank you so much for taking the time to share the alternative solution you found, @LukasNDA. It’s much appreciated! 🤗

For others that might not be so familiar with setting up webhooks and would prefer to use the existing Add Role Discord action, I wanted to clarify that when selecting a Custom value for the User field, it will expect to receive an ID number for the user, rather their name/username.

If you don’t know the ID for the user you can add a Find User (Discord) search action to find the user using their username, and obtain their ID number so you can then select that ID in the User field in the Add Role action. 

Hope that helps! 🙂

Reply