Comments (4)
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.
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.
Interesting, didn't know about that.
Notes for self:
- role_connections.write scope
- https://discord.com/developers/docs/resources/application-role-connection-metadata
from control.
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)
- Schedule open/close of the seating HOT 1
- Basic theme choices HOT 3
- Fully working and documented API
- Signup doesn't link to Terms and Conditions properly
- Draft events
- Support seat types HOT 1
- Email verification codes (and all other codes) need trimming HOT 1
- Ticket Import
- Blacklist of Clan Names HOT 1
- Show user ID on clan member list for admins
- Add sorting to clan member list HOT 1
- Add more sorting to admin ticket list
- Add more content to HTML titles
- Seating plan colours - per-clan colour HOT 4
- Filter by clan on admin seat picker HOT 3
- Exclusive discord roles HOT 1
- Option to hide full name HOT 1
- Access level to hide full names and emails to "mini-admins"
- Sync checked in status
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from control.