Skip to content

Commit

Permalink
Since they're auto-generated, removed the sync and coro variants.
Browse files Browse the repository at this point in the history
  • Loading branch information
AA1999 committed Jan 23, 2024
1 parent db8a858 commit f9b6443
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 39 deletions.
14 changes: 0 additions & 14 deletions include/dpp/cluster_coro_calls.h
Original file line number Diff line number Diff line change
Expand Up @@ -1236,20 +1236,6 @@
*/
[[nodiscard]] async<confirmation_callback_t> co_guild_member_timeout(snowflake guild_id, snowflake user_id, time_t communication_disabled_until);

/**
* @brief Remove the timeout of a guild member
* Shortcut to co_guild_member_timeout(guild_id, user_id, 0)
* Fires a `Guild Member Update` Gateway event.
* @see dpp::cluster::guild_member_timeout
* @see https://discord.com/developers/docs/resources/guild#modify-guild-member
* @note This method supports audit log reasons set by the cluster::set_audit_reason() method.
* @param guild_id Guild ID remove the member timeout from
* @param user_id User ID to remove the timeout for
* @return confirmation returned object on completion
* \memberof dpp::cluster
*/
[[nodiscard]] async<confirmation_callback_t> co_guild_member_timeout_remove(snowflake guild_id, snowflake user_id);

/**
* @brief Remove role from guild member
*
Expand Down
17 changes: 0 additions & 17 deletions include/dpp/cluster_sync_calls.h
Original file line number Diff line number Diff line change
Expand Up @@ -1512,23 +1512,6 @@ confirmation guild_member_kick_sync(snowflake guild_id, snowflake user_id);
*/
confirmation guild_member_timeout_sync(snowflake guild_id, snowflake user_id, time_t communication_disabled_until);

/**
* @brief Remove the timeout of a guild member
* Shortcut for guild_member_timeout_sync(guild_id, user_id, 0)
* Fires a `Guild Member Update` Gateway event.
* @see dpp::cluster::guild_member_timeout
* @see https://discord.com/developers/docs/resources/guild#modify-guild-member
* @note This method supports audit log reasons set by the cluster::set_audit_reason() method.
* @param guild_id Guild ID to remove timeout from the member in
* @param user_id User ID to set the timeout for
* @return confirmation returned object on completion
* \memberof dpp::cluster
* @throw dpp::rest_exception upon failure to execute REST function
* @warning This function is a blocking (synchronous) call and should only be used from within a separate thread.
* Avoid direct use of this function inside an event handler.
*/
confirmation guild_member_timeout_remove_sync(snowflake guild_id, snowflake user_id);

/**
* @brief Remove role from guild member
*
Expand Down
4 changes: 0 additions & 4 deletions src/dpp/cluster_coro_calls.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -411,10 +411,6 @@ async<confirmation_callback_t> cluster::co_guild_member_timeout(snowflake guild_
return async{ this, static_cast<void (cluster::*)(snowflake, snowflake, time_t, command_completion_event_t)>(&cluster::guild_member_timeout), guild_id, user_id, communication_disabled_until };
}

async<confirmation_callback_t> cluster::co_guild_member_timeout_remove(snowflake guild_id, snowflake user_id) {
return co_guild_member_timeout(guild_id, user_id, 0);
}

async<confirmation_callback_t> cluster::co_guild_member_delete_role(snowflake guild_id, snowflake user_id, snowflake role_id) {
return async{ 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
4 changes: 0 additions & 4 deletions src/dpp/cluster_sync_calls.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -409,10 +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_timeout_remove_sync(snowflake guild_id, snowflake user_id) {
return guild_member_timeout_sync(guild_id, user_id, 0);
}


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 f9b6443

Please sign in to comment.