Skip to main content

How do i set up discord auto add role with stripe 

Hi ​@receie 

Which Stripe Zap trigger event are you trying to use?

https://zapier.com/apps/stripe/integrations#triggers-and-actions

 

Review the available Discord Zap actions: 

https://zapier.com/apps/discord/integrations#triggers-and-actions


im trying to setup where a role gets auto added to a member after payment is completed via stripe ​@Troy Tessalone  


@receie 

Try these Zap steps

  1. Trigger: Stripe - Checkout Session Completed
  2. Action: Filter
    1. Configure if you are trying to filter the data from Stripe
    2. Help: https://zapier.com/apps/filter/integrations#help
  3. Action: Discord - Find User
    1. NOTE: There is no Discord Zap action for adding a User
  4. Action: Discord - Add Role
    1. Map the ID of the User from the previous step

 

 


what do i select here ​@Troy Tessalone 


@receie 

You would need to map a variable from a previous Zap step that is the Username of an existing Discord User.

 

If that is not available, then you may have to explore using the Discord API for possible workarounds: https://discord.com/developers/docs/reference

 

Zap action: Discord - API Request

 


@receie 

Another approach would be to create a lookup table to translate existing Discord Usernames to an Email Address that comes from Stripe.

 


thanks for help i still dont know how to doit ​@Troy Tessalone 


@receie 

Help links for getting started with Zapier: https://help.zapier.com/hc/en-us/categories/22232904419341-Getting-started


Hey ​@receie! 👋

Can you add a required field at checkout for people to enter their Discord username?

If so, your Stripe trigger can pass that username straight into your Discord actions. If not, you won’t be able to use the Find User action, since it only looks up users by Discord username—and Discord’s API doesn’t let you search by email. (If it did, you could grab the email from Stripe and use an API Request action to find them.)

Is this user already on your server? If they’re not, you could instead have the Zap email them a special invite link, then use a bot to auto-assign their role once they join.

Would either of those approaches work for you?