Nadir Chowdhury
631a0b1e13
Add support for ApplicationFlags
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
TheOneMusic
d21e65ce47
Add SystemChannelFlags.guild_reminder_notifications
4 years ago
Nadir Chowdhury
f1fac96e33
Remove `private_channel_(delete/create)` events
4 years ago
Rapptz
7afcacc9a1
Remove MemberCacheFlags.online
v8 no longer gives enough data for this to be possible
4 years ago
Nadir Chowdhury
83fe98c20d
Add typing for flags
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
Steve C
7836046621
Mark User.avatar_url as attribute in Intents.members docstring
The line currently comes out to
`User.avatar (User.avatar_url() and User.avatar_url_as())`
but `User.avatar_url` is not callable.
4 years ago
Nihaal Sangha
69bdc3a184
Change copyright year to present
4 years ago
Rapptz
7a3a571e0a
Don't store a user cache if there's no member intent or cache is off
Without a cache or member intent the user cache can get out of date
with no events to update the underlying user in the member object.
Ref: #6034
4 years ago
Rapptz
b91ddc6f4e
Mark intent alias flags as actual aliases to skip them in __iter__
Fix #5945
5 years ago
Rapptz
e4d7f44aa5
Make Intent class creation more intuitive
5 years ago
Rapptz
59d514fcdf
More intent related documentation
5 years ago
Sebastian Law
2974663367
Fix typos in Intents documentation
5 years ago
apple502j
0ebf5b2fa7
Add support for flag alias
5 years ago
Rapptz
2e06239d3c
Add documentation for gateway intents
5 years ago
Muhammad Hamza
11aaa03ec2
Fix presence intent docstring
5 years ago
Rapptz
213f55ffc7
Disable voice cache in weird intent configurations.
5 years ago
Rapptz
e644a5a060
Fix up wording in MemberCacheFlags exception
5 years ago
Rapptz
8d5c05ed20
Default MemberCacheFlags based on intents
5 years ago
Rapptz
23ae084b8c
Allow finer grained control over the member cache.
5 years ago
Rapptz
e10942a9ee
Add versionadded for intents enum
5 years ago
Rapptz
bec34c1110
Explicitly disable the members presence by default
5 years ago
Rapptz
a6381dcf77
Add support for guild intents
5 years ago
JohnyTheCarrot
ab5f995d78
Add support for public user flags
5 years ago
Io Mintz
a8baf0c9f0
flags: support accessing flag value instances on the class
Fixes #4023
5 years ago
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
5 years ago
Rapptz
6071607176
Bump copyright year to 2020
Closes #2510
5 years ago
Rapptz
2de90fbecf
Add User.system and MessageFlags.urgent
5 years ago
Rapptz
f7687e0a68
Clean up flag code significantly.
This also fixes the False setting bug.
5 years ago
NCPlayz
9c6a121644
Implement discord.MessageFlags
Refactor flags placement and use it for suppression.
5 years ago