diff options
| author | Rapptz <[email protected]> | 2016-11-22 19:57:19 -0500 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2016-11-22 19:57:19 -0500 |
| commit | 6f2603c049555f240686f6aa76463e570bec8c59 (patch) | |
| tree | fc0b5ca5ed7daed01493e09bf3b7070c8b32af31 /discord/ext | |
| parent | Make discord.Embed builder more strict and easier to use. (diff) | |
| download | discord.py-6f2603c049555f240686f6aa76463e570bec8c59.tar.xz discord.py-6f2603c049555f240686f6aa76463e570bec8c59.zip | |
[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.
Diffstat (limited to 'discord/ext')
| -rw-r--r-- | discord/ext/commands/context.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/discord/ext/commands/context.py b/discord/ext/commands/context.py index 01361821..95996a67 100644 --- a/discord/ext/commands/context.py +++ b/discord/ext/commands/context.py @@ -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) |