Commit Graph
160 Commits
Author SHA1 Message Date
Alex Nørgaard 456a5dfa59 Update create_dm documentation to say it's a coroutine 2021-03-24 08:19:05 -04:00
Nadir Chowdhury 63ec23bac2 Code optimisations and refactoring via Sourcery 2021-02-24 21:26:51 -05:00
Nadir Chowdhury 427e387a2f Deprecate non-bot methods 2021-02-23 03:36:37 -05:00
sudosnok 27c7fb6aed Add User.mutual_guilds 2021-02-20 19:29:19 -05:00
Lucas d7b41e0a21 Fix User public flags not updating 2021-01-17 00:09:15 -05:00
Nihaal Sangha 69bdc3a184 Change copyright year to present 2021-01-15 05:28:11 -05:00
Michael 93fa46713a Fix and add documentation 2020-09-23 03:19:35 -04:00
Skezza c3bca7ec73 Documentation formatting 2020-06-30 23:32:00 -04:00
Sebastian Law b4b953bfc6 Fix various inconsistencies within the documentation (#5067) 2020-06-28 03:45:58 -04:00
JohnyTheCarrot 010ce0519a Fix incorrect class reference in documentation 2020-06-04 23:38:57 -04:00
JohnyTheCarrot ab5f995d78 Add support for public user flags 2020-05-29 22:40:14 -04:00
kittenswolf 6decfd1d1a Fix colour properties being displayed as methods in the documentation. 2020-05-03 15:40:13 -04:00
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
2020-01-22 23:55:05 -05:00
Rapptz 6071607176 Bump copyright year to 2020
Closes #2510
2020-01-19 20:03:00 -05:00
Rapptz c92ca4ee07 Add Profile.system and Profile.team_user to query newer flags 2019-12-21 07:46:15 -05:00
Rapptz 2de90fbecf Add User.system and MessageFlags.urgent 2019-12-21 07:39:33 -05:00
Merlintor b458cc7b7d Return 'username' instead of 'name' 2019-12-05 17:59:42 +01:00
Devon R bf9b9c5879 Adjust BASE urls to have no trailing slash (consistency) 2019-11-15 04:25:38 -05:00
Devon R f5ebf42e1f Return invites as https, various URL normalization 2019-11-15 04:25:38 -05:00
Willy e713b86154 Added Optional to ClientUser.premium_type type hint 2019-11-15 04:23:15 -05:00
Tyler c7a1f5e6e9 Disambiguate and normalize documentation for non-bot only methods 2019-08-11 18:50:31 -04:00
Reece Dunham de1a96b9f7 Fix: another capitalization issue in docstring 2019-07-18 18:06:42 -04:00
Steve C ae4989e474 Fix return type docstring for BaseUser.default_avatar 2019-07-18 18:06:26 -04:00
Rapptz 5c1b239b47 Different method of upgrading user instances 2019-07-10 01:23:38 -04:00
Rapptz e75c248a9a Properly populate __slots__ for derived user types.
Fixes #2265
2019-07-09 22:51:49 -04:00
NCPlayz 3c9bcc2851 Improve documentation 2019-06-07 19:27:46 -04:00
Rapptz fcf02414fe Fix stray colon in Asset related docstrings 2019-06-04 19:06:31 -04:00
Rapptz 9674055c2a Add support for animated guild icons. 2019-06-04 19:04:44 -04:00
Harmon 2fd589874f Fix wording in documentation for ClientUser.locale 2019-05-21 21:15:26 -04:00
Vexs bf5b267c55 Correct the documentation for methods and properties that return Assets 2019-05-14 19:13:48 -04:00
Rapptz f9e95a35f9 Fix USER_UPDATE changes not triggering for member instances.
Also add a ClientUser.locale attribute.
2019-04-28 06:36:12 -04:00
Rapptz 6f26a4aad8 Improve performance of value -> enum by about 5x. 2019-04-15 21:30:47 -04:00
Rapptz cc68cfb896 Add notes to all relationship endpoints that they don't work on bots. 2019-04-14 22:18:14 -04:00
Rapptz 7d385b23a1 Fix copy paste error in ClientUser.edit_settings 2019-04-06 20:19:16 -04:00
NCPlayz be227ebcf0 Redesign asset retrieval in the library.
Most assets now return a new class named `Asset`. This allows for the
assets to be consistently saved via a `save` method instead of special
casing for `Attachment`.

`AppInfo` is no longer a namedtuple it is a fully documented dataclass,
as well as having the state attached to it.

Fixes #1997
2019-04-06 19:12:50 -04:00
CapnSandCapnS 4ec7213506 Added functionality to edit user settings
Changing docs to fit other parts of the lib

Co-Authored-By: CapnS <38225872+CapnS@users.noreply.github.com>

Removing Type Checking

Made all of Rapptz's suggested changes

Removing imports that are no longer needed
2019-03-28 17:33:39 -04:00
NCPlayz fb02191b80 Organise documentation 2019-03-19 08:24:42 -04:00
Liam H 79f172cf80 Add PremiumType enumeration and ClientUser.premium_type 2019-02-12 19:01:10 -05:00
CapnS 2c7c541f4e Added User.mutual_friends() 2018-12-14 19:05:33 -05:00
bmintz c184b0a53d add support for Bug Hunter and Early Supporter flags 2018-11-24 22:34:22 -05:00
Hornwitser efb4ff850e [lint] Fix import order
Reorder imports to be consistenly grouped by standard library, third
party library, and local modules in that order thoughout the library.
2018-11-24 22:17:58 -05:00
Rapptz 860d6a9ace Revert "Rework documentation to not duplicate inherited members."
This reverts commit 96981210b3.
2018-10-11 03:42:01 -04:00
Rapptz 96981210b3 Rework documentation to not duplicate inherited members.
This will probably be reverted in 1 week.
2018-10-03 05:45:30 -04:00
Rapptz 095f0ec2fc Optimise some member and user related routines.
* Skip user update if possible
* Drop copy.copy in favour of manual copy

Credit to Hornwitser for these findings.
2018-09-24 22:50:05 -04:00
MusicOnline 2c1ba84346 Add colour attribute for BaseUser 2018-09-16 22:46:05 +08:00
Rapptz 5c24e69cf2 Fix up the Sphinx strings causing warnings. 2018-09-15 09:54:00 -04:00
BeatButton a4d1599ce9 Change docstrings to raw-strings 2018-09-14 22:55:27 -04:00
Bryan Forbes d7218259aa Call Http.start_group() in ClientUser.create_group() 2018-08-28 23:50:55 -04:00
mental ee57e89488 Added hypesquad house functionality 2018-08-22 22:01:19 -04:00
Hornwitser c557ee33ca [lint] Fix types used for __slots__ and __all__
Stay consistent with the rest of the library and use lists for module
__all__ values and tuples for class __slots__ attributes.
2018-08-22 21:43:55 -04:00