Skip to main content

Discord

By default, Shadow Store comes with a built in Discord Bot. Currently it is required for the login method; however, it optionally has logging features.

Notice

The Discord Bot Token within your Admin Panel > Integration is the same key saved within your .env, so this is NOT a separate bot.

Create Bot & Invite It

We will want to create a fresh Discord Application via the Discord Developer Portal.
Create a new application and add a bot profile.
In the bot tab, you must enable ALL gateway intents.
Also, we recommend you go to the Installation tab and disable User Install and set Install Link to None.
After that, you can invite your bot to your server, use the link below but replace CLIENT_ID_HERE with your bot's ID.

https://discord.com/oauth2/authorize?client_id=CLIENT_ID_HERE&permissions=8&integration_type=0&scope=bot

bot setup

Auto Join server

If an user logs in using Discord, then they will automatically join the server.
This is based on the server ID within Admin Panel > Integration > Discord > Server ID (even though its under the Logs title).

Audit Logs

Certain Data can be automatically sent and logged from site actions into your Discord server.
Admin Panel > Integration > Discord > Channel IDs under the Logs title.
Logs Types:

  • General
    • Login
  • Purchases
  • Invoices
  • Admin
    • Audit Logs & Admin Actions

Example:
Log Example

Auto Customer Role

Customers can automatically be given a general custom role or multiple roles upon a successful purchase.
You must give a valid role ID, so ensure you put the a valid role and do not delete it. Changing the name doesn't matter.

Examples:

  • A single role
    730191102706974823
  • Multiple roles
    730191102706974823,730191823102706974,102706974823730191

Release Notifications

Within Admin Panel > Integration > Discord you will see notifications at the bottom. These are the default channel ID and ping for release notifications. Each release notification can be configured with a different channel & ping, but the default will autofill for easy.

Ping Role ID must be a role ID (1088352657938317372) or the word everyone/here for @everyone/@here.