Skip to content

Commit

Permalink
feat: force disable dave on stage channel even if user wants it enable
Browse files Browse the repository at this point in the history
  • Loading branch information
Neko-Life committed Oct 5, 2024
1 parent c2722e5 commit cfbf991
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/dpp/discordclient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -622,6 +622,15 @@ discord_client& discord_client::connect_voice(snowflake guild_id, snowflake chan
return *this;
}
}

if (enable_dave) {
/* Disable dave if we're connecting to stage channel */
auto *c = find_channel(channel_id);
if (c != nullptr && c->is_stage_channel()) {
enable_dave = false;
}
}

connecting_voice_channels[guild_id] = std::make_unique<voiceconn>(this, channel_id, enable_dave);
/* Once sent, this expects two events (in any order) on the websocket:
* VOICE_SERVER_UPDATE and VOICE_STATUS_UPDATE
Expand Down

0 comments on commit cfbf991

Please sign in to comment.