Send lightning network lnurlp link

I'm starting to develop a bot in typescript with discord.js v14 and a command from the bot generates a lightning network (bitcoin layer 2) invoice to receive donations. As a response, an embed is generated with a qr to scan with an LN wallet, but if the user generates it from the same smartphone it can be difficult to scan the qr, so it occurred to me to also send a link so that they can tap and open their wallet, but I can't generate it like lightning://lnbc..... Any ideas?
9 Replies
d.js toolkit
d.js toolkit•2y ago
- 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!
Unknown User
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Tincho
TinchoOP•2y ago
Yes, I can't send the link MultiplePossibilitiesConstraintError > s.string.url | Invalid URL protocol | | Expected any of the following: | | - http: | | - https: | | Received: | | 'lightning://lnbc90n1pjv9gn7pp58a8swyx0tcra0vrnwwr7eua5pw3y76cw0qxhldwnzq4jxfd4fuhshp5894557pyypvt6cuvuetxqvh4d6zjjsk22g7fsqnzr8q6a456sjmqcqzzsxqyz5vqsp5y5rktul7lph7mxnsc42vdtmnw0n2fvcx04n0v5nf8q6jwt8alh4s9qyyssq6f8jy9xk8agrtc4yupdec39y2cj4tape0yawtms3x7xjasyhnqx3x3fqwyt6a0qn34a2cxy2f4patw9g4mqmesajazpyaaflz9qpc8sp4n7yqu)' This try was in setURL() from EmbedBuilder
Unknown User
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Tincho
TinchoOP•2y ago
So.... any idea? 😂
Unknown User
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Tincho
TinchoOP•2y ago
This is an expample. The QR has text of the form lightning:lnbc1u1.....
Unknown User
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Tincho
TinchoOP•2y ago
Ok, embed discarded 😫 Webhock maybe? I didn't used them

Did you find this page helpful?