You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: discord/role.py
+7-5Lines changed: 7 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -122,19 +122,19 @@ class RoleType(IntEnum):
122
122
Attributes
123
123
----------
124
124
APPLICATION: :class:`int`
125
-
The role is an application role.
125
+
The role is an application (bot) role.
126
126
BOOSTER: :class:`int`
127
127
The role is a guild's booster role.
128
128
GUILD_PRODUCT: :class:`int`
129
129
The role is a guild product role.
130
130
PREMIUM_SUBSCRIPTION_BASE: :class:`int`
131
-
The role is a base subscription role.
131
+
The role is a base subscription role. This is not possible to determine currently, will be INTEGRATION if it's a base subscription.
132
132
PREMIUM_SUBSCRIPTION_TIER: :class:`int`
133
133
The role is a subscription role.
134
134
DRAFT_PREMIUM_SUBSCRIPTION_TIER: :class:`int`
135
135
The role is a draft subscription role.
136
136
INTEGRATION: :class:`int`
137
-
The role is an integration role.
137
+
The role is an integration role, such as Twitch or YouTube, or a base subscription role.
138
138
CONNECTION: :class:`int`
139
139
The role is a guild connections role.
140
140
"""
@@ -157,11 +157,13 @@ class RoleTags:
157
157
that gives it context for the reason the role is managed.
158
158
159
159
Role tags are a fairly complex topic, since it's usually hard to determine which role tag combination represents which role type.
160
-
We aim to improve the documentation / introduce new attributes in future.
161
-
For the meantime read `this <https://lulalaby.notion.site/Special-Roles-Documentation-17411d3839e680abbb1eff63c51bd7a7?pvs=4>`_ if you need detailed information about how role tags work.
160
+
In order to make your life easier, pycord provides a :attr:`RoleTags.type` attribute that attempts to determine the role type based on the role tags. It's value is not provided by discord but is rather computed by pycord based on the role tags.
161
+
If you find an issue, please open an issue on `GitHub <https://github.com/Pycord-Development/pycord/issues/new?template=bug_report.yml>`_.
162
+
Read `this <https://lulalaby.notion.site/Special-Roles-Documentation-17411d3839e680abbb1eff63c51bd7a7?pvs=4>`_ if you need detailed information about how role tags work.
162
163
163
164
.. versionadded:: 1.6
164
165
.. versionchanged:: 2.7
166
+
The type of the role is now determined by the :attr:`RoleTags.type` attribute.
0 commit comments