improved ping embed

This commit is contained in:
2024-02-20 21:25:09 +01:00
parent 62dd8e60f9
commit 8e0d8480ae

View File

@@ -41,8 +41,8 @@ var ping_command Command = Command{
Data: &discordgo.InteractionResponseData{ Data: &discordgo.InteractionResponseData{
Embeds: []*discordgo.MessageEmbed{ Embeds: []*discordgo.MessageEmbed{
{ {
Title: "Bot ping", Title: s.State.User.Username + " ping",
Description: fmt.Sprintf("**%.2fms**", ping.Seconds()*1000), Description: fmt.Sprintf("# %.2fms", ping.Seconds()*1000),
Type: discordgo.EmbedTypeArticle, Type: discordgo.EmbedTypeArticle,
Color: hexToDecimal(color[ping_color]), Color: hexToDecimal(color[ping_color]),
}, },