Link
The /link command allows users to connect their Discord account with their Shopify customer account. This integration enables personalized features and automatic role assignment.
Overview
Account linking creates a secure connection between a user's Discord profile and their Shopify customer data, enabling:
- Automatic customer role assignment
- Personalized order tracking
- Quick access to purchase history
- Enhanced customer support
How to Use
Command: /link
- Run the
/linkcommand in any channel - The bot sends you an ephemeral message (only you can see it) with a verification link
- Click the verification link
- Log in with your Shopify customer account
- Your accounts are automatically linked
- You'll receive a confirmation message in Discord
Example:
/link
The Linking Process
Step 1: Request Link
When you run /link, the bot:
- Checks if your Discord account is already linked
- Generates a unique, secure verification token
- Creates a verification URL valid for 15 minutes
Step 2: Verify Identity
The verification link directs you to a secure web page where you:
- Log in to your Shopify customer account
- Confirm you want to link your Discord account
- Authorize the connection
Step 3: Confirmation
Once verified:
- Your accounts are permanently linked
- You receive a confirmation message in Discord
- If configured, you automatically receive the customer role
- Staff members may receive a notification (if enabled in settings)
What Information is Linked?
The bot stores:
- Your Discord User ID
- Your Shopify Customer ID
- Your email address (from Shopify)
- The date/time when accounts were linked
Your Shopify password and payment information are never accessed or stored by the bot.
Already Linked?
If you try to run /link when your account is already linked, you'll see:
🟠 Already Linked
Your Discord account is already linked to a Shopify customer account.
Email: [email protected]
Linked: 2 weeks ago
If you need to update your linked account, please contact a staff member or use `/unlink` first.
Security Features
- Unique Tokens: Each verification link is unique to you and can only be used once
- Time-Limited: Links expire after 15 minutes for security
- Encrypted: All data transmission is encrypted
- Single Use: Tokens cannot be reused after verification
Automatic Role Assignment
If your server has configured:
- A client role in settings
- Auto-assign on join enabled
You'll automatically receive the client role when linking if you have at least one order in the Shopify store.
Unlinking Your Account
If you need to unlink your account:
- Use the
/unlinkcommand - Or contact a server staff member who can use
/unlink-customer
Troubleshooting
"Link expired"
The verification link is only valid for 15 minutes. Run /link again to generate a new link.
"Already linked to another account"
If you previously linked a different Shopify account, you'll need to:
- Run
/unlinkfirst - Then run
/linkagain with the new account
"Unable to find customer account"
Make sure you:
- Have an account on the store's Shopify
- Are using the correct email address
- Have made at least one order (some stores require this)
"Verification failed"
Try these steps:
- Make sure you're logged into the correct Shopify account
- Clear your browser cookies and try again
- Contact a staff member for assistance
For Server Administrators
Setting Up Account Linking
- Configure your web server URL in the bot's
.envfile - Set up the client role in
/settings - Enable auto-assign if desired
- Configure join notifications (optional)
Monitoring Links
All linking activity is logged if you have configured:
- Shopify Commands log channel
- Member Join/Leave log channel
Tips
- Keep your verification link private and secure
- Complete the linking process promptly (within 15 minutes)
- If you change your email on Shopify, you may need to relink
- Contact staff if you encounter any issues