mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-07 10:22:59 +00:00
Rewrite webhooks to play better with typings and rate limits
This unfortunately required splitting the types into two. This led to a lot of unfortunate code duplication that I didn't really enjoy writing. The new design allows users to pass an authentication token to make webhook requests without the webhook token and allows to finally edit the webhook channel. The new design also uses a contextvar to store rate limiting information so multiple instances or recreating instances no longer clears the ratelimiting state since it's now essentially a "global" object. Closes #6525, closes #6662, closes #2509, closes #1761
This commit is contained in:
2
setup.py
2
setup.py
@ -50,7 +50,7 @@ setup(name='discord.py',
|
||||
"Issue tracker": "https://github.com/Rapptz/discord.py/issues",
|
||||
},
|
||||
version=version,
|
||||
packages=['discord', 'discord.types', 'discord.ext.commands', 'discord.ext.tasks'],
|
||||
packages=['discord', 'discord.types', 'discord.webhook', 'discord.ext.commands', 'discord.ext.tasks'],
|
||||
license='MIT',
|
||||
description='A Python wrapper for the Discord API',
|
||||
long_description=readme,
|
||||
|
Reference in New Issue
Block a user