Skip to content

Commit

Permalink
surely
Browse files Browse the repository at this point in the history
  • Loading branch information
Mishura4 committed Oct 30, 2023
1 parent d0e89f3 commit 59da798
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/dpp/extras.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ using function_arg_t = typename function_traits<T>::template arg<Idx>;
*/
template <typename Callable>
dpp::command_completion_event_t if_success(Callable&& on_success) {
if constexpr (variant_has_v<remove_cvref_t<function_arg_t<Callable, 0>>, dpp::confirmable_t>) {
if constexpr (variant_has_v<remove_cvref_t<function_arg_t<std::invoke_result_t<fun_converter, Callable>, 0>>, dpp::confirmable_t>) {
using fn_arg = std::remove_cv_t<std::remove_reference_t<function_arg_t<Callable, 0>>>;

return [cb = std::forward<Callable>(on_success)](const dpp::confirmation_callback_t &callback) {
Expand Down

0 comments on commit 59da798

Please sign in to comment.