Open inserted link to a message in app instead of web browser.
I have found that it will be useful if user can open https://discordapp.com/channels/somenumber/SomeNumber2/SomeNumber3 inside the desktop app.
I have tried to replace https:// to discord:// and did it successfully, but unfortunately when I'm entering the link it just opens discord app and do not moves to the message attached to the link.
This feature ALREADY EXISTING in the application, because we can move to messages by clicking on the shared links, but somewhy discord doesn't expose it to cli so discord:// protocol cannot catch it.
I have tried:
discord://discordapp.com/channels/somenumber/SomeNumber2/SomeNumber3
discord://https://discordapp.com/channels/somenumber/SomeNumber2/SomeNumber3
Which schema or parser should be user? Where can I see all possible command line arguments? Is there anyway to let discord know how to handle the link?
-
Okay, I have found that discord for windows uses registering of the protocol with:
--url -- "%1" flags, which means that url is passed as parameter, but
if I try to use same flag with discord snap it's doing nothing but opens the app. There is no
discord --help
discord -man
man -k discord
info discord
snap info discord
specific about it.
Ubuntu 20.4 LTS.
Any ideas?0 -
Okay, I have found a way. Here it is, not we need to attach it to the custom protocol...
discord --url -- "discord://discordapp.com/channels/someId/someId2/someId3"
Aware of spaces. Dangerous creatures...
1 -
Add this flags to your .desktop and it works:
--url -- %u
For the windows it's built-in with installation2 -
Have you tried using:
discord:///
instead of:
discord://
Because for me the discord:// doesn't work.2 -
discord://discord.com/channels/somenumber
Worked for me. Grateful for this thread, thankyou!
1
Войдите в службу, чтобы оставить комментарий.
Комментарии
Комментариев: 5