aboutsummaryrefslogtreecommitdiff
path: root/discord/flags.py
Commit message (Collapse)AuthorAgeFilesLines
* Clarify connect() requires Intents.voice_statesImayhaveborkedit2021-08-241-0/+4
|
* flag_value should not be a generic classBryan Forbes2021-08-181-1/+1
| | | | | | | | | | | Since there is no generic information in `flag_value.__init__()`, `flag_value` descriptors get stored as `flag_value[<nothing>]` in mypy strict mode and then the `__get__` overloads never match. This leads to errors when using things like `permissions_instance.embed_links` since `<nothing>` never matches `Permissions`. The generic inheritance isn't needed at all since the type information we care about comes from the call site of `__get__` and not the instantiation of the descriptor.
* Rename instances of nitro to premiumRapptz2021-07-301-1/+1
|
* implement guild stickersNadir Chowdhury2021-07-301-1/+17
|
* fix typo in ephemeral function definitionNadir Chowdhury2021-07-211-1/+1
|
* Update intents docs to reflect presence update changesapple502j2021-07-071-2/+2
|
* Add MessageFlags.ephemeralRapptz2021-07-031-0/+9
|
* Remove slots from flagsRapptz2021-07-031-3/+1
| | | | Fix #7159
* Typehint permissionsRapptz2021-07-031-1/+3
|
* First pass at preliminary thread supportRapptz2021-06-081-0/+7
| | | | | This is missing a lot of functionality right now, such as two gateway events and all the HTTP CRUD endpoints.
* Add support for integration create/update/delete eventsNadir Chowdhury2021-06-071-0/+3
|
* Add Discord Certified Moderator user flagStanisław Jelnicki2021-05-231-0/+8
|
* Add get_user to the things intents.members affectspikaninja2021-05-031-0/+1
|
* Add support for ApplicationFlagsNadir Chowdhury2021-04-181-0/+82
|
* Rewrite Asset designRapptz2021-04-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | 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.
* Add SystemChannelFlags.guild_reminder_notificationsTheOneMusic2021-04-151-0/+8
|
* Remove `private_channel_(delete/create)` eventsNadir Chowdhury2021-04-111-2/+0
|
* Remove MemberCacheFlags.onlineRapptz2021-04-111-30/+2
| | | | v8 no longer gives enough data for this to be possible
* Add typing for flagsNadir Chowdhury2021-04-071-26/+48
|
* Modernize code to use f-stringsRapptz2021-04-041-8/+6
| | | | | This also removes the encoding on the top, since Python 3 does it by default. It also changes some methods to use `yield from`.
* Mark User.avatar_url as attribute in Intents.members docstringSteve C2021-03-131-1/+1
| | | | | The line currently comes out to `User.avatar (User.avatar_url() and User.avatar_url_as())` but `User.avatar_url` is not callable.
* Change copyright year to presentNihaal Sangha2021-01-151-2/+1
|
* Don't store a user cache if there's no member intent or cache is offRapptz2020-11-231-0/+4
| | | | | | | 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
* Mark intent alias flags as actual aliases to skip them in __iter__Rapptz2020-10-171-3/+3
| | | | Fix #5945
* Make Intent class creation more intuitiveRapptz2020-09-241-9/+11
|
* More intent related documentationRapptz2020-09-241-4/+4
|
* Fix typos in Intents documentationSebastian Law2020-09-241-8/+8
|
* Add support for flag aliasapple502j2020-09-241-1/+23
|
* Add documentation for gateway intentsRapptz2020-09-231-2/+107
|
* Fix presence intent docstringMuhammad Hamza2020-09-231-1/+1
|
* Disable voice cache in weird intent configurations.Rapptz2020-09-231-0/+3
|
* Fix up wording in MemberCacheFlags exceptionRapptz2020-09-231-1/+1
|
* Default MemberCacheFlags based on intentsRapptz2020-09-231-0/+26
|
* Allow finer grained control over the member cache.Rapptz2020-09-231-0/+126
|
* Add versionadded for intents enumRapptz2020-09-231-0/+2
|
* Explicitly disable the members presence by defaultRapptz2020-09-231-4/+11
|
* Add support for guild intentsRapptz2020-09-231-1/+316
|
* Add support for public user flagsJohnyTheCarrot2020-05-291-0/+97
|
* flags: support accessing flag value instances on the class Io Mintz2020-04-201-0/+5
| | | Fixes #4023
* Fixes and improvements for v1.3 documentationHarmon2020-01-221-0/+2
| | | | | | | | | * 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
* Add User.system and MessageFlags.urgentRapptz2019-12-211-0/+8
|
* Clean up flag code significantly.Rapptz2019-12-201-94/+74
| | | | This also fixes the False setting bug.
* Implement discord.MessageFlagsNCPlayz2019-12-201-0/+237
Refactor flags placement and use it for suppression.