Peakstone

Discord posts and buyer roles

Post releases and sales to a Discord channel, and give buyers a role in your server with your own bot: setup, permissions and fixes.

What you can do

There are two separate tools, both on the Discord page of your dashboard. Use one, both or neither.

  • Release and sale posts. Peakstone posts to a channel when a release of a listing is published, and when a sale starts.
  • Buyer roles. Your own bot gives a role in your server to people who have access to a paid listing, and takes it away when their access ends.

Peakstone never joins your server itself and never reads your messages. Buyer roles use a bot you create, so you stay in control of it and can delete it at any time.

Release and sale posts

  1. In Discord open the settings of the channel you want, then Integrations, then Webhooks, then New Webhook.
  2. Copy the webhook URL. It starts with https://discord.com/api/webhooks/.
  3. On the Discord page of your dashboard find the listing, paste the URL and pick the events: a new release is published, and a sale has started.
  4. Press Save, then Send test. A test message should appear in the channel.

Each post shows the plugin name, the version, a short part of the changelog and a link to the listing. It never pings anyone. Posts are sent from a queue within about a minute. If Discord is busy Peakstone tries again after 1 minute, 5 minutes, 30 minutes, 2 hours and 12 hours, and then stops.

The webhook URL is stored encrypted and the dashboard only shows its last characters. To change it, paste a new one. Anyone with the URL can post to your channel, so do not share it. If it leaks, delete the webhook in Discord and make a new one.

A sale post is sent when the sale starts. If you cancel the sale before that, nothing is posted.

Create your bot

  1. Open the Discord Developer Portal and choose New Application. Name it for your server.
  2. Open the Bot page. Choose Reset Token and copy the token. Keep it private. Peakstone stores it encrypted and never shows it again.
  3. You do not need any privileged intents. Leave them off.

Add the bot to your server

  1. In the Developer Portal open OAuth2, then URL Generator.
  2. Tick the scope bot. Under bot permissions tick Manage Roles and nothing else.
  3. Open the generated URL, pick your server and authorise.

Make the buyer role

  1. In Server Settings, Roles, create a normal role for buyers, for example the plugin name. Give it no special permissions unless you want buyers to have them.
  2. Turn on Developer Mode in Discord (User Settings, Advanced).
  3. Right-click the role and choose Copy Role ID. Right-click your server name and choose Copy Server ID.

You can use one role for every listing or a different role for each paid listing.

Connect it in Peakstone

  1. On the Discord page, under Buyer roles, paste the bot token and the server ID, and press Connect bot. Peakstone asks Discord whether the token works and whether the bot is in the server.
  2. For each paid listing paste the role ID and press Set role. Peakstone checks that the role exists, that the bot has Manage Roles and that the bot's role is above it, and tells you what to fix if not.

Disconnect removes every role Peakstone gave, then deletes the token, the rules and the list of who holds a role.

When roles are given and removed

Your buyers link their Discord account in their Peakstone account settings (Connected accounts), or sign in with Discord. They also need to be members of your server. Peakstone does not invite them. A buyer who is not in the server yet gets the role as soon as they join, within about half an hour.

  • Given when a buyer has an active subscription, or has paid for a one-time purchase.
  • Removed when a subscription ends (including the short grace period after a failed payment), when a payment is refunded in full, when it is disputed, when the listing is taken down, or when the buyer unlinks Discord or deletes their account.

Changes are sent right after Stripe tells Peakstone about them. A check every 10 minutes repairs anything that was missed, for example if someone removed a role by hand. If Discord is down Peakstone keeps trying, and never gives up on a role.

Subscriptions bought on your own site, outside Peakstone, are not included.

If something does not work

  • The bot is not in that server. Use the invite link from the URL Generator and pick the right server.
  • Discord does not accept the bot token. Reset the token in the Developer Portal and paste the new one.
  • The bot does not have the Manage Roles permission. Give the bot's role that permission in Server Settings, Roles.
  • The bot's role must be above the buyer role. Drag it up in Server Settings, Roles.
  • A buyer has no role. They may not have linked Discord, may not be in your server, or may not have access any more. The page shows how many buyers have the role and how many are waiting.
  • No test message. Check that the webhook still exists in Discord and that the URL was copied in full.

Privacy

When a buyer links Discord, Peakstone stores their Discord account ID. It is used to sign them in and, if you use buyer roles, to give and remove the role in your server. Your server sees who they are as it does for any member. Peakstone does not send you the buyer's email address.

By turning on buyer roles you agree to use the buyer's Discord ID only for this purpose. See the Privacy Policy.