From 49685c39895af67d7ffcc50fdc02150b6ee44f72 Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Tue, 5 Apr 2022 22:01:53 -0400 Subject: 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 --- src/discord/channel.hpp | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'src/discord/channel.hpp') 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 GetChildIDs() const; - std::optional GetOverwrite(Snowflake id) const; - std::vector 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 GetChildIDs() const; + [[nodiscard]] std::optional GetOverwrite(Snowflake id) const; + [[nodiscard]] std::vector GetDMRecipients() const; }; -- cgit v1.2.3