Currency
A server currency holds member balances. Members spend it in auctions and the shop. One currency is free. More require Server Premium. To let members claim currency from a button, see Automations.
Create a currency
/currency commands require Manage Server by default.
- Run
/currency create name:coins. The name can be a word, symbol, or emoji. - Optional: Set
side(left or right of the number),number_locale(separators), andinteger_only(no decimals). The defaults are left, en-US, and decimals allowed. - Give a member a balance:
/currency edit action:add target:@member amount:100. - Check it with
/profile user:@member.
Your first currency becomes the default. Commands use the default unless
you set their currency option.
Giving a balance before creating a currency creates a default currency
with no name, shown as plain numbers. If members hold balances in it, /currency create asks with existing_balances whether they are the new currency or should stay separate.
Change and view balances
| Command | What it does |
|---|---|
/currency edit | action is add, subtract, or set. target is a member or a role.
Amounts are 0 or more, with up to two decimals. A role changes
every member who has it, except bots. See Role edits. |
/currency list | Leaderboard, highest first, 25 per page. Ties share a rank (1, 1,
3). Add include_zero:true to show zero balances. Export text file or Export CSV file sends you every rank, name, user
ID, and balance. Only you can use the buttons. |
/currency info | Settings, total supply, and number of members with a balance. |
/profile | A member's balance in each server currency. |
/currency status | Your latest role edit's progress and results. |
Role edits
A /currency edit on a role shows progress in a private reply and
keeps going after a bot restart. Members already updated aren't changed twice.
- Members who don't have enough balance are recorded as failures and aren't retried.
- Download results gives a CSV with each member's previous and new balance and status. Results are kept 30 days. Files over 8 MiB can't be downloaded.
- Run
/currency statusto see your latest role edit after a restart. Only you can see it. - Running the same edit again starts a new update and changes the balances again.
- Deleting the currency stops its unfinished updates.
Change currency settings
On your server's Currency dashboard page, select Edit next to a currency, change settings, and save.
| Setting | Effect |
|---|---|
| Symbol or name, Position | Text shown with amounts, before or after the number: $100 or 100 coins. |
| Number format | Separators. en-US shows 9,000,000.00; de-DE shows 9.000.000,00. |
| Whole numbers only | Whole numbers only. |
| Set as default | Makes this the default currency. Each currency keeps its own balances. |
The older /settings currency command changes the default
currency's symbol and position, for example /settings currency currency:$ side:left. Prefer the dashboard
for new setups.
Delete a currency
Run /currency delete and pick the currency, or
select Delete on the Currency page. Members lose access to
its balances. To delete the default while other currencies exist, set another
default first.