Skip to content

Commit

Permalink
Removed extra function call because it must use a specific forma.
Browse files Browse the repository at this point in the history
  • Loading branch information
AA1999 committed Jan 23, 2024
1 parent f9b6443 commit 55e8a73
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/dpp/cluster/guild_member.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,9 @@ void cluster::guild_member_timeout(snowflake guild_id, snowflake user_id, time_t
}

void cluster::guild_member_timeout_remove(snowflake guild_id, snowflake user_id, command_completion_event_t callback) {
guild_member_timeout(guild_id, user_id, 0, callback);
json j;
j["communication_disabled_until"] = json::value_t::null;
rest_request<confirmation>(this, API_PATH "/guilds", std::to_string(guild_id), "members/" + std::to_string(user_id), m_patch, j.dump(), callback);
}


Expand Down
1 change: 0 additions & 1 deletion src/dpp/cluster_sync_calls.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,6 @@ confirmation cluster::guild_member_timeout_sync(snowflake guild_id, snowflake us
return dpp::sync<confirmation>(this, static_cast<void (cluster::*)(snowflake, snowflake, time_t, command_completion_event_t)>(&cluster::guild_member_timeout), guild_id, user_id, communication_disabled_until);
}


confirmation cluster::guild_member_delete_role_sync(snowflake guild_id, snowflake user_id, snowflake role_id) {
return dpp::sync<confirmation>(this, static_cast<void (cluster::*)(snowflake, snowflake, snowflake, command_completion_event_t)>(&cluster::guild_member_delete_role), guild_id, user_id, role_id);
}
Expand Down

0 comments on commit 55e8a73

Please sign in to comment.