mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-07 10:22:59 +00:00
Fix and add test for missing discord.Permission bits
This commit is contained in:
7
tests/test_permissions_all.py
Normal file
7
tests/test_permissions_all.py
Normal file
@ -0,0 +1,7 @@
|
||||
import discord
|
||||
|
||||
from functools import reduce
|
||||
from operator import or_
|
||||
|
||||
def test_permissions_all():
|
||||
assert discord.Permissions.all().value == reduce(or_, discord.Permissions.VALID_FLAGS.values())
|
Reference in New Issue
Block a user