summaryrefslogtreecommitdiff
path: root/src/discord/channel.hpp
diff options
context:
space:
mode:
authorouwou <26526779+ouwou@users.noreply.github.com>2021-12-01 03:42:15 -0500
committerouwou <26526779+ouwou@users.noreply.github.com>2021-12-01 03:42:15 -0500
commit8e11dd97e9effa0b4abf9945ad3ec3fee9d9ec5d (patch)
tree6fb6764ea4aa90c0700c6c046a5c6cd0af82866f /src/discord/channel.hpp
parent2690febf20aecbe3ddc52d9574b9f19c8b93171c (diff)
downloadabaddon-portaudio-8e11dd97e9effa0b4abf9945ad3ec3fee9d9ec5d.tar.gz
abaddon-portaudio-8e11dd97e9effa0b4abf9945ad3ec3fee9d9ec5d.zip
dont make requests for inaccessible channels
Diffstat (limited to 'src/discord/channel.hpp')
-rw-r--r--src/discord/channel.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/discord/channel.hpp b/src/discord/channel.hpp
index 942d555..fd76d3a 100644
--- a/src/discord/channel.hpp
+++ b/src/discord/channel.hpp
@@ -85,6 +85,7 @@ struct ChannelData {
void update_from_json(const nlohmann::json &j);
bool NSFW() const;
+ bool IsDM() const noexcept;
bool IsThread() const noexcept;
bool IsJoinedThread() const;
std::optional<PermissionOverwrite> GetOverwrite(Snowflake id) const;