Skip to content

Commit

Permalink
[Bug]: investigating
Browse files Browse the repository at this point in the history
  • Loading branch information
harshfeudal committed Dec 13, 2022
1 parent 3129296 commit 1d2198a
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
8 changes: 4 additions & 4 deletions src/moderation/deafen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,10 @@ void deafen(dpp::cluster& client, const dpp::slashcommand_t& event)
dpp::voicestate VoiceState;

std::cout << "------------------ DEAFEN" << std::endl;
std::cout << "Self Deaf: " << dpp::voicestate().is_self_deaf() << std::endl;
std::cout << "Server Deaf: " << dpp::voicestate().is_deaf() << std::endl;
std::cout << "Self Mute: " << dpp::voicestate().is_self_mute() << std::endl;
std::cout << "Server Mute: " << dpp::voicestate().is_mute() << std::endl;
std::cout << "Self Deaf: " << VoiceState.is_self_deaf() << std::endl;
std::cout << "Server Deaf: " << VoiceState.is_deaf() << std::endl;
std::cout << "Self Mute: " << VoiceState.is_self_mute() << std::endl;
std::cout << "Server Mute: " << VoiceState.is_mute() << std::endl;

if (VoiceState.is_mute())
client.guild_edit_member(TargetVoiceMem.set_mute(true).set_deaf(true));
Expand Down
8 changes: 4 additions & 4 deletions src/moderation/mute.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,10 @@ void mute(dpp::cluster& client, const dpp::slashcommand_t& event)
dpp::voicestate VoiceState;

std::cout << "------------------ MUTE" << std::endl;
std::cout << "Self Deaf: " << dpp::voicestate().is_self_deaf() << std::endl;
std::cout << "Server Deaf: " << dpp::voicestate().is_deaf() << std::endl;
std::cout << "Self Mute: " << dpp::voicestate().is_self_mute() << std::endl;
std::cout << "Server Mute: " << dpp::voicestate().is_mute() << std::endl;
std::cout << "Self Deaf: " << VoiceState.is_self_deaf() << std::endl;
std::cout << "Server Deaf: " << VoiceState.is_deaf() << std::endl;
std::cout << "Self Mute: " << VoiceState.is_self_mute() << std::endl;
std::cout << "Server Mute: " << VoiceState.is_mute() << std::endl;

if (VoiceState.is_deaf())
client.guild_edit_member(TargetVoiceMem.set_mute(true).set_deaf(true));
Expand Down
8 changes: 4 additions & 4 deletions src/moderation/undeafen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,10 @@ void undeafen(dpp::cluster& client, const dpp::slashcommand_t& event)
dpp::voicestate VoiceState;

std::cout << "------------------ UNDEAFEN" << std::endl;
std::cout << "Self Deaf: " << dpp::voicestate().is_self_deaf() << std::endl;
std::cout << "Server Deaf: " << dpp::voicestate().is_deaf() << std::endl;
std::cout << "Self Mute: " << dpp::voicestate().is_self_mute() << std::endl;
std::cout << "Server Mute: " << dpp::voicestate().is_mute() << std::endl;
std::cout << "Self Deaf: " << VoiceState.is_self_deaf() << std::endl;
std::cout << "Server Deaf: " << VoiceState.is_deaf() << std::endl;
std::cout << "Self Mute: " << VoiceState.is_self_mute() << std::endl;
std::cout << "Server Mute: " << VoiceState.is_mute() << std::endl;

if (VoiceState.is_mute())
client.guild_edit_member(TargetVoiceMem.set_mute(true).set_deaf(false));
Expand Down
8 changes: 4 additions & 4 deletions src/moderation/unmute.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,10 @@ void unmute(dpp::cluster& client, const dpp::slashcommand_t& event)
dpp::voicestate VoiceState;

std::cout << "------------------ UNMUTE" << std::endl;
std::cout << "Self Deaf: " << dpp::voicestate().is_self_deaf() << std::endl;
std::cout << "Server Deaf: " << dpp::voicestate().is_deaf() << std::endl;
std::cout << "Self Mute: " << dpp::voicestate().is_self_mute() << std::endl;
std::cout << "Server Mute: " << dpp::voicestate().is_mute() << std::endl;
std::cout << "Self Deaf: " << VoiceState.is_self_deaf() << std::endl;
std::cout << "Server Deaf: " << VoiceState.is_deaf() << std::endl;
std::cout << "Self Mute: " << VoiceState.is_self_mute() << std::endl;
std::cout << "Server Mute: " << VoiceState.is_mute() << std::endl;

if (VoiceState.is_deaf())
client.guild_edit_member(TargetVoiceMem.set_mute(false).set_deaf(true));
Expand Down

0 comments on commit 1d2198a

Please sign in to comment.