Rapptz
1aeec34f84
Typehint Member and various typing fixes
4 years ago
Rapptz
a372aadb2d
Rework Member.edit to not use kwargs for better typing
4 years ago
Steve C
20dd632722
Fix Member.ban typing to include 0-day message deletes
4 years ago
Michael H
1bf782fcb5
Add Member.get_role
Adds an efficient way to check if a member has a role by ID.
This is done in a way consistent with the existing user API of the
library.
The more debated Member.has_role_id/has_role is intentionally not
included for review at this time given the heavy bikeshedding of it.
4 years ago
Josh
5fa64e83e0
Fix issues with imports causing NameErrors
4 years ago
Nadir Chowdhury
757cfad38f
Type up **kwargs of various methods
4 years ago
Nadir Chowdhury
e4513f70ad
`activities` is no longer nullable
4 years ago
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.
4 years ago
numbermaniac
208b16ed1b
Add note to member docs about Spotify limitation
4 years ago
Rapptz
1209585de5
Remove User.permissions_in
This seemed to only cause confusion.
4 years ago
Rapptz
7d79b4ba55
Remove Member related handling in PRESENCE_UPDATE
4 years ago
Nadir Chowdhury
89456022cf
Add `__all__` to remaining modules
4 years ago
Rapptz
ff7094ce96
Convert datetimes to aware datetimes with UTC.
Naive datetimes will now be interpreted as local time throughout
the library.
4 years ago
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`.
4 years ago
Nadir Chowdhury
1b2688518e
Implement StageChannel and related methods
4 years ago
Sebastian Law
d6501159e7
[docs] copy signature from overridden and inherited methods
4 years ago
Sebastian Law
a06d00f554
Make `await` text appear in async Member method docs
4 years ago
Nadir Chowdhury
63ec23bac2
Code optimisations and refactoring via Sourcery
4 years ago
Lucas
d7b41e0a21
Fix User public flags not updating
4 years ago
Nihaal Sangha
69bdc3a184
Change copyright year to present
4 years ago
Perry Cate
bbbda4ec00
Update add_roles docstring to mention role order.
4 years ago
Rapptz
93f102ca90
Add support for Member.pending boolean attribute
4 years ago
Nadir Chowdhury
6b803acde4
[chore] Remove redundant imports
This also removes the historical patch for NullHandler implemented in bbf1c54
, as it has been available since Python 3.1.
4 years ago
Rapptz
f2de794bde
Intern status and overwrite strings
5 years ago
Rapptz
23ae084b8c
Allow finer grained control over the member cache.
5 years ago
Rapptz
c261f7c4a3
Handle user updates within GUILD_MEMBER_UPDATE
5 years ago
Michael
93fa46713a
Fix and add documentation
5 years ago
Rapptz
a183c4f752
Completely update member references from message inner members.
Fixes #5819
5 years ago
rodovia
15f51113c3
Fix Member.joined_at documentation
5 years ago
Skezza
c3bca7ec73
Documentation formatting
5 years ago
Sebastian Law
b4b953bfc6
Fix various inconsistencies within the documentation ( #5067 )
5 years ago
Michael H
7bef78284f
Removes the caching behavior of Member.roles
- fixes 4087
- This intentionally uses some internals in both Member.roles and
Member.top_role to retain as much performance as possible while
removing the cache
5 years ago
JohnyTheCarrot
ab5f995d78
Add support for public user flags
5 years ago
kittenswolf
6decfd1d1a
Fix colour properties being displayed as methods in the documentation.
5 years ago
Rapptz
02397306b2
Drop superfluous zero in version related changes in the documentation
5 years ago
Rapptz
6071607176
Bump copyright year to 2020
Closes #2510
5 years ago
Rapptz
42a084028c
Expose _ActivityTag as BaseActivity to easily refer to.
5 years ago
Rapptz
de5caf59d6
Cache member.roles access to avoid surprising performance traps
Without the cache, repeated access could be accidentally quadratic or
worse.
5 years ago
Rapptz
f1118273f5
Fix Member.mentioned_in returning True if in separate guilds
5 years ago
Willy
99b61f973f
Added Optional to VoiceState.channel type
6 years ago
Joshua B
8240454555
Add self_stream property to VoiceState object.
6 years ago
Rapptz
562580a07f
Use lower level Guild.owner_id for permission resolution.
6 years ago
Rapptz
91f1f430e1
Fix NameError in member upgrade code
6 years ago
Rapptz
bbc50c92d0
Add upgraded Member to Message.mentions in case of no cache.
6 years ago
Rapptz
5c1b239b47
Different method of upgrading user instances
6 years ago
SnowyLuma
2b4cf5dafc
Set premium_since when copying and updating Member
6 years ago
NCPlayz
3c9bcc2851
Improve documentation
6 years ago
Rapptz
2b27a7a9d5
Add Member.premium_since to denote member boost date.
6 years ago
Rapptz
3c387e9031
Use attrgetter to speed up Member attribute access by 2x.
6 years ago
Rapptz
4dee175d2a
Add support for voice kicking.
6 years ago