aboutsummaryrefslogtreecommitdiff
path: root/discord/ext
diff options
context:
space:
mode:
authorRapptz <[email protected]>2016-11-22 19:57:19 -0500
committerRapptz <[email protected]>2016-11-22 19:57:19 -0500
commit6f2603c049555f240686f6aa76463e570bec8c59 (patch)
treefc0b5ca5ed7daed01493e09bf3b7070c8b32af31 /discord/ext
parentMake discord.Embed builder more strict and easier to use. (diff)
downloaddiscord.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.py3
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)