diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2022-04-05 22:01:53 -0400 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2022-04-05 22:01:53 -0400 |
commit | 49685c39895af67d7ffcc50fdc02150b6ee44f72 (patch) | |
tree | 5c5c262f95a30e58582a285b467d05954ff5f35c /src/discord/channel.hpp | |
parent | 9767e1e7fdef9262211ec676b4f0d4c30ff10649 (diff) | |
download | abaddon-portaudio-49685c39895af67d7ffcc50fdc02150b6ee44f72.tar.gz abaddon-portaudio-49685c39895af67d7ffcc50fdc02150b6ee44f72.zip |
fix up a bunch of clang-tidy stuff
mostly changing references, which i hope doesnt break stuff with models (TreeRow, iterators) since they gave me some strange problems in the past
Diffstat (limited to 'src/discord/channel.hpp')
-rw-r--r-- | src/discord/channel.hpp | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/src/discord/channel.hpp b/src/discord/channel.hpp index 89e43a0..8feeb92 100644 --- a/src/discord/channel.hpp +++ b/src/discord/channel.hpp @@ -94,14 +94,15 @@ struct ChannelData { friend void from_json(const nlohmann::json &j, ChannelData &m); void update_from_json(const nlohmann::json &j); - bool NSFW() const; - bool IsDM() const noexcept; - bool IsThread() const noexcept; - bool IsJoinedThread() const; - bool IsCategory() const noexcept; - bool HasIcon() const noexcept; - std::string GetIconURL() const; - std::vector<Snowflake> GetChildIDs() const; - std::optional<PermissionOverwrite> GetOverwrite(Snowflake id) const; - std::vector<UserData> GetDMRecipients() const; + [[nodiscard]] bool NSFW() const; + [[nodiscard]] bool IsDM() const noexcept; + [[nodiscard]] bool IsThread() const noexcept; + [[nodiscard]] bool IsJoinedThread() const; + [[nodiscard]] bool IsCategory() const noexcept; + [[nodiscard]] bool IsText() const noexcept; + [[nodiscard]] bool HasIcon() const noexcept; + [[nodiscard]] std::string GetIconURL() const; + [[nodiscard]] std::vector<Snowflake> GetChildIDs() const; + [[nodiscard]] std::optional<PermissionOverwrite> GetOverwrite(Snowflake id) const; + [[nodiscard]] std::vector<UserData> GetDMRecipients() const; }; |