Skip to content
Advertisement

“Jump to Message” Button

Hi so basically I’m making a suggestion command. Once the user ran the command it will reply “Suggestion Submitted” with “Jump to Suggestion” url button but I’m getting error with the button. Here’s my code

JavaScript

The Error

Error: MessageButton must be a String

Hope to get the some help with this as this have become the issue for me that make my development stopped! Thanks

Advertisement

Answer

You’re currently using MessageEmbed().url as a variable for the message url, but it returned undefined.

You have to post the message before picking up his URL. Here’s an example :

JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement