EconomyBalance class
Last updated
Last updated
The EconomyBalance class requires two arguments. The first argument must be an instance of the Discord.js Client class which represents the bot. The second argument must be an instance of the Discord.js GuildMember class which represents the member where to get the economy info from.
A number which represents the value the member has on it's bank in the economy system.
A number which represents the value the member has as cash in the economy system.
Updates the amount the member has on it's bank. The function returns a Promise
which returns an instance of the EconomyBalance class with the updated data.
Argument | Description |
---|---|
Updates the amount the member has as cash. The function returns a Promise
which returns an instance of the EconomyBalance class with the updated data.
Argument | Description |
---|---|
amount
A number which represents the amount the member's bank should be changed to.
amount
A number which represents the amount the member's cash should be changed to.