Skip to content

Commit ea88623

Browse files
load player before checking if theyre live
1 parent 1f9010a commit ea88623

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/commands/body.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ dpp::task<void> body_command::route(const dpp::slashcommand_t &event)
4040
dpp::cluster& bot = *event.owner;
4141
auto param = event.get_parameter("body");
4242
std::string new_gender = std::get<std::string>(param);
43+
static_cast<void>(get_live_player(event));
4344
if (co_await player_is_live(event)) {
4445
event.reply(dpp::message(tr("NO_PROFILE", event)).set_flags(dpp::m_ephemeral));
4546
co_return;

0 commit comments

Comments
 (0)