Hyperlink is undefined

Hello there. Today I started using the NightBot.
I decided to create cool hyperlinks
And I ran into a problem, I’m not good in Javascript, but I tried, I wrote this into “Message”:

$(eval var str = “Aseprite”; var url = str.link(“https://www.aseprite.org/”))

And this hyperlink is undefined

What am I doing wrong?

Hello, what are you trying to do? It’s not possible to create html links/hyperlinks, you can only output the link as plain text.
Currently you’re just getting the undefined error since the code isn’t outputting anything, it’s just setting the variables.

For example this will output the “link”:
$(eval var str = "Aseprite"; var url = str.link("https://www.aseprite.org/"); url)

1 Like

I thought it’s possible, thanks alot for your answer!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.