CashFlow · Step by step
Sell roles in the store
Members can buy a Discord role with CashFlow money, and the bot gives it to them straight away.
At the end a store item hands out a role when someone buys it. This is the usual way to sell things like a VIP role, a color role, or access to a private channel.
Before you start
- You need to be the server owner, or have the Administrator permission.
- The item must already exist. See Set up the store.
- The role must already exist in Server Settings > Roles.
Steps
1. Let the bot give out roles
The invite link does not ask for role permissions, so you have to add it once. Open Server Settings > Roles, click the CashFlow role, turn on Manage Roles, and save.
2. Put the bot's role above the reward role
Still in Server Settings > Roles, drag the CashFlow role so it sits higher in the list than the role you are selling. Discord only lets a bot give roles that are below its own.
3. Attach the role to the item
Type /item edit name:VIP Pass field:role value:VIP. Use the role's exact name. You can also paste the role ID.
You see: Item updated, with the item and the role you typed.
4. Check it
Type /store info item:VIP Pass.
You see: the item card with a Comes with line showing the role.
5. Test a purchase
Give yourself money with /addmoney member:@you amount:10000, then press the item's price button in /store view.
You see: "Bought VIP Pass for $5,000." and "You've been given @VIP."
Change it later
- Sell a limited number.
/item edit name:VIP Pass field:stock value:5 - Change the price.
/item edit name:VIP Pass field:price value:20000 - Stop selling it.
/item remove name:VIP Pass. People who bought it keep the role.
If something goes wrong
- The buyer is told "It comes with a role, but I don't have permission to give it to you. Tell an admin." The bot either lacks Manage Roles or its role is below the reward role. Do steps 1 and 2 again. The money was already taken, so give the role by hand this time.
- It says "No role matching VIP." The name must match the role exactly. Copy the role ID instead (right-click the role with Developer Mode on) and use that as the value.
- The role is never taken away. CashFlow only gives the role. It does not remove it later, even if the item is removed.
- Someone bought the item twice. Each purchase is a separate buy. Set
stockif you want a limit across the whole server. There is no per-person limit.
Stuck on a step? Open a ticket in the Cordyx Discord and say which step you are on.