Skip to content

Commit

Permalink
fix: changed 487 in channel.cpp to be better
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaskowicz1 committed Oct 9, 2023
1 parent 3f6b603 commit d9ef508
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dpp/channel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ std::string thread::build_json(bool with_id) const {
j["auto_archive_duration"] = this->metadata.auto_archive_duration;
j["locked"] = this->metadata.locked;

if(this->get_type() == dpp::channel_type::CHANNEL_PRIVATE_THREAD) {
if(is_private_thread()) {
j["invitable"] = this->metadata.invitable;
}

Expand Down

0 comments on commit d9ef508

Please sign in to comment.