mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-20 16:00:29 +00:00
[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:
parent
c4ee4c1db4
commit
6f2603c049
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user