When you start building your business on Billgang, you may want to sell access to a private Discord community, automatically upgrade an existing customer role, or require a specific role to purchase a digital product.
Those are all acceptable use cases with a custom Discord bot on Billgang. In this quick tutorial, we'll go through how to create a custom Discord bot, connect your Discord bot authorization code, and start managing your members within your business dashboard.
To get started with setting up your own custom Discord bot for your business on Billgang, visit the business dashboard: https://dash.billgang.com/discord-bot/builder.
Connect Discord Account
When first setting up a custom Discord bot, you'll first want to connect your main Discord account. If you don't have an account linked, tap on the "Connect Your Discord" button.
Alternatively, you can also connect your Discord account via your account settings here: https://dash.billgang.com/settings/integrations.
Select Discord Bot
We currently support two options when first creating a custom Discord bot, a standard bot and a secured bot.
For maximum impact and data security, we strongly recommend larger businesses create and scale with a secured bot for their Discord-based community.
Standard Bot
A standard bot is a basic bot geared for quick setup businesses. Potential cases may be simply using this bot to add a user to your server or receive notifications to specific channels. Most businesses will fall into this classification.
Secured Bot
A secured bot has some of the bells and whistles that you won't see supported through a standard bot. This includes additional security parameters, such as a secondary bot where you can authorize (store users) members and at some point in the future, automatically restore them to your community.
Secured bots also include additional customization, such as reduced branding. The primary bot will act as the core bot for authentication and redirects. The secondary bot will host additional services that’ll assist the primary bot functions.
Important: When setting up your Discord bot, be sure to enable all required intents such as presence, server members, and message content intent toggles.
Discord Bot Credentials
Visit the applications page of Discord’s developer platform and create a new bot or edit any previously created bot. Tap on the bot you want to host on Billgang, then copy the Client ID and Client Secret.
Once you've entered the client ID and client secret in the input fields on the business dashboard, you'll want to click on "Bot" on the left sidebar, then copy (or generate) the token and paste it into the input field next to the client secret.
Enable Intents
This is an important step you shouldn't skip, failure to enable intents will result in your Discord bot not properly functioning. When setting up your Discord bot, be sure to enable all required intents such as presence, server members, and message content intent toggles.
To double confirm, the toggle should look like this and be enabled across the "Privileged Gateway Intents" section within the "Bot" page.
Redirect URL
For select businesses, you'll see a pop-up for a specific redirect URL you'll need to set within the OAuth2 section of your bot for customer authentication to properly work for your bot.
If you don't see the popup and want to bring your custom bot online, simply copy the link below and enter it into the redirects field within the OAuth2 section:
Customize Discord Bot
Once you've correctly entered in the client ID, client secret, and bot token for whichever path you've selected, you should now be able to customize your Discord bot.
If you'd like to customize the bot name and avatar, you should be able to do so via the Discord developer platform.
With our limited, but impactful, customization options, you can:
Customize the bot status (online, away, offline, do not disturb) to fit with your branding identity.
Set the bot activity to fit any new marketing text you'd like to push within your community.
Businesses can only disable Billgang branding on our Scale plan. Feel free to upgrade your plan here.
Verify Bot Status
That's it! Your custom Discord bot should now be online and automatically add customers to your server, verify the requirements to purchase products or upgrade their roles within your server after an upgrade.
If you're experiencing issues with your custom Discord bot, Billgang Support is only a few messages away. Get in touch with our team: https://support.billgang.com/en/articles/8915859-how-do-i-contact-billgang-support.