discordgo icon indicating copy to clipboard operation
discordgo copied to clipboard

UpdateStatusComplex updating activity does not accept unicode characters anymore

Open MrFastDie opened this issue 2 years ago • 0 comments

Usually I updated my bots status like the following:

err = instance.UpdateStatusComplex(discordgo.UpdateStatusData{
    Activities: []*discordgo.Activity{
        &discordgo.Activity{
            Name: "\U0001F970",
            Type: 5,
        },
    },
    Status: "online",
})

But somehow the result on the friends list inside of Discord now is the empty ascii block.

I've tried setting the icon through:

emoji := discordgo.Emoji{
    Name:     "smiling_face_with_3_hearts",
    ID:       "863797433845547048",
    Animated: false,
}

emoji.MessageFormat()

In the Activity status message or just Emoji as the field on Activity included by the master branch but both wont work. The Emoji field as it is not updating anything at all and setting it as custom message just prints me the text <:smiling_face_with_3_hearts:863797433845547048> as status.

MrFastDie avatar Jul 11 '21 15:07 MrFastDie