Skip to main content

Economy Resource

Economy is a new CRBT feature which allows guilds to create their own virtual currency, store and items. They are unique to each guild and do not map to anything on the Discord app.

info

To access these endpoints, you will need to use a token you registered with a Guild ID field.

Get Economy

GET/guilds/{guild.id}/economy

Returns a Economy object for the given ID, or a 404 error message if no economy was initialized.

Create Economy

POST/guilds/{guild.id}/economy

Initialize a guild's economy. Returns the complete Economy object on success.

JSON params

FieldTypeDescription
currency_name_singularstringThe singular name of the guild's currency.
currency_name_pluralstringThe plural name of the guild's currency.
currency_symbolstringThe symbol of the guild's currency, as en emoji.
transaction_logs_channel_id?snowflake?The channel ID where transaction logs are sent.

Modify Economy

PATCH/guilds/{guild.id}/economy

Modify a guild's economy. Returns the updated Economy object on success.

info

All parameters to this endpoint are optional.

JSON params

FieldTypeDescription
currency_name_singular?stringThe singular name of the guild's currency.
currency_name_plural?stringThe plural name of the guild's currency.
currency_symbol?stringThe symbol of the guild's currency, as en emoji.
transaction_logs_channel_id?snowflakeThe channel ID where transaction logs are sent.

Economy Object

Economy Structure

FieldTypeDescription
idsnowflakeThe ID of the guild.
currency_name_singularstringThe singular name of the guild's currency.
currency_name_pluralstringThe plural name of the guild's currency.
currency_symbolstringThe symbol of the guild's currency, as en emoji.
transaction_logs_channel_idsnowflake?The channel ID where transaction logs are sent.
categoriesCategory[]An array of the guild's store categories, without their items.
item_countintegerThe number of items a guild can hold (max 100).

Example Economy

{
"id": "738747595438030888",
"currency_name_singular": "Purplet",
"currency_name_plural": "Purplets",
"currency_symbol": "<:purplet:866116902215745576>",
"categories": [],
"item_count": 0
}