Method GetCurrency
GetCurrency(string)
Gets a specific currency from the cached config.
Declaration
CurrencyDefinition GetCurrency(string id)
Parameters
Type | Name | Description |
---|---|---|
string | id | The ID of the currency to fetch. |
Returns
Type | Description |
---|---|
CurrencyDefinition | A CurrencyDefinition or null if the currency doesn't exist. |
Exceptions
Type | Condition |
---|---|
EconomyException | Thrown if request is unsuccessful |