- Using the Discord Webhook integration.
- Using the Discord Bot integration.
- Go to the channel you want to add the webhook to (you need to be an admin of the discord server).
- Right-click the channel and select “Edit Channel”.
- Integrations -> Webhooks -> New Webhook
- Copy the webhook URL.
- After obtaining the webhook URL in the previous step, you need to store it within the subscriber entity. Doing this ensures that WorldVisa knows where (in which discord channel) to send the notification to. Here’s how to do it:
subscriberIdis a custom identifier used when identifying your users within the WorldVisa Developer Platform.providerIdis a unique provider identifier. Use the provider ID shown in the request example.- The
credentialsfield contains the delivery details. In this case, we use thewebhookUrlproperty to specify the webhook URL generated in the previous step.
- You are all set up and ready to send your first chat message using the WorldVisa REST API in the channel you chose on your discord server.