mirror of
https://github.com/MelisaDev/melisa.git
synced 2024-09-22 19:22:01 +03:00
melisa requires python version >= 3.9
This commit is contained in:
parent
efbfa4c6af
commit
bd3c67d107
1 changed files with 3 additions and 2 deletions
|
@ -83,11 +83,12 @@ class Client:
|
||||||
|
|
||||||
if isinstance(intents, Iterable):
|
if isinstance(intents, Iterable):
|
||||||
self.intents = sum(intents)
|
self.intents = sum(intents)
|
||||||
|
elif intents is None:
|
||||||
if intents is None:
|
|
||||||
self.intents = (
|
self.intents = (
|
||||||
Intents.all() - Intents.GUILD_PRESENCES - Intents.GUILD_MEMBERS
|
Intents.all() - Intents.GUILD_PRESENCES - Intents.GUILD_MEMBERS
|
||||||
)
|
)
|
||||||
|
else:
|
||||||
|
self.intents = intents
|
||||||
|
|
||||||
self._token = token
|
self._token = token
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue