Using your own Discord bot with SellSN
⚠️ This feature is only available on our Pro plan or higher.
The custom Discord bot with SellSN allows you to put your own branding on the Discord integration provided by SellSN, this allows the "Login with Discord" function and the bot in your server to have your own logo and bot name.
It's pretty easy, find below a step-by-step guide showing how to fully integrate the system.
Create the application
Head over to the Discord Developer Portal and click on the "New application" button in the top right corner of the page, then enter the name of your application or store that you wish to display to users and agree to the Discord Developer Terms (be sure to read them first!). Finally, click the "Create" button.
Give the application keys to SellSN*
Now you have the app created, you need to give the app credentials/keys over to SellSN so we can manage the integration on your behalf. To do this, head over to the SellSN Dashboard and then head over to the "Personalization" tab and then find the "Discord Integration" dropdown.
The below steps are where to go on the Discord Developer Portal to find the required details for your application.
2a. Client/app ID
Head to "General information" and then under "Application ID" click the "Copy" button.
2b. Public Key
Head to "General information" and then under "Public Key" click the "Copy" button.
2c. Client Secret
Head to "OAuth2" and then under "Client Secret" click the "Reset Secret" button.
You may be asked to confirm your password or a 2-factor authentication secret, enter those details and then click the "Copy" button.
2d. Bot Token
Head to "Bot" and then under "Token" click the "Reset Token" button.
You may be asked to confirm your password or a 2-factor authentication secret, enter those details and then click the "Copy" button.
⚠️ Before continuing to Step 3, please ensure you've entered all the details of your application into SellSN and saved the changes, otherwise the bot will fail to be configured correctly!
Configure the application
Finally, we need to configure the application with the required details that will enable the application to function. Firstly, you need to set the "Interactions Endpoint URL", this URL is used to send Discord commands from your bot to our server for processing.
Head over to the "General Information" tab and then find the "Interactions Endpoint URL" and enter https://bot.sellsn.io in the bot and then click "Save Changes".
Finally, you need to configure the OAuth2 redirect URL; head over to the "OAuth2" section, and then find the "Redirects" section. Click the "Add Redirect" button and then enter https://pay.sellsn.io/integrations, finally click "Save changes".
Add the bot to your server
You now need to add the bot to your server, you can do this by heading over to the "OAuth2" section and find the "OAuth2 URL generator".
Check the applications.commands, bot and the Administrator checkboxes and then scroll down to the bottom to find the "Generated URL", copy that URL by clicking the "Copy" button and then navigate to it in your web browser to add the bot to your server.
Video Guide:
What is a custom Discord bot?
The custom Discord bot with SellSN allows you to put your own branding on the Discord integration provided by SellSN, this allows the "Login with Discord" function and the bot in your server to have your own logo and bot name.
How can I set it up?
It's pretty easy, find below a step-by-step guide showing how to fully integrate the system.
Create the application
Head over to the Discord Developer Portal and click on the "New application" button in the top right corner of the page, then enter the name of your application or store that you wish to display to users and agree to the Discord Developer Terms (be sure to read them first!). Finally, click the "Create" button.
Give the application keys to SellSN*
Now you have the app created, you need to give the app credentials/keys over to SellSN so we can manage the integration on your behalf. To do this, head over to the SellSN Dashboard and then head over to the "Personalization" tab and then find the "Discord Integration" dropdown.
The below steps are where to go on the Discord Developer Portal to find the required details for your application.
2a. Client/app ID
Head to "General information" and then under "Application ID" click the "Copy" button.
2b. Public Key
Head to "General information" and then under "Public Key" click the "Copy" button.
2c. Client Secret
Head to "OAuth2" and then under "Client Secret" click the "Reset Secret" button.
You may be asked to confirm your password or a 2-factor authentication secret, enter those details and then click the "Copy" button.
2d. Bot Token
Head to "Bot" and then under "Token" click the "Reset Token" button.
You may be asked to confirm your password or a 2-factor authentication secret, enter those details and then click the "Copy" button.
⚠️ Before continuing to Step 3, please ensure you've entered all the details of your application into SellSN and saved the changes, otherwise the bot will fail to be configured correctly!
Configure the application
Finally, we need to configure the application with the required details that will enable the application to function. Firstly, you need to set the "Interactions Endpoint URL", this URL is used to send Discord commands from your bot to our server for processing.
Head over to the "General Information" tab and then find the "Interactions Endpoint URL" and enter https://bot.sellsn.io in the bot and then click "Save Changes".
Finally, you need to configure the OAuth2 redirect URL; head over to the "OAuth2" section, and then find the "Redirects" section. Click the "Add Redirect" button and then enter https://pay.sellsn.io/integrations, finally click "Save changes".
Add the bot to your server
You now need to add the bot to your server, you can do this by heading over to the "OAuth2" section and find the "OAuth2 URL generator".
Check the applications.commands, bot and the Administrator checkboxes and then scroll down to the bottom to find the "Generated URL", copy that URL by clicking the "Copy" button and then navigate to it in your web browser to add the bot to your server.
Updated on: 14/09/2024
Thank you!