Finished auto role list #134

This commit is contained in:
2023-02-20 18:30:45 +01:00
parent 81fe7433bd
commit a2dcbbc465
20 changed files with 209 additions and 54 deletions

View File

@@ -32,7 +32,8 @@
"cpl-discord==2022.12.2"
],
"DevDependencies": [
"cpl-cli==2022.12.1.post3"
"cpl-cli==2022.12.1.post3",
"pygount==1.5.1"
],
"PythonVersion": ">=3.10.4",
"PythonPath": {},

View File

@@ -63,7 +63,7 @@ class Query(QueryABC):
self.set_field("guilds", self._resolve_guilds)
def _resolve_guilds(self, *_, filter=None):
if filter is None and "id" not in filter:
if filter is None or "id" not in filter:
return self._bot.guilds
return self._bot.guilds.where(lambda g: g.id == int(filter["id"]))