aboutsummaryrefslogtreecommitdiff
path: root/discord/guild.py
Commit message (Collapse)AuthorAgeFilesLines
* [docs] stage_channels doc typo Nadir Chowdhury2021-04-211-1/+1
|
* Add VoiceChannel.video_quality_modez03h2021-04-171-0/+4
|
* Rewrite Asset designRapptz2021-04-161-148/+31
| | | | | | | | | | | | | | | | | | | | | | | 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.
* Fix guild.chunk() not working on evicted guildsSteve C2021-04-141-1/+2
| | | | If you're trying to chunk a guild that the bot is not in, it'll just hang on the chunk coro forever. It's weird, I know.
* Fix exception for invalid channel typesMaya2021-04-141-1/+1
|
* Add NSFW for GuildsRobin2021-04-141-1/+7
|
* [docs] Fix reference to `Guild.id`Kino2021-04-131-1/+1
|
* Use v8 overwrite type when creating a channelNadir Chowdhury2021-04-111-3/+3
|
* Fix stray AttributeError in Guild._from_data with member cacheRapptz2021-04-111-2/+1
|
* Permission related fixes for v8Rapptz2021-04-111-2/+2
|
* Add typings for invites, templates, and bans Nadir Chowdhury2021-04-101-4/+10
|
* Use f-strings in more places that were missed.Rapptz2021-04-081-4/+4
|
* Add `__all__` to remaining modulesNadir Chowdhury2021-04-071-0/+3
|
* Convert datetimes to aware datetimes with UTC.Rapptz2021-04-041-3/+6
| | | | | Naive datetimes will now be interpreted as local time throughout the library.
* Remove userbot functionalityRapptz2021-04-041-23/+0
| | | | | 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.
* Modernize code to use f-stringsRapptz2021-04-041-9/+10
| | | | | This also removes the encoding on the top, since Python 3 does it by default. It also changes some methods to use `yield from`.
* Implement StageChannel and related methodsNadir Chowdhury2021-04-031-0/+44
|
* [docs] Add rtc_region parameter for Guild.create_voice_channelNadir Chowdhury2021-04-021-0/+5
|
* Implement voice region changing for voice channelsTarek2021-04-011-0/+7
|
* [docs] Fix fetch_members/guilds documentationNadir Chowdhury2021-03-311-3/+1
|
* Fallback to empty string for unavailable guild __str__Rapptz2021-03-251-1/+1
|
* Add roles to guild.estimate_pruned_membersz03h2021-03-241-2/+10
|
* Disallow empty sequences in Guild.query_members user_id parameterRapptz2021-02-281-7/+10
|
* Fix docstring for Guild.create_roleArthaxeres2021-02-241-1/+1
|
* Add remaining template endpointsNadir Chowdhury2021-02-231-0/+53
|
* Deprecate non-bot methodsNadir Chowdhury2021-02-231-0/+3
|
* Fix typo in Guild.fetch_member docsSebastian Law2021-02-221-1/+1
|
* Document BanEntryMaya2021-02-211-13/+6
|
* Add versionchanged to guild.create_roleZomatree2021-01-261-0/+3
|
* Change copyright year to presentNihaal Sangha2021-01-151-1/+1
|
* Support setting the preferred locale via Guild.editRapptz2021-01-051-1/+4
| | | | Fix #6267
* Implement presences for `Guild.query_members`Nadir Chowdhury2020-12-311-3/+14
|
* Allow `Guild.create_role` to accept an int as the `colour` parameter.Alex Nørgaard2020-12-251-1/+3
|
* Document more guild featuresRapptz2020-12-221-0/+2
|
* Add support for editing and deleting webhook messages.Rapptz2020-12-091-2/+2
| | | | Fix #6058
* Update documentation for rules/updates channelsRocketRace2020-12-031-3/+3
|
* [chore] Remove redundant importsNadir Chowdhury2020-11-281-2/+1
| | | This also removes the historical patch for NullHandler implemented in bbf1c54, as it has been available since Python 3.1.
* Fix `UnboundLocalError` for editing `public_updates_channel`Nadir Chowdhury2020-11-281-3/+3
|
* Implement role tags.Rapptz2020-11-261-0/+24
| | | | | | | | | | | This comes with: * The RoleTags class * Role.is_premium_subscriber() * Role.is_bot_managed() * Role.is_integration() * Guild.self_role * Guild.premium_subscriber_role
* Fix error with templates not having access to member cache flags.Rapptz2020-11-211-2/+2
| | | | | | This also changes the attribute from having an underscore Fix #5986
* Raise ClientException when members intent is not enabled on guild.fetch_membersLukas2020-11-211-1/+8
|
* Fixed incorrectly named 'Intent' class in doc.Nekokatt2020-09-261-1/+1
| | | `Intent.members` -> `Intents.members`.
* Mention potential Guild.member_count accuracy issuesRapptz2020-09-231-1/+8
|
* Allow finer grained control over the member cache.Rapptz2020-09-231-2/+3
|
* Raise if member intent is not enabledRapptz2020-09-231-0/+9
|
* Don't cache members during guild start up if cache is disabled.Rapptz2020-09-231-1/+4
| | | | | | | 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.
* Add Guild.chunk and deprecated Client.request_offline_membersRapptz2020-09-231-5/+21
|
* Rewrite chunking to work with intents.Rapptz2020-09-231-11/+13
| | | | | | | | 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.
* Implement VoiceProtocol lower level hooks.Rapptz2020-09-231-1/+1
| | | | | This allows changing the connect flow and taking control of it without relying on internal events or tricks.
* Add COMMUNITY to Guild.featuresAlex Nørgaard2020-09-041-0/+1
|