Lint Action
7513c2138f
Fix code style issues with Black
2021-09-05 21:34:20 +00:00
Sonic4999
75f052b8c9
Prefer static_format
over format
with static assets
2021-08-28 18:24:05 -04:00
JustAnyone
91652e3b60
Add per-guild member avatar support
...
Fix #7054
2021-08-22 06:49:42 -04:00
Nadir Chowdhury
60d82cf908
implement guild stickers
2021-07-30 21:25:41 -04:00
Alex Nørgaard
b47133dfb2
Add BaseUser.banner for all subclasses to access new banners
2021-07-28 19:41:43 -04:00
Rapptz
f9bccabac5
Make Asset.with_ functions positional only
2021-06-28 23:36:20 -04:00
Rapptz
d9adf4d35d
Make Asset.replace only accept keyword arguments
2021-06-28 23:36:20 -04:00
Josh
dc67d2bd85
Replace uses of Ellipsis as sentinels with utils.MISSING
2021-05-03 00:31:07 -04:00
Rapptz
fed259a83b
Refactor save() and read() into AssetMixin
2021-04-17 00:56:38 -04:00
Rapptz
9eaf1e85e4
Rewrite Asset design
...
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.
2021-04-16 11:27:23 -04:00
Nadir Chowdhury
3e92196a2b
Add typings for audit logs, integrations, and webhooks
2021-04-10 02:53:24 -04:00
Rapptz
99fc950510
Use f-strings in more places that were missed.
2021-04-08 06:02:47 -04:00
Nadir Chowdhury
89456022cf
Add __all__
to remaining modules
2021-04-07 02:30:32 -04:00
Rapptz
9d39b135f4
Modernize code to use f-strings
...
This also removes the encoding on the top, since Python 3 does it by
default. It also changes some methods to use `yield from`.
2021-04-04 07:03:53 -04:00
Nihaal Sangha
69bdc3a184
Change copyright year to present
2021-01-15 05:28:11 -05:00
Daggy1234
13bba3afc2
Add Emoji.url_as
2020-12-17 22:20:00 -05:00
Zomatree
344cb96c5d
Add sticker support
2020-11-23 05:09:20 -05:00
SebbyLaw
2e2560126f
Implement icon_rl_as and cover_image_url_as for AppInfo
2020-11-21 21:11:47 -05:00
Rapptz
02397306b2
Drop superfluous zero in version related changes in the documentation
2020-01-21 03:47:56 -05:00
Rapptz
6071607176
Bump copyright year to 2020
...
Closes #2510
2020-01-19 20:03:00 -05:00
Zomatree
4b826a894c
removed parameter section in Asset.read
2020-01-15 02:06:38 +00:00
Devon R
bf9b9c5879
Adjust BASE urls to have no trailing slash (consistency)
2019-11-15 04:25:38 -05:00
Devon R
f5ebf42e1f
Return invites as https, various URL normalization
2019-11-15 04:25:38 -05:00
fourjr
3961e7ef6d
Support team members data in application info
2019-06-29 19:14:24 -04:00
Rapptz
7543328fe7
Update Sphinx to 2.1.2
2019-06-28 01:43:04 -04:00
NCPlayz
3c9bcc2851
Improve documentation
2019-06-07 19:27:46 -04:00
Rapptz
9674055c2a
Add support for animated guild icons.
2019-06-04 19:04:44 -04:00
slice
d80d4145b1
Add Asset.read() to retrieve assets into bytes objects
2019-04-20 15:12:52 -07:00
Rapptz
7c091282ce
Add equality comparisons between two assets and hashing an asset.
2019-04-13 17:22:25 -04:00
Rapptz
407d18a30d
Fix various bugs with Asset._url None handling.
2019-04-09 05:17:29 -04:00
NCPlayz
be227ebcf0
Redesign asset retrieval in the library.
...
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
2019-04-06 19:12:50 -04:00