Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Discord bot can't show emote "sometimes"

As a french Gwent player, I built a discord bot (using node.js and discord.js) to show the infos of a card when you name it. It uses some custom emotes to show some part of it.

enter image description here

It worked well for a few weeks, but recently some cards don't show the emotes when called.

enter image description here

I have no clue about what could be wrong. The emotes work if you use it yourself on the channel. Some cards show the emotes, others don't, even if they use the same emotes. And it's always all emotes or none for each card.

I checked different cards from my database : with or without emotes, I can't get any specific element which can explain why some cards can have emotes and why some cannot.

Is there something to know here that can explain this situation ?

like image 542
Meowcate Avatar asked Dec 13 '25 05:12

Meowcate


1 Answers

Although this a late answer and you may have found an answer to the question but I'm going to post an answer anyways for others.

First in the chat you have to type:

\:custom_emote_here:

so in your case, you want it to show

and the name of it was :number5:, you would type :number5:.

You would get something like this: enter image description here (of course, it would say :number5: and the start and the numbers would be different)

You can copy and paste that into your code. For example:

message.channel.send("<:super_magical:366208548914331659>")

would show this:

Hope this helps!

javascriptdiscorddiscord.jsemote

like image 106
TheThirdDimension Avatar answered Dec 15 '25 23:12

TheThirdDimension



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!