Send friend requests via a link

Commenti

75 commenti

  • Jaimsee

    +1

    0
  • levii

    +1

    0
  • clarity

    Big +1!

    As a few others have mentioned you can do "discord.com/USERID" to load someone's profile in a web browser, however, if you're not sharing a server and/or are friends with the specified user in the browser, it will display a page like:



    I think the ability to link your discord profile is an absolutely necessary addition, and I'm quite surprised it hasn't been implemented yet.

    Not only is this useful for personal website use, such as a linktr.ee site, HTML site, etc. It would also be an excellent feature to just, in general, be able to <link> to your profile and even integrate it with other sites to allow people to add you straight from there.

    Once implemented, it should ideally embed on discord as well, similar to a server invite, like how Wever displayed here



    < POSSIBLE IDEA >
    There could also be settings to generate a profile link (where only you can choose how your profile link(s) are used), once again, similar to a server invite, with parameters such as these example ideas:

    • Custom profile link (Nitro?)
    • Who can generate a link to my profile?
      – Only me
      – My friends
      – Users with verified phone number
      – Anyone
      – Custom (specify specific users?)
    • Automatic profile display options (specify automatic display [see below for more of what I mean])

    Then, when creating a profile link: (Initially set to automatic profile display options)

    • Expire after: [#]
    • Max number of uses: [#]
    • Display (+):
      – Badges
      – About me
      – Status
      – Currently playing
      – Friend request
      – [...]

    Obviously, that concept ^ can and would need to be expanded on, but just throwing ideas out there.

     

    5
  • jerma

    +1

    0
  • Disc0rd.gg/EnrWHmZB7d NSA ERP

    Pls Check out LiteroticaDreamz a multiplayer No Strings Attached Adult E.R.P Game community.  welcome!

    https://discord.gg/EnrWHmZB7d

    -7
  • notlin4
    webpackChunkdiscord_app.push([[[""]],{},q=>Object.values(q.c).find(e=>e.exports?.Z?.createFriendInvite).exports.Z.createFriendInvite().then(console.log)])

    Steps:

    1. Open discord in browser
    2. Log in
    3. Open console
    4. Paste code
    5. Replace XXX in "https://discord.gg/XXX" with the output from console
    2
  • chill389cc
    webpackChunkdiscord_app.push([[[""]],{},q=>Object.values(q.c).find(e=>e.exports?.Z?.createFriendInvite).exports.Z.createFriendInvite().then(console.log)])

    Here is a link to the github gist where this is being talked about.

    It works, but the code it generates only works for a week before expiring and only allows for 5 uses. The invite link will expire after whichever comes first. Also, apparently it is against TOS? Anyone know a way to make this more permanent?

    This is my slightly more user-friendly version:

    webpackChunkdiscord_app.push([[[""]],{},q=>Object.values(q.c).find(e=>e.exports?.Z?.createFriendInvite).exports.Z.createFriendInvite().then(x => console.log('https://discord.gg/' + x.code))])
    1
  • leoandthelamb

    Discord, implement this ASAP please! +1

    0
  • Scatt

    +1 I would see the links being something like discord.gg/u/[ID]
    Using the id would be better since it never changes even when you change your username
    Maybe there could also be a button to copy friend request link in the add a friend section

    0
  • Aarav

    This is a feature. Use this code in the console, Try it on a alt if you think that I am a scammer, https://pastebin.com/raw/6M5rwsci, and than you will get this response,

    {code: 'xxxxxxxx', inviter: {…}, channel: null, type: 2, uses: 0, …}.

    Copy the invite code in the code section, and put it a discord link in this format,

    discord.gg/xxxxxxxx,

    Done!

    But this is only for 7 days

    Then it expires

    0
  • Snupai

    This method ain't workin anymore...

    0
  • bl4ze

    Hey, I found a way to do just that. You just paste your Discord User ID which you can find in your settings after this link: https://discordapp.com/users/ Mine would look like this: https://discordapp.com/users/502866937617973260

    0
  • Snupai

    Uh nope not really this only works if you already share a server with the person using the link

    0
  • bl4ze

    Snupai just checked, works with people i don't have any servers in common with for me..

    0
  • justin Weich

    as far as i know there is still no such thing, but i made a little thing. you can embed the following html and javascript code on your website without giving credit. "under windows11 discord is opened in the browser / under windows 10 it should open the app / under mac i didn't test it, because i don't own anything from apple! / under android there are no problems"

    HTML:

    <a onclick="openDiscordApp()" target="_blank" class="discord-button">

      <img src="discordlogo.png" alt="Discord Logo" width="20" height="20">

      Open Discord!
    </a>
     
    JAVASCRIPT:
      function openDiscordApp() {
          var userId = "your user id"; // Your Discord User ID Here

          // check that the user has installed discord
          if (window.navigator && window.navigator.msLaunchUri) {
            // for Webbrowser
            window.navigator.msLaunchUri("discord://user?id=" + userId);
          } else if (window.navigator && window.navigator.userAgent.match(/(android|iphone|ipad)/i)) {
            // for andorid and ios devices
            window.location.href = "discord://user?id=" + userId;
          } else {
            // for other devices or webbrowsers
            window.open("https://discord.com/users/" + userId);
          }
        }

     

     

    CSS:
        .discord-button {

          display: inline-block;

          background-color: #7289DA;

          color: #fff;

          padding: 10px 20px;

          border-radius: 5px;

          text-decoration: none;

          font-family: Arial, sans-serif;

          font-size: 16px;

          border: none;

          cursor: pointer;

        }

       

        .discord-button img {

          vertical-align: middle;

          margin-right: 10px;

        }





     
    Note: to display the discord logo, you must either download one from the internet or provide a link from the internet with extension .png as image source! in european countries i recommend to download one due to privacy protection, especially in germany it is very extreme!

    https://media.discordapp.net/attachments/787083634695864331/1120026998258028554/disocrdbutton.png 

    the text in this image is in german
    0

Accedi per aggiungere un commento.