233 Commits

Author SHA1 Message Date
iDutchy
a453266cd4 conflict fixes 2021-04-07 18:27:34 -05:00
Nadir Chowdhury
89456022cf
Add __all__ to remaining modules 2021-04-07 02:30:32 -04:00
Rapptz
ff7094ce96 Convert datetimes to aware datetimes with UTC.
Naive datetimes will now be interpreted as local time throughout
the library.
2021-04-04 23:54:08 -04:00
Rapptz
54288879e2 Remove userbot functionality
This has a lot of legacy and cruft so there may be some stuff I've
missed but this first pass is enough to get a clear separation.
2021-04-04 10:15:30 -04:00
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`.
2021-04-04 07:03:53 -04:00
Nadir Chowdhury
1b2688518e
Implement StageChannel and related methods 2021-04-03 22:43:41 -04:00
Nadir Chowdhury
e8a9726ad2
[docs] Add rtc_region parameter for Guild.create_voice_channel 2021-04-02 20:10:31 -04:00
Tarek
6524869ddd
Implement voice region changing for voice channels 2021-04-01 03:49:45 -04:00
Nadir Chowdhury
6887d3946a
[docs] Fix fetch_members/guilds documentation 2021-03-31 21:27:40 -04:00
Rapptz
8657edfc99 Fallback to empty string for unavailable guild __str__ 2021-03-25 09:11:00 -04:00
z03h
fbb7ac6be1
Add roles to guild.estimate_pruned_members 2021-03-24 08:17:34 -04:00
Rapptz
4c4d75dc29 Disallow empty sequences in Guild.query_members user_id parameter 2021-02-28 23:56:14 -05:00
Arthaxeres
53bf1919c7
Fix docstring for Guild.create_role 2021-02-24 02:06:02 -05:00
Nadir Chowdhury
fb773dc1dd
Add remaining template endpoints 2021-02-23 03:58:03 -05:00
Nadir Chowdhury
427e387a2f
Deprecate non-bot methods 2021-02-23 03:36:37 -05:00
Sebastian Law
cc55a28be5
Fix typo in Guild.fetch_member docs 2021-02-22 08:51:34 -05:00
Maya
66b834b332
Document BanEntry 2021-02-21 00:12:30 -05:00
Zomatree
0d1e15bbc2
Add versionchanged to guild.create_role 2021-01-26 23:35:52 -05:00
Nihaal Sangha
69bdc3a184
Change copyright year to present 2021-01-15 05:28:11 -05:00
iDutchy
86fd3fb738 conflict fixes 2021-01-14 18:03:09 -06:00
Rapptz
3a75816ba1 Support setting the preferred locale via Guild.edit
Fix #6267
2021-01-05 22:43:22 -05:00
Nadir Chowdhury
59c11e71a2
Implement presences for Guild.query_members 2020-12-31 13:50:22 -05:00
Alex Nørgaard
624a9c8687
Allow Guild.create_role to accept an int as the colour parameter. 2020-12-25 02:22:59 -05:00
Rapptz
eb11079569 Document more guild features 2020-12-22 07:18:40 -05:00
Rapptz
44dc7a8e02 Add support for editing and deleting webhook messages.
Fix #6058
2020-12-09 20:15:35 -05:00
iDutchy
0354036451 fix conflicts 2020-12-04 19:05:58 -06:00
RocketRace
a39c957ba5
Update documentation for rules/updates channels 2020-12-03 18:20:27 -05:00
Nadir Chowdhury
6b803acde4
[chore] Remove redundant imports
This also removes the historical patch for NullHandler implemented in bbf1c54, as it has been available since Python 3.1.
2020-11-28 03:16:49 -05:00
Nadir Chowdhury
0c69c99785
Fix UnboundLocalError for editing public_updates_channel 2020-11-28 03:16:28 -05:00
Rapptz
e65dab3b23 Implement role tags.
This comes with:

* The RoleTags class
* Role.is_premium_subscriber()
* Role.is_bot_managed()
* Role.is_integration()
* Guild.self_role
* Guild.premium_subscriber_role
2020-11-26 01:57:24 -05:00
iDutchy
6e024871ec fix merge conflict 2020-11-24 17:19:31 -06:00
Rapptz
431ee8794b Fix error with templates not having access to member cache flags.
This also changes the attribute from having an underscore

Fix #5986
2020-11-21 22:42:59 -05:00
Lukas
873ed87caa Raise ClientException when members intent is not enabled on guild.fetch_members 2020-11-21 21:30:45 -05:00
iDutchy
c6b417bc7b version bump 2020-10-21 17:54:07 -05:00
iDutchy
3521ae985a added versionadded 2020-10-21 17:44:46 -05:00
iDutchy
09168d880f int() support 2020-10-17 19:14:51 -05:00
iDutchy
4010f09052 Remove int() support 2020-10-17 18:45:59 -05:00
iDutchy
d75cd66b90 oh ffs 2020-10-17 18:42:19 -05:00
iDutchy
64be57b192 fixes 2020-09-28 00:42:27 +00:00
Nekokatt
3084deee18
Fixed incorrectly named 'Intent' class in doc.
`Intent.members` -> `Intents.members`.
2020-09-26 06:34:01 -04:00
Rapptz
9dd4dc78c3 Mention potential Guild.member_count accuracy issues 2020-09-23 03:21:22 -04:00
Rapptz
23ae084b8c Allow finer grained control over the member cache. 2020-09-23 03:21:20 -04:00
Rapptz
e6edc44f3d Raise if member intent is not enabled 2020-09-23 03:21:19 -04:00
Rapptz
ad917ca02d Don't cache members during guild start up if cache is disabled.
This is mainly a half-implemented commit. There are a few more places
where cache consistency is necessary. In the future there will
probably be a member cache policy enum that will be used and cache
consistency will be tackled in part of that larger refactoring.
2020-09-23 03:21:19 -04:00
Rapptz
cb8cb557f5 Add Guild.chunk and deprecated Client.request_offline_members 2020-09-23 03:21:19 -04:00
Rapptz
930761e058 Rewrite chunking to work with intents.
This slows down chunking significantly for bots in a large number of
guilds since it goes down from 75 guilds/request to 1 guild/request.
However the logic was rewritten to fire the chunking request
immediately after receiving the GUILD_CREATE rather than waiting for
all the guilds in the ready stream before doing it.
2020-09-23 03:21:16 -04:00
Rapptz
0b93fa3a82 Implement VoiceProtocol lower level hooks.
This allows changing the connect flow and taking control of it without
relying on internal events or tricks.
2020-09-23 03:20:35 -04:00
iDutchy
571ddb5a3e merge conflict fix 2020-09-15 00:36:19 +00:00
Rapptz
ab049e3eb0 Allow finer grained control over the member cache. 2020-09-14 03:20:36 -04:00
Rapptz
6f22ba8ad0 Raise if member intent is not enabled 2020-09-14 03:20:17 -04:00