[commands] Remove slots on Context.

This is to allow people to set temporary local variables by injecting
them directly into the context via some decorator or some other
mechanism. Contexts are not kept alive long enough to warrant being
slotted.
This commit is contained in:
Rapptz 2016-11-22 19:57:19 -05:00
parent c4ee4c1db4
commit 6f2603c049

View File

@ -64,9 +64,6 @@ class Context:
nonsense string. If nothing was passed to attempt a call to a
subcommand then this is set to `None`.
"""
__slots__ = ['message', 'bot', 'args', 'kwargs', 'command', 'view',
'invoked_with', 'invoked_subcommand', 'subcommand_passed',
'prefix' ]
def __init__(self, **attrs):
self.message = attrs.pop('message', None)