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
|
// Weirdest thing ever
|
||||||
if (std::holds_alternative<std::monostate>(id)) {
|
if (std::holds_alternative<std::monostate>(id)) {
|
||||||
person = event.command.get_issuing_user().id;
|
balance = getUserBalance(event.command.get_issuing_user().id);
|
||||||
balance = getUserBalance(person);
|
|
||||||
event.reply(COMMAND_BALANCE_SELF_RESPONSE(balance));
|
event.reply(COMMAND_BALANCE_SELF_RESPONSE(balance));
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -31,7 +31,7 @@ void createCommands(const dpp::ready_t &event, dpp::cluster &bot) {
|
|||||||
GUILD);
|
GUILD);
|
||||||
|
|
||||||
bot.guild_command_create(
|
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(
|
.add_option(dpp::command_option(
|
||||||
dpp::command_option_type::co_integer, "amount",
|
dpp::command_option_type::co_integer, "amount",
|
||||||
COMMAND_PRINT_ARGS_AMOUNT_DESCRIPTION, true)
|
COMMAND_PRINT_ARGS_AMOUNT_DESCRIPTION, true)
|
||||||
|
@@ -26,4 +26,4 @@ inline std::unordered_map<std::string,
|
|||||||
{"balance", commandBalance},
|
{"balance", commandBalance},
|
||||||
{"bal", commandBalance},
|
{"bal", commandBalance},
|
||||||
{"pay", commandPay},
|
{"pay", commandPay},
|
||||||
{"print_cash", commandPrintMoney}};
|
{"print_money", commandPrintMoney}};
|
||||||
|
Reference in New Issue
Block a user