From d2b7a7d7b2715c49750dc86f4f6bf2cfefe8e154 Mon Sep 17 00:00:00 2001 From: lamados <40170421+lamados@users.noreply.github.com> Date: Sun, 22 Aug 2021 00:36:03 +0100 Subject: [PATCH] fix: Mention() for animated emojis (#428) correct syntax for animated emojis is , removed the extra : which broke their mentions --- emoji.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/emoji.go b/emoji.go index 5bd30e61..07a1fb59 100644 --- a/emoji.go +++ b/emoji.go @@ -47,12 +47,12 @@ type PartialEmoji = Emoji // Mention mentions an emoji. Adds the animation prefix, if animated func (e *Emoji) Mention() string { - prefix := "" + prefix := ":" if e.Animated { prefix = "a:" } - return "<:" + prefix + e.Name + ":" + e.ID.String() + ">" + return "<" + prefix + e.Name + ":" + e.ID.String() + ">" } //////////////////////////////////////////////////////