Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style: refactored comments part 2 #977

Merged
merged 3 commits into from
Oct 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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