Retrieving Gold Balance:
The method
wallet.gold.get() is used to retrieve the gold balance of the bot's wallet. It returns the current gold balance of the bot's wallet.// Assuming you have defined the Highrise instance as "bot". bot.on("chatCreate", async (user, message) => { if (message === "gold") { bot.wallet.gold.get().then(gold => { console.log("The Bot's gold is:", gold); }).catch(e => console.error(e)); } });
Go Back: Buy & Fetch Wallet