Fix Permissions.manage_emojis bit being incorrect.
This commit is contained in:
parent
2927e5fd39
commit
18a9b75990
@ -127,7 +127,7 @@ class Permissions:
|
||||
def all(cls):
|
||||
"""A factory method that creates a :class:`Permissions` with all
|
||||
permissions set to True."""
|
||||
return cls(0b00111111111101111111110000111111)
|
||||
return cls(0b01011111111101111111110000111111)
|
||||
|
||||
@classmethod
|
||||
def all_channel(cls):
|
||||
@ -148,7 +148,7 @@ class Permissions:
|
||||
def general(cls):
|
||||
"""A factory method that creates a :class:`Permissions` with all
|
||||
"General" permissions from the official Discord UI set to True."""
|
||||
return cls(0b00111100000000000000000000111111)
|
||||
return cls(0b01011100000000000000000000111111)
|
||||
|
||||
@classmethod
|
||||
def text(cls):
|
||||
@ -423,11 +423,11 @@ class Permissions:
|
||||
|
||||
This also corresponds to the "manage permissions" channel-specific override.
|
||||
"""
|
||||
return self._bit(29)
|
||||
return self._bit(30)
|
||||
|
||||
@manage_emojis.setter
|
||||
def manage_emojis(self, value):
|
||||
self._set(29, value)
|
||||
self._set(30, value)
|
||||
|
||||
# 2 unused
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user