Skip to content

Commit

Permalink
[Update]: change color
Browse files Browse the repository at this point in the history
- Will try to get role color soon!
  • Loading branch information
harshfeudal committed Oct 28, 2022
1 parent f3df75d commit 728ef43
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/ping.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,21 @@

void ping(dpp::cluster& client, const dpp::slashcommand_t& event)
{
double ws = client.get_shard(0)->websocket_ping;
double ws = client.get_shard(0)->websocket_ping;

std::string content = fmt::format(
"`{0:.02f} ms`",
(client.rest_ping + ws) * 1000
);

dpp::embed embed = dpp::embed().set_title("Raiden Shogun latecy")
.set_author(client.me.username, "", client.me.get_avatar_url())
.set_thumbnail(client.me.get_avatar_url())
.set_description(content)
.set_footer(
dpp::embed_footer().set_text(event.command.usr.username)
.set_icon(event.command.usr.get_avatar_url())
).set_timestamp(time(nullptr));
dpp::embed embed = dpp::embed().set_color(0xAA7EEE)
.set_title("Raiden Shogun latecy")
.set_author(client.me.username, "", client.me.get_avatar_url())
.set_thumbnail(client.me.get_avatar_url())
.set_description(content)
.set_footer(dpp::embed_footer().set_text(event.command.usr.username)
.set_icon(event.command.usr.get_avatar_url()))
.set_timestamp(time(nullptr));

event.reply(
dpp::message(event.command.channel_id, embed).set_flags(dpp::m_ephemeral)
Expand Down

0 comments on commit 728ef43

Please sign in to comment.