Creating a hyperlink
As the title suggests, I was looking for a way to turn a link into a hyperlink. Right now I want to send a message with the link to a scheduled event like my screenshot. This is perfect but I was looking for a way to turn the link into a hyperlink.
Currently, my bot is just sending the URL as is, but it results as it did in the screenshot. I tried using embeds but the "interested" bell did not appear so it is not quite what I wanted. Is this simply not possible to do such a thing using discord.js?
13 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!
- ✅
Marked as resolved by OPTo confirm, you can't just use
[Some text here](https://discord.com/events/somenumbers/morenumbers)
? It would look like this: Some Discord Event Link
This isn't really an event link which is why the embed isn't shown
I can verify that it works as desired when a user sends the link as a hyperlink, it should work the same way when using a bot account.Do you mean in my code? When I try to do it just as a message it looks like this. I’ll try in my code as well.
Mmh, it embeds normally like in the example above for me
You can use the
hyperlink
functionSorry just to clarify, are you sending that message via a bot or just through the discord UI?
Through the normal UI, I can also try sending it with a bot, one moment.
hm that’s weird, i did mine through the UI as well. I wonder if it has to do with the fact that im on mobile rn but i doubt it
It may be related to you being on movile for some odd reason
Okay thanks a lot for your help and time, I’ll try testing it tomorrow
I suggest you just try sending it through the bot, either with manual markdown or the function ShiGu provided
You're welcome