aboutsummaryrefslogtreecommitdiff
path: root/discord/appinfo.py
Commit message (Collapse)AuthorAgeFilesLines
* [docs] Update Sphinx and Fix various referencesJosh2021-06-271-1/+1
| | | Co-Authored-By: Riley Shaw <[email protected]>
* Type-Hint appinfo/teamJosh2021-06-101-33/+37
|
* Add invite targets for voice channel invitesZomatree2021-05-291-11/+72
|
* [docs] fix docstring of AppInfoNadir Chowdhury2021-04-191-7/+9
|
* Add privacy policy and tos fields to AppInfoZomatree2021-04-171-0/+14
|
* Rewrite Asset designRapptz2021-04-161-83/+15
| | | | | | | | | | | | | | | | | | | | | | | 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.
* Use f-strings in more places that were missed.Rapptz2021-04-081-7/+25
|
* Add `__all__` to remaining modulesNadir Chowdhury2021-04-071-0/+3
|
* Modernize code to use f-stringsRapptz2021-04-041-2/+0
| | | | | 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-1/+1
|
* Implement icon_rl_as and cover_image_url_as for AppInfoSebbyLaw2020-11-211-2/+64
|
* Fixes and improvements for v1.3 documentationHarmon2020-01-221-3/+32
| | | | | | | | | * Add missing versionadded strings for v1.3 * Add missing versionchanged string for Message.edit * Consistently use versionadded for attributes * Consistently use versionchanged for parameters * Use versionchanged for Bot.is_owner * Fix references in v1.3 changelog * Improve grammar in v1.3 changelog
* Bump copyright year to 2020Rapptz2020-01-191-1/+1
| | | | Closes #2510
* Support team members data in application infofourjr2019-06-291-1/+47
|
* Add back __repr__ that were deleted in the Asset redesignBenjamin Mintz2019-05-131-0/+4
| | | | | | The Asset PR (be227ebcf0c8bad6b56798339b5414b8da414dc0) changed some namedtuple-deriving classes to object-deriving classes, which meant that the free __repr__ provided by namedtuple was removed
* Remove manual documentation for AppInfoRapptz2019-04-081-3/+4
|
* Redesign asset retrieval in the library.NCPlayz2019-04-061-0/+73
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