Soheab
e64d8b71bd
InviteJobStatus -> InviteUsersJobStatus
6 months ago
Soheab
fa6aab903f
InviteTargetUsersJobStatus -> InviteUsersJob
6 months ago
Soheab
2ec68d4322
Cast ids to str beforehand
6 months ago
Soheab
b758dd72ad
List -> Sequence
6 months ago
Soheab
b7082063d4
InviteTargetUsersJobErrorStatus -> InviteJobStatus
6 months ago
Soheab
a374276310
Better docs
6 months ago
Soheab
f163dbf2a5
parse_time can take None
6 months ago
Soheab
c082d3e16d
Add support for community invites
6 months ago
Rapptz
44a44e938f
Reformat entire project with ruff instead of black
11 months ago
Sacul
6ec2e5329b
Deprecate with_expiration param in fetch_invite
11 months ago
Soheab
774b934f74
Add support for guest invites
1 year ago
owocado
4862ea22fd
Return invites when deleting them via Invite.delete or Client.delete_invite
1 year ago
Rapptz
8953938a53
Update Pyright to v1.1.394
1 year ago
Andrin
b9dc85e6f7
Add type attribute to Invite
2 years ago
Josh
630b2a1e55
Update pyright version
3 years ago
Jonah Lawrence
d7b6a2ad12
Fix usage of single backticks to links and code-blocks
4 years ago
Steve C
ce06beeb6c
Fix permissions-based docstrings to be more consistent
4 years ago
z03h
dc81ff76c4
Add Object.type to Objects where a type can be determined
4 years ago
Andy
6a4d5eef52
Fix documentation errors in discord.Invite and on_integration_update
4 years ago
jack1142
5ffa3e85de
Update comments after `# type: ignore` to be compatible with PEP 484
4 years ago
Stocker
5aa696ccfa
Fix typing issues and improve typing completeness across the library
Co-authored-by: Danny <[email protected] >
Co-authored-by: Josh <[email protected] >
4 years ago
Rapptz
5ff657dbec
Add missing attributes in PartialInviteGuild
4 years ago
Josh
147948af9b
Use typing.Self throughout library
4 years ago
Nadir Chowdhury
3c6279b947
Implement Guild Scheduled Events
4 years ago
Rapptz
ecf239d2a2
Fix user cache acting incorrectly with evictions
The first issue involved copied users which would lead to user updates
causing faster evictions of the cache than was expected.
The second issue involved users that weren't bound to an internal
lifetime eviction policy. These users would not get evicted.
For example, a user without mutual guilds or being part of the internal
cache in general (messages, DMs) would never end up being evicted for
some strange reason. To handle this case, store_user would get a
counterpart named create_user which would create a user without
potentially storing them in the cache. That way only users with a
bound lifetime within the library would be stored.
5 years ago
xPolar
dd8168f902
Fix a typo within the documentation
5 years ago
Rapptz
d78e5d979d
Refactor and type hint invites
5 years ago
Zomatree
b48f510e15
Add invite targets for voice channel invites
5 years ago
Stanisław Jelnicki
9b4e820bbe
Document Invite.inviter as optional
5 years ago
Josh
3864fb37a0
Fix various reference issues in documentation
Co-Authored-By: Riley Shaw <[email protected] >
5 years ago
Nadir Chowdhury
e762f55847
Add fetch_invite with with_expiration
5 years ago
sudosnok
67abfea61a
Add target_user and target_type to Invite objects
5 years ago
Nadir Chowdhury
f4165755a9
Rename lingering _url Asset properties
5 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.
5 years ago
Nadir Chowdhury
1efdef3ac3
Add typings for invites, templates, and bans
5 years ago
Rapptz
99fc950510
Use f-strings in more places that were missed.
5 years ago
Nadir Chowdhury
89456022cf
Add `__all__` to remaining modules
5 years ago
Rapptz
ff7094ce96
Convert datetimes to aware datetimes with UTC.
Naive datetimes will now be interpreted as local time throughout
the library.
5 years ago
Rapptz
94bd1b9822
Convert two missing places to f-strings
5 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`.
5 years ago
xPolar
6c40e3b837
Update docs for discord.Invite.max_uses
This mentions the unlimited uses aspect.
5 years ago
Nihaal Sangha
69bdc3a184
Change copyright year to present
6 years ago
Rapptz
92fffb5daa
Revert "Fix table wrapping"
This reverts commit c911cd0dbd .
6 years ago
Rapptz
df57392aea
Fix table wrapping
6 years ago
Tarek
7f17dc79a6
Remove namedtuples to better future guard the library
6 years ago
Skezza
c3bca7ec73
Documentation formatting
6 years ago
Sebastian Law
b4b953bfc6
Fix various inconsistencies within the documentation ( #5067 )
6 years ago
Anurag
08af907807
Change PartialInviteGuild.icon_url_as to mimic Guild.icon_url_as
6 years ago
Rapptz
0033cc83ef
Fix fetching invites on guilds the user is not in
7 years ago
Rapptz
6ed0ae7d96
Fix fetching invites for a GroupChannel.
Closes #2394
Fixes #2383
7 years ago