Renamed it from cash to money, also fixed balance issue
This commit is contained in:
@@ -15,10 +15,8 @@ void commandBalance(const dpp::slashcommand_t &event) {
|
||||
|
||||
// Weirdest thing ever
|
||||
if (std::holds_alternative<std::monostate>(id)) {
|
||||
person = event.command.get_issuing_user().id;
|
||||
balance = getUserBalance(person);
|
||||
balance = getUserBalance(event.command.get_issuing_user().id);
|
||||
event.reply(COMMAND_BALANCE_SELF_RESPONSE(balance));
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
@@ -31,7 +31,7 @@ void createCommands(const dpp::ready_t &event, dpp::cluster &bot) {
|
||||
GUILD);
|
||||
|
||||
bot.guild_command_create(
|
||||
dpp::slashcommand("print_cash", COMMAND_PRINT_DESCRIPTION, bot.me.id)
|
||||
dpp::slashcommand("print_money", COMMAND_PRINT_DESCRIPTION, bot.me.id)
|
||||
.add_option(dpp::command_option(
|
||||
dpp::command_option_type::co_integer, "amount",
|
||||
COMMAND_PRINT_ARGS_AMOUNT_DESCRIPTION, true)
|
||||
|
@@ -26,4 +26,4 @@ inline std::unordered_map<std::string,
|
||||
{"balance", commandBalance},
|
||||
{"bal", commandBalance},
|
||||
{"pay", commandPay},
|
||||
{"print_cash", commandPrintMoney}};
|
||||
{"print_money", commandPrintMoney}};
|
||||
|
Reference in New Issue
Block a user