GithubHelp home page GithubHelp logo

Comments (4)

mintopia avatar mintopia commented on August 12, 2024

AIUI, I don't think this is something we can do from the oauth2 flow we're using for authentication. The better option is a discord bot that has appropriate permissions on the server, and it can then manage the groups for people.

Would be appropriate work for anyone with skills at writing Discord bots.

from control.

VibroAxe avatar VibroAxe commented on August 12, 2024

Was hoping it would be easy enough to hook into the existing work to just add a different discord integration to push the role change :(

Looks possible but i've not fully read yet> https://gist.github.com/RikoDEV/e6a35ce7cb7fb9880537c0b6e19b35db

from control.

mintopia avatar mintopia commented on August 12, 2024

Interesting, didn't know about that.

Notes for self:

from control.

mintopia avatar mintopia commented on August 12, 2024

Turns out role connections is the wrong way to do it. It's easier to just connect the app to the server as a bot and then use the API to manage roles on members.

  • You need to enable the app as a bot
  • Add the bot key to the config in Control
  • Ensure it has the Server Members intent

You will now have an option in Settings to Connect to Discord Server. Once done, you will be able to allocate a role to a ticket type.

Anytime a ticket type's discord role is changed, or a ticket is created/user changed - roles will be updated. They will also be updated every 15 minutes.

Control will only update roles for users that it knows about. If the user isn't in Control's DB, the roles will not be modified. Control WILL remove roles from users it knows about if that user no-longer has a ticket with that role assigned to it.

from control.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.