aboutsummaryrefslogtreecommitdiff
path: root/discord/webhook
Commit message (Collapse)AuthorAgeFilesLines
* Change avatar_url type hint to Any instead of strRapptz2021-08-272-11/+13
|
* Fix Webhook return typesSteve C2021-08-262-12/+12
| | | Also add positional only arguments where applicable
* Remove in-place edits and return fresh instances insteadRapptz2021-08-232-18/+51
| | | | Fixes #4098
* Add type hints to AsyncWebhookAdapter methodsRapptz2021-08-231-14/+18
|
* Fix webhook typings and use PartialMessageable instead of ObjectRapptz2021-08-222-16/+24
|
* Typehint async_context global variableRapptz2021-08-221-2/+2
|
* Make json conversion functions privateRapptz2021-08-222-3/+3
|
* Make global log variable in modules privateRapptz2021-08-222-8/+8
|
* Fix SyncWebhook not working across thread barriersRapptz2021-07-301-11/+22
| | | | Fix #7310
* Fix user cache acting incorrectly with evictionsRapptz2021-07-291-0/+3
| | | | | | | | | | | | | | The first issue involved copied users which would lead to user updates causing faster evictions of the cache than was expected. The second issue involved users that weren't bound to an internal lifetime eviction policy. These users would not get evicted. For example, a user without mutual guilds or being part of the internal cache in general (messages, DMs) would never end up being evicted for some strange reason. To handle this case, store_user would get a counterpart named create_user which would create a user without potentially storing them in the cache. That way only users with a bound lifetime within the library would be stored.
* Remove extraneous __slots__ assignmentsRapptz2021-06-282-2/+2
|
* Add "new in version" missing in webhook documentation Rafael2021-06-271-2/+37
|
* Fix some webhook related type checker errorsRapptz2021-06-101-2/+4
|
* Add support for thread parameter in Webhook.sendRapptz2021-06-082-0/+32
|
* Remove view syncing before editing in viewsRapptz2021-05-311-3/+6
| | | | | This prevents a potential race condition when a MESSAGE_UPDATE is received syncing and refreshing the view components causing a desync.
* Check for view finished state before resuming listening on editRapptz2021-05-311-1/+1
|
* Add support for sending and editing views in WebhookRapptz2021-05-301-5/+55
|
* Allow Webhook.send to send ephemeral messagesRapptz2021-05-301-2/+21
| | | | This is only available for application webhooks
* Add interaction related endpoints to async webhookRapptz2021-05-271-0/+73
|
* Fix Webhook exampleapple502j2021-05-231-1/+1
|
* Fix various reference issues in documentationJosh2021-05-062-4/+0
| | | | Co-Authored-By: Riley Shaw <[email protected]>
* Replace uses of Ellipsis as sentinels with utils.MISSINGJosh2021-05-032-2/+2
|
* Clarify Webhook.send return value documentationNoName2021-05-022-4/+4
|
* Fix SyncWebhook exception case causing attribute errorsRapptz2021-05-011-0/+3
|
* Fix sending multipart data with SyncWebhookRapptz2021-05-011-4/+8
| | | | Fixes #6825
* Add utils.MISSINGNadir Chowdhury2021-04-292-12/+6
|
* [docs] Remove extraneous icon definitionJosh2021-04-251-2/+0
|
* Rename lingering _url Asset properties Nadir Chowdhury2021-04-211-1/+1
|
* Rewrite Asset designRapptz2021-04-161-90/+14
| | | | | | | | | | | | | | | | | | | | | | | This is a breaking change. This does the following transformations, assuming `asset` represents an asset type. Object.is_asset_animated() => Object.asset.is_animated() Object.asset => Object.asset.key Object.asset_url => Object.asset_url Object.asset_url_as => Object.asset.replace(...) Since the asset type now requires a key (or hash, if you will), Emoji had to be flattened similar to how Attachment was done since these assets are keyed solely ID. Emoji.url (Asset) => Emoji.url (str) Emoji.url_as => removed Emoji.url.read => Emoji.read Emoji.url.save => Emoji.save This transformation was also done to PartialEmoji.
* Add `fetch_message` for webhooksNadir Chowdhury2021-04-162-6/+126
|
* Fix overloads on Webhook.send to not require wait kwargRapptz2021-04-152-2/+2
|
* Fix WebhookMessage.edit documentationRapptz2021-04-152-12/+2
|
* Fix rate limit handling with retry_after precision changeRapptz2021-04-152-4/+8
|
* Rewrite webhooks to play better with typings and rate limitsRapptz2021-04-153-0/+2362
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