aboutsummaryrefslogtreecommitdiffstats
path: root/arthur/constants.py
blob: f56bb65373d74846375f0d1e142d9b1fca9a4507 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
"""Constants, primarily used for LDAP enrollment preferences."""

# Users are only checked for enrollment if they have this role. This doesn't grant them any
# permissions, it is for performance to avoid iterating roles for every other user in the guild.
LDAP_BASE_STAFF_ROLE = 267630620367257601

# This is a mapping of LDAP groups to Discord roles. It is used to determine which users should be
# eligible for LDAP enrollment.
LDAP_ROLE_MAPPING = {
    "devops": 409416496733880320,
    "administrators": 267628507062992896,
    "moderators": 267629731250176001,
}