Skip to content

Commit

Permalink
style: refactored comments part 2 (#977)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaskowicz1 authored Oct 30, 2023
1 parent 6622b25 commit 3eaf668
Show file tree
Hide file tree
Showing 14 changed files with 1,920 additions and 1,114 deletions.
515 changes: 379 additions & 136 deletions include/dpp/auditlog.h

Large diffs are not rendered by default.

346 changes: 270 additions & 76 deletions include/dpp/channel.h

Large diffs are not rendered by default.

54 changes: 44 additions & 10 deletions include/dpp/collector.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,24 @@ namespace dpp {
template<class T, class C> class collector
{
protected:
/// Owning cluster
/**
* @brief Owning cluster.
*/
class cluster* owner;
private:
/// Timed listener
/**
* @brief Timed listener.
*/
timed_listener<event_router_t<T>, std::function<void(const T&)>>* tl;
/// stored list

/**
* @brief Stored list.
*/
std::vector<C> stored;
/// Trigger flag

/**
* @brief Trigger flag.
*/
bool triggered;
public:
/**
Expand Down Expand Up @@ -153,17 +163,34 @@ template<class T, class C> class collector
*/
class collected_reaction : public managed {
public:
/// Reacting user
/**
* @brief Reacting user.
*/
user react_user;
/// Reacting guild

/**
* @brief Reacting guild.
*/
guild* react_guild{};
/// Reacting guild member

/**
* @brief Reacting guild member.
*/
guild_member react_member;
/// Reacting channel

/**
* @brief Reacting channel.
*/
channel* react_channel{};
/// Reacted emoji

/**
* @brief Reacted emoji.
*/
emoji react_emoji;
/// ID of the user who authored the message which was reacted to (Optional)

/**
* @brief Optional: ID of the user who authored the message which was reacted to.
*/
snowflake message_author_id{};
};

Expand Down Expand Up @@ -239,7 +266,14 @@ class message_collector : public message_collector_t {
* Collects message reactions during a set timeframe and returns them in a list via the completed() method.
*/
class reaction_collector : public reaction_collector_t {
/**
* @brief The ID of the message.
*/
snowflake message_id;

/**
* @brief The reaction.
*/
collected_reaction react;
public:
/**
Expand Down
Loading

0 comments on commit 3eaf668

Please sign in to comment.