Skip to content

Commit c41d7ee

Browse files
authored
Merge branch 'master' into feat/role-tags-rewrite
Signed-off-by: Paillat <[email protected]>
2 parents 7357716 + ace28d8 commit c41d7ee

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

discord/ext/bridge/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ def __getattribute__(self, name):
232232
except AttributeError as e:
233233
# if it doesn't exist, check this list, if the name of
234234
# the parameter is here
235-
if name is self.__special_attrs__:
235+
if name in self.__special_attrs__:
236236
raise e
237237

238238
# looks up the result in the variants.

discord/ext/pages/pagination.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1163,7 +1163,7 @@ async def respond(
11631163
if target is not None and not isinstance(target, discord.abc.Messageable):
11641164
raise TypeError(f"expected abc.Messageable not {target.__class__!r}")
11651165

1166-
if ephemeral and (self.timeout >= 900 or self.timeout is None):
1166+
if ephemeral and (self.timeout is None or self.timeout >= 900):
11671167
raise ValueError(
11681168
"paginator responses cannot be ephemeral if the paginator timeout is 15"
11691169
" minutes or greater"

discord/role.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,9 +162,8 @@ class RoleTags:
162162
that gives it context for the reason the role is managed.
163163
164164
Role tags are a fairly complex topic, since it's usually hard to determine which role tag combination represents which role type.
165-
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.
166-
If you find an issue, please open an issue on `GitHub <https://github.com/Pycord-Development/pycord/issues/new?template=bug_report.yml>`_.
167-
Read `this <https://lulalaby.notion.site/Special-Roles-Documentation-17411d3839e680abbb1eff63c51bd7a7?pvs=4>`_ if you need detailed information about how role tags work.
165+
We aim to improve the documentation / introduce new attributes in future.
166+
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.
168167
169168
.. versionadded:: 1.6
170169
.. versionchanged:: 2.7

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[build-system]
22
requires = [
3-
"setuptools>=62.6,<=75.8.0",
4-
"setuptools-scm>=6.2,<=8.1.0",
3+
"setuptools>=62.6,<=75.8.2",
4+
"setuptools-scm>=6.2,<=8.2.0",
55
]
66
build-backend = "setuptools.build_meta"
77

0 commit comments

Comments
 (0)