aboutsummaryrefslogtreecommitdiff
path: root/discord/enums.py
Commit message (Collapse)AuthorAgeFilesLines
* Bump copyright year to 2020Rapptz2020-01-191-1/+1
| | | | Closes #2510
* Add support for custom activitiesRapptz2020-01-141-0/+1
| | | | | | It's been long enough. Fixes #2400
* Add `VoiceRegion.dubai`NCPlayz2020-01-061-0/+1
|
* Typo: AuditLogActionCategoryChristian Clauss2019-12-231-1/+1
|
* Add Profile.system and Profile.team_user to query newer flagsRapptz2019-12-211-0/+2
|
* Implement `Webhook.type`NCPlayz2019-11-261-0/+5
|
* Add new audit log entry types. Fix issue with unknown entry typesJosh B2019-11-261-26/+46
|
* Add europe regionapple502j2019-10-171-0/+1
|
* Add CHANNEL_FOLLOW_ADD Message TypeDice2019-08-271-0/+1
| | | | | | | | Add documentation for MessageType.channel_follow_add Add versionchanged to new MessageType attr Add system_content for new MessageType
* Support team members data in application infofourjr2019-06-291-0/+5
|
* Cast activity enumerator to integer instead of accessing value directlyRapptz2019-06-251-0/+3
| | | | Should make the library more resilient to future changes.
* Fix descriptor detection in enum code.Rapptz2019-06-091-7/+10
|
* Disallow deleting of enum attributes.Rapptz2019-06-091-0/+3
|
* Add EnumMeta.__reversed__ just in case someone does this.Rapptz2019-06-091-0/+3
| | | | I sure hope not.
* Add EnumMeta.__len__ to not break user avatar code.Rapptz2019-06-091-0/+3
|
* Remove unused import.Rapptz2019-06-091-1/+0
|
* Replace Enum with an internal one for significant speed improvements.Rapptz2019-06-091-54/+88
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This has been a massive pain point for me personally due to the poor design of the Enum class leading to the common use cases used in the library being significantly slow. Since this Enum is not public facing in terms of *creation*, I can only implement the APIs that are used when *accessing* them. This Enum is a drop-in replacement to the pre-existing enum.Enum class except it comes with significant speed-ups. Since this is a lot to go over, I will let the numbers speak for themselves: In [4]: %timeit enums.try_enum(enums.Status, 'offline') 263 ns ± 34.3 ns per loop (7 runs, 1000000 loops each) In [5]: %timeit NeoStatus.try_value('offline') 134 ns ± 0.859 ns per loop (7 runs, 10000000 loops each) In [6]: %timeit enums.Status.offline 116 ns ± 0.378 ns per loop (7 runs, 10000000 loops each) In [7]: %timeit NeoStatus.offline 31.6 ns ± 0.327 ns per loop (7 runs, 10000000 loops each) In [8]: %timeit enums.Status.offline.value 382 ns ± 15.2 ns per loop (7 runs, 1000000 loops each) In [9]: %timeit NeoStatus.offline.value 65.5 ns ± 0.953 ns per loop (7 runs, 10000000 loops each) In [10]: %timeit str(enums.Status.offline) 630 ns ± 14.8 ns per loop (7 runs, 1000000 loops each) In [11]: %timeit str(NeoStatus.offline) 253 ns ± 3.53 ns per loop (7 runs, 1000000 loops each) In [12]: %timeit enums.Status('offline') 697 ns ± 8.42 ns per loop (7 runs, 1000000 loops each) In [13]: %timeit NeoStatus('offline') 182 ns ± 1.83 ns per loop (7 runs, 10000000 loops each)
* Add support for new message types related to premium guilds.Rapptz2019-06-041-8/+12
|
* Add India region to VoiceRegionapple502j2019-05-131-0/+1
|
* Consistent use of __all__ to prevent merge conflicts.Rapptz2019-04-201-5/+21
|
* Improve performance of value -> enum by about 5x.Rapptz2019-04-151-2/+55
|
* Fix issue with speaking state causing an error.Rapptz2019-04-081-0/+3
|
* Change all IntEnum to EnumRapptz2019-04-081-7/+7
| | | | A testament to how many 3.5 users there are.
* Added functionality to edit user settingsCapnS2019-03-281-1/+17
| | | | | | | | | | | | Changing docs to fit other parts of the lib Co-Authored-By: CapnS <[email protected]> Removing Type Checking Made all of Rapptz's suggested changes Removing imports that are no longer needed
* Add support for store channels.Rapptz2019-03-171-0/+1
|
* Add support for guild news channels.Rapptz2019-03-081-0/+1
|
* Add PremiumType enumeration and ClientUser.premium_typeLiam H2019-02-121-1/+6
|
* Update voice code to vws V4Imayhaveborkedit2019-01-281-4/+13
| | | | | | | - Update internals to be compatible with v4 - Adds multiple encryption mode support. Previously only `xsalsa20_poly1305` was supported. Now `xsalsa20_poly1305_suffix` is also supported. Note: There is no (nice) way to manually select a mode. The user needn't worry about this however. - Fixed speaking state bug. When you disconnected from a voice channel while a bot was playing, upon reconnect you would be unable to hear the bot. This was caused by bots not sending their speaking state while transmitting. Bots will now set their speaking state properly when transmitting. Note: This does not account for sending actual silence, the speaking indicator will still be active.
* Bumped copyright years to 2019.Dante Dam2019-01-281-1/+1
|
* Add support for default notification level in audit logs and Guild.editRapptz2018-11-251-1/+1
|
* Add Guild.default_notificationsChris2018-11-241-1/+5
|
* add support for Bug Hunter and Early Supporter flagsbmintz2018-11-241-0/+2
|
* Added hypesquad house functionalitymental2018-08-221-1/+8
|
* Adds missing voice regions.MaximusPX2018-08-221-0/+2
|
* Split Game object to separate Activity subtypes for Rich Presences.Rapptz2018-03-051-1/+10
| | | | | | | | | | | This is a massive breaking change. * All references to "game" have been renamed to "activity" * Activity objects contain a majority of the rich presence information * Game and Streaming are subtypes for memory optimisation purposes for the more common cases. * Introduce a more specialised read-only type, Spotify, for the official Spotify integration to make it easier to use.
* Missing Voice RegionsMippy (William)2017-11-121-0/+2
|
* Add category support.Rapptz2017-09-131-4/+5
| | | | | | | | | | | | | This adds: * CategoryChannel, which represents a category * Guild.by_category() which traverses the channels grouping by category * Guild.categories to get a list of categories * abc.GuildChannel.category to get the category a channel belongs to * sync_permissions keyword argument to abc.GuildChannel.edit to sync permissions with a pre-existing or new category * category keyword argument to abc.GuildChannel.edit to move a channel to a category
* Change VerificationLevel, ContentFilter to be IntEnumsGorialis2017-08-021-3/+3
|
* Add support for user flags in Profile.Rapptz2017-06-301-1/+6
|
* Rename verification level to extreme due to demand.Rapptz2017-05-271-1/+1
|
* Add highest verification level.Rapptz2017-05-271-5/+7
|
* Rename GuildRegion to VoiceRegion.Rapptz2017-05-091-2/+2
| | | | | This naming makes more sense since voice regions are not a guild exclusive concept.
* Add support for message delete audit log action type.Rapptz2017-05-041-1/+4
|
* Implement audit logs.Rapptz2017-04-301-1/+86
|
* Support for new member message types.Rapptz2017-04-211-0/+1
|
* Export missing enums.Rapptz2017-04-121-0/+3
|
* Add Guild.explicit_content_filter.Rapptz2017-04-121-0/+8
|
* Update copyright year to 2017.Rapptz2017-01-201-1/+1
|
* Add support for relationships.Rapptz2017-01-201-0/+6
|
* Use CDN URL for default avatars.Rapptz2017-01-091-12/+6
|