jowsey / discord.js-menu

💬 Create Discord.js embed-menus, with customizable reactions and unlimited pages.
https://npm.im/discord.js-menu
MIT License
119 stars 19 forks source link

Hello I have problems adding a custom Discord Emoji into the reaction. #4

Closed Draxxx-xoxo closed 4 years ago

Draxxx-xoxo commented 4 years ago

DiscordAPIError: Unknown Emoji (whilst trying to add reactions to message) | The emoji you were trying to add to page "main" (763244587467800600) probably doesn't exist. You probably entered the ID wrong when adding a custom emoji.

763244587467800587 is :white_check_mark: and it is not working. Could you check if I went anywhere wrong?

                    763244587467800587: 'extra',
                    '▶': 'extra'
                }
            },
jowsey commented 4 years ago

I believe the Discord API expects IDs to be strings, try putting quotes around the ID and trying again

Draxxx-xoxo commented 4 years ago

I have tried the '' an it still gives me the error

[discord.js-menu] DiscordAPIError: Unknown Emoji (whilst trying to add reactions to message) | The emoji you were trying to add to page "main" (763242804121698305) probably doesn't exist. You probably entered the ID wrong when adding a custom emoji.

jowsey commented 4 years ago

How are you getting the ID? If you're right clicking the emoji in a message you might be accidentally getting the ID of the message? If so, try putting a backslash (\) in front of the emoji when you send it and get the ID that way.

Please let me know if you still get an error after doing that.

jowsey commented 4 years ago

How are you getting the ID? If you're right clicking the emoji in a message you might be accidentally getting the ID of the message? If so, try putting a backslash () in front of the emoji when you send it and get the ID that way.

Please let me know if you still get an error after doing that.

I also notice your ID changed in the second attempt, leading me to believe you are copying the message ID

Draxxx-xoxo commented 4 years ago

Yep, it is working now. Thanks for the help