From 6f2603c049555f240686f6aa76463e570bec8c59 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Tue, 22 Nov 2016 19:57:19 -0500 Subject: [PATCH] [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. --- discord/ext/commands/context.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/discord/ext/commands/context.py b/discord/ext/commands/context.py index 013618214..95996a673 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)