23 Commits

Author SHA1 Message Date
Rapptz
8d17aa23c9 Remove @ prefix from usernames
Discord seemed to have backtracked on this display
2023-05-19 20:59:19 -04:00
Rapptz
9ebc13e160 Only use @ prefix in __str__ if the user is migrated 2023-05-19 20:59:19 -04:00
Rapptz
df01db3490 Initial support for pomelo migration 2023-05-19 20:59:19 -04:00
Harshal Laheri
20d3871290
Add return type hint for some functions 2022-07-15 00:15:42 -04:00
jack1142
8acb4531b5
Include inherited members in TeamMember's documentation 2022-03-05 19:15:08 -05:00
Rapptz
f7d551953b Remove extraneous __slots__ assignments 2021-06-28 23:36:20 -04:00
Josh
04788d0a06
Type-Hint appinfo/team 2021-06-10 08:06:00 -04:00
Zomatree
b48f510e15
Add invite targets for voice channel invites 2021-05-29 00:15:46 -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
Rapptz
99fc950510 Use f-strings in more places that were missed. 2021-04-08 06:02:47 -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
Bryan Forbes
80dd2c63c0
Fix Team.icon_url_as format argument default value 2020-11-28 19:58:48 -05:00
SebbyLaw
2e2560126f Implement icon_rl_as and cover_image_url_as for AppInfo 2020-11-21 21:11:47 -05:00
Harmon
e469174071 Documentation fixes (#2531)
* Fix indentation for versionadded for Team.members
* Replace tabs with spaces in API Reference documentation
2020-01-24 20:53:34 -05:00
Harmon
6f9793fe5e Fixes and improvements for v1.3 documentation
* 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
2020-01-22 23:55:05 -05:00
Rapptz
6071607176 Bump copyright year to 2020
Closes #2510
2020-01-19 20:03:00 -05:00
Joshua B
9d0400516a
Fix TeamMember.team typehinting
class Team should be capitalised.
2019-07-01 03:08:49 +10:00
Rapptz
ccb26018ab Export Team related stuff from __init__ 2019-06-30 02:34:42 -04:00
Rapptz
ba7a319ab0 Team.owner should return a TeamMember.
Should always be available but who knows.
2019-06-30 02:34:42 -04:00
Rapptz
c4d1bd7899 TeamMember inherits from BaseUser instead of attribute. 2019-06-30 02:34:42 -04:00
Rapptz
68342db04d [commands] Properly raise the correct exception for owner_ids
Also some minor nits with documentation.
2019-06-29 19:26:45 -04:00
fourjr
3961e7ef6d Support team members data in application info 2019-06-29 19:14:24 -04:00