Add support for voice channel parties #33

Closed
wasi-master wants to merge 277 commits from master into 2.0
128 changed files with 12272 additions and 18795 deletions
Showing only changes of commit ecd898e62c - Show all commits

View File

@ -408,14 +408,10 @@ class Intents(BaseFlags):
if item not in cls.VALID_FLAGS.keys():
intents_list.remove(item)
items = {}
self = cls.none()
for item in intents_list:
items[item] = cls.VALID_FLAGS[item]
setattr(self, item, True)
bits = max(items.values()).bit_length()
value = (1 << bits) - 1
self = cls.__new__(cls)
self.value = value
return self
@classmethod