aboutsummaryrefslogtreecommitdiff
path: root/discord/asset.py
Commit message (Collapse)AuthorAgeFilesLines
* Add BaseUser.banner for all subclasses to access new bannersAlex Nørgaard2021-07-281-0/+11
|
* Make Asset.with_ functions positional onlyRapptz2021-06-281-3/+3
|
* Make Asset.replace only accept keyword argumentsRapptz2021-06-281-0/+1
|
* Replace uses of Ellipsis as sentinels with utils.MISSINGJosh2021-05-031-6/+8
|
* Refactor save() and read() into AssetMixinRapptz2021-04-171-78/+71
|
* Rewrite Asset designRapptz2021-04-161-105/+234
| | | | | | | | | | | | | | | | | | | | | | | 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 typings for audit logs, integrations, and webhooks Nadir Chowdhury2021-04-101-0/+5
|
* Use f-strings in more places that were missed.Rapptz2021-04-081-7/+6
|
* Add `__all__` to remaining modulesNadir Chowdhury2021-04-071-0/+4
|
* Modernize code to use f-stringsRapptz2021-04-041-13/+11
| | | | | This also removes the encoding on the top, since Python 3 does it by default. It also changes some methods to use `yield from`.
* Change copyright year to presentNihaal Sangha2021-01-151-2/+2
|
* Add Emoji.url_asDaggy12342020-12-171-0/+13
|
* Add sticker supportZomatree2020-11-231-0/+6
|
* Implement icon_rl_as and cover_image_url_as for AppInfoSebbyLaw2020-11-211-4/+14
|
* Drop superfluous zero in version related changes in the documentationRapptz2020-01-211-1/+1
|
* Bump copyright year to 2020Rapptz2020-01-191-1/+1
| | | | Closes #2510
* removed parameter section in Asset.readZomatree2020-01-151-7/+0
|
* Adjust BASE urls to have no trailing slash (consistency)Devon R2019-11-151-6/+6
|
* Return invites as https, various URL normalizationDevon R2019-11-151-8/+10
|
* Support team members data in application infofourjr2019-06-291-0/+8
|
* Update Sphinx to 2.1.2Rapptz2019-06-281-1/+6
|
* Improve documentationNCPlayz2019-06-071-0/+7
|
* Add support for animated guild icons.Rapptz2019-06-041-1/+21
|
* Add Asset.read() to retrieve assets into bytes objectsslice2019-04-201-22/+40
|
* Add equality comparisons between two assets and hashing an asset.Rapptz2019-04-131-0/+21
|
* Fix various bugs with Asset._url None handling.Rapptz2019-04-091-2/+4
|
* Redesign asset retrieval in the library.NCPlayz2019-04-061-0/+157
Most assets now return a new class named `Asset`. This allows for the assets to be consistently saved via a `save` method instead of special casing for `Attachment`. `AppInfo` is no longer a namedtuple it is a fully documented dataclass, as well as having the state attached to it. Fixes #1997