Generate an invite link to add a user to a role.

Comments

86 comments

  • mistr88

    If discord will be something as messenger, then yes, but the power of discord is in bots. And here, I am not saying, that this is terrible idea because you can do this by bots, but bot creators are lazy (I see it on me) and will use this and will not use the standard **universal** approach. And then, when someone will join via different invite, he will not get the starter role.

    Edit: And not putting this to API will not help, because this feature will still be useable by user bots.

    1
  • mistr88

    And also, it's extremely easy to create own fully customized bot (about 10 mins just for this task)

    1
  • Sebastian Nielsen

    @mistr88 No. The problem is that the bot cannot easily know which invite link a user "comes from". Yes, there is ugly solutions as like looking on invite link counts and such, but such solutions can be dangerous, especially when using them to assign moderator/admin roles.

    The second problem is if a user is already member, but gained another invite link, that would grant them a "second role". One example could be a gaming community for multiple games, where a role @Minecraft would gain them access to Minecraft-related channels, and @CSGO would gain them access to CS:GO related channels. In their minecraft server, they then have a minecraft related invite link, and in CS:GO server a CS:GO-related invite link. If a user is member of both servers, it could be a good thing if the user, after already joined @Minecraft role, could just visit the link for the @CS:GO role, and then instead of showing "Already connected" it will show a button "Give me the role" and clicking this, will then turn it into a "Already connected" button and give the role.

    1
  • Wayland

    Delight That is an awesome guide on how to get a discord.js bot up and running, but that does not solve the issue of "people joining with a specific invite should be automatically added to a role" your solution just adds everyone who joins the guild to a role, and that is no bueno.

    For example what if I had a role to denote users who are from a forum which I want to invite to my guild. Currently I would have to just use any invite and they would need to ask to be added the role after some sort of manual verification on my part.

    If we could somehow access data about what invite they used to join on guildMemberAdd it would be as easy as checking "is this invite they used the one that should get the special role?" and if so assign the role and if not don't. The only info available is how many times an invite has been used.

    1
  • natemaingard

    How is this not a thing yet? It seems so simple and it would make a huge difference to being able to filter members based on role! I do hope they implement it asap. At the moment I'm running a workshop and I want to give attendees a unique invite link which would enable them to join a specific private channel...

     

    1
  • Barry

    Great idea 👌

    0
  • 𝗗 𝗔 𝗞 𝗨 𝗠 𝗔

    Allow the admins of the server to define which roles are allowed to award roles to other members.

    When a member is creating the link, display all the roles that the user is allowed to give in checkbox format.

    Also allow the admins to define a default role that applies to all links and is not uncheckable by the creator of the link, for example a member role (if the server wants everyone to have the member role at all times)

    0
  • Wayland

    Thought that's the case @Mydragonsfly as I've explored the API and found no way for a bot to determine what invite was used to join.

    0
  • bastet_of_orion
    This would be neat to see incorporated into the verification levels for moderation.
    0
  • X-Gaming

    this would be nice to have on a discord server.

    for normal people or content creators.

    normal people can use it the way "Poetgetic" said And Content creators like a youtuber or stream (or both) can make and invite on she/his youtube to give them a role called Youtube sub (or something) the same goes for the streamer she/he can make and inv just with Stream viewer so she/he knows where they are invited from.

    and i know discord have a thing where if you link your Twitch/Youtube to your discord and one of your follower/Sub joins they can get a role, but i think this will work better because not all people are linking there profiles.

    0
  • JawsHC

    then make it so that the autoroles dont count when pruning


    0
  • GrifGrif
    this is a good idea, maybe add connexions roles too
    0
  • TechMaster85

    Great idea! Makes invite links more than invite links.

    0
  • Lenny

    Oder dass nur Freunde von Freunden den Link benutzten können
    Gute Idee

    0
  • Yodamoo

    Do the Devs even see this stuff?  Does anyone at Discord even care?  Like is this something they are considering?  Something they are 100% not going to do(for some crazy reason)?  Something they don't even know about?!  Someone tell a Dev if you know one or have that power!! lol

    0
  • Hayalperest (Raog)
    what a good idea!
    0
  • Fasteroid

    I just found myself needing this today and I'm baffled there's not a clear-cut solution by now, with or without bots.

    0
  • Sebastian Nielsen

    Agreed. This would also make server administration easier, as you could create moderator invites and put into the moderator sub-forum of another platform, so your current moderators can also claim a moderator role on Discord.

    Of course, such invites with associated roles must of course have a "Claim role" button instead of "Already connected" if you are already connected to the server, but doesn't have the role associated with the invite.

    (This would then allow you to claim multiple roles if you see multiple invites with different roles associated)

    To create such invites with associated roles, you must then both have the create invite permission, and the manage roles permission, and the associated role that you associate with the invite must be lower than your own. (ergo, you must be able to assign that role to any member yourself, to be able to create such a invite)

    Of course any invites already created, that have a associated role, must be completely hidden (in the server administration panel) for those that lack the manage roles permission. So they cannot "cheat" themselves a role, without finding the invite where it was originally posted.

     

    This could also replace the "direct invite to channel" feature, by instead if you want to keep a channel secret to only invited people, you would instead create a role that have access to that secret channel, and assign that role to the invite.

    0
  • bobConstrutor

    This would be a really powerful tool, that can organize your community based on where they found your Discord Link.

    I'm waiting for this for so long...

     

    I don't like bots to do auto role because they will auto role everyone.

    0
  • Qeynein

    I agree with adding this function, though my use of Discord is a bit different.  I'd like to add the Discord role assign invitation through a link that would have a longer expiration, preferably an assignable expiration (30 days, 365 days) as Discord access (and role) would coincide with the users / invitees subscription to my website.

    Perhaps a script that generates an invite automatically and sends it to the email address entered into the application page... expiration date counted from the date the script generated the invite.

    I'm certain someone out there smarter than me can figure out how that gets written... ;-D

    0
  • Acco
    This would be a great feature, in fact a lot of bots feature would be great as native discord features, like muting, message logs etc
    0
  • Tabrix

    yeah it would be really cool I agree !

    0
  • Peridot - GemWorld Talk!

    i agree too.

    0
  • pigs dont fly - GT 🎅🇵🇹

    I also used the invite-role bot. It’s easy to setup and does the job, but I have to say it has a terrible downside which is the way server acts with that bot function. When someone joins server the roles are assigned properly but server don’t display channels feed for a while. This can defeat the interest of a new discord user to start engaging and just leave because it is so slow. I guess this being a discord feature would make things role faster...

    side note, I’ve also asked for some bot devs to have a command that makes a bot send a message on designated channel everytime someone gets a role assignment. Functionality comes along with this feature in discussion; now you get bots to send a Welcome message to new users joining server, but even if you have the invite-role bot sending people to designated welcome channels, the welcome message will still display in every single channel setup for bots to auto welcome people. This is making my head in for days now...

    0
  • JKybett

    I need this so much!
    There is a server I have where I could double the users I could be inviting to it but can't include a large demographic because there are certain areas that would have to be specific to one half of the user base or the other.
    In this specific server it is incredibly difficult (and would be very time consuming) to find out and/or verify which of these two groups users belong to but very easy to restrict which invite links these people have access to.
    I have a different server where I invite people with single-use invites and this would simplify giving the right people the right roles.
    I can also see this being useful for servers that are linked to patron systems or memberships, servers that are used in a professional setting, and any other servers using roles to identify a portion of the user base that is different for reasons external to the server.

    0
  • Insasse

    Is there any progress on this?
    This would make life much easier for discord admins!

    0
  • Unit_3397

    yessssssssssss please devs, +1 @Phantom

    0
  • ATLAS

    +1

    0
  • Eriolo

    this can be really helpful for like the current situation and teachers, discord already set a template for classrooms, but with this option i cand send to one class a link and they only have permission to the channels i want, i send other link to other class and will have permission for other channels,is perfect.

    0
  • Optivex

    please add this devs! if I create an invite on a private text channel I should have the option to get people straight in here with a link such as discord.gg/linkID/channelPassword

    0

Please sign in to leave a comment.