Skip to content

Commit

Permalink
[Update]: error embed layout
Browse files Browse the repository at this point in the history
  • Loading branch information
harshfeudal committed Oct 31, 2022
1 parent 07b65a6 commit d62f992
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/userInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ void userInfo(dpp::cluster& client, const dpp::slashcommand_t& event)
std::string avatar = tgtId->get_avatar_url();
std::string usrID = fmt::format("{}", tgtId->id);
std::string created = fmt::format("<t:{}:R>", round(tgtId->get_creation_time()));
std::string usrName = fmt::format("Username: {}", tgtId->format_username());
std::string usrName = fmt::format("{}", tgtId->format_username());

EmbedBuild(embed, avatar, usrName,usrID, created, tgtUser);
event.reply(
Expand All @@ -43,7 +43,7 @@ void userInfo(dpp::cluster& client, const dpp::slashcommand_t& event)
std::string avatar = tgtId.get_avatar_url();
std::string usrID = fmt::format("{}", tgtId.id);
std::string created = fmt::format("<t:{}:R>", round(tgtId.get_creation_time()));
std::string usrName = fmt::format("Username: {}", tgtId.format_username());
std::string usrName = fmt::format("{}", tgtId.format_username());

EmbedBuild(embed, avatar, usrName, usrID, created, tgtUser);
event.reply(
Expand Down

0 comments on commit d62f992

Please sign in to comment.