diff options
| author | Rapptz <[email protected]> | 2015-12-19 06:18:12 -0500 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2015-12-19 06:18:12 -0500 |
| commit | f1f0e169e425ac9c849561788281e27bd8bb0acd (patch) | |
| tree | 0a6d6717303c57e0902fd5dea043f2f83ff4a5e4 /discord/permissions.py | |
| parent | Add listener for on_ready event for easier background tasks. (diff) | |
| download | discord.py-f1f0e169e425ac9c849561788281e27bd8bb0acd.tar.xz discord.py-f1f0e169e425ac9c849561788281e27bd8bb0acd.zip | |
Add __slots__ where appropriate to data classes.
Diffstat (limited to 'discord/permissions.py')
| -rw-r--r-- | discord/permissions.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/discord/permissions.py b/discord/permissions.py index ee0ad555..d9426693 100644 --- a/discord/permissions.py +++ b/discord/permissions.py @@ -24,7 +24,7 @@ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. """ -class Permissions(object): +class Permissions: """Wraps up the Discord permission value. Supported operations: @@ -50,6 +50,7 @@ class Permissions(object): were regular bools. This allows you to edit permissions. """ + __slots__ = [ 'value' ] def __init__(self, permissions=0, **kwargs): self.value = permissions |