Skip to content

Commit

Permalink
feat: ✨ add components method; refactor argument type
Browse files Browse the repository at this point in the history
  • Loading branch information
Xminent committed Jan 20, 2024
1 parent a67d617 commit 90eba1d
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions include/ekizu/request/edit_message.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,15 @@ struct EditMessage {
return *this;
}

EditMessage &embeds(const std::vector<Embed> &embeds) {
EditMessage &components(std::vector<MessageComponent> components) {
// TODO: Validate components
m_fields.components = std::move(components);
return *this;
}

EditMessage &embeds(std::vector<Embed> embeds) {
// TODO: Validate embeds
m_fields.embeds = embeds;
m_fields.embeds = std::move(embeds);
return *this;
}

Expand Down

0 comments on commit 90eba1d

Please sign in to comment.