This driver allows you to interact with the Discord API through your Membrane graph.
To set up the Discord driver, follow these steps:
-
Create an application and obtain the PUBLIC KEY.
- Optional: Configure an interactions endpoint to receive interactions (outgoing webhooks). Use
https://<PROGRAM-ENDPOINT-URL>/interactions
.
- Optional: Configure an interactions endpoint to receive interactions (outgoing webhooks). Use
-
Create a bot and acquire the BOT TOKEN.
- Add SERVER MEMBERS INTENT and MESSAGE CONTENT INTENT to your bot in Privileged Gateway Intents.
-
Obtain OAuth2 CLIENT ID and CLIENT SECRET.
- Configure the redirect URL in your Discord application:
- In your Discord Developer Portal, navigate to your application's OAuth2 settings.
- Add a Redirect URL. Use
https://<PROGRAM-ENDPOINT-URL>/callback
.
- Configure the redirect URL in your Discord application:
-
Invoke the
:configure
action with TOKEN, CLIENT ID, CLIENT SECRET, and PUBLIC KEY. -
Visit the program's endpoint URL to add the bot to your server.
To obtain the program's endpoint URL, simply right-click on the program's name and select the relevant option to copy the URL.