aboutsummaryrefslogtreecommitdiff
path: root/discord/template.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix user cache acting incorrectly with evictionsRapptz2021-07-291-1/+1
| | | | | | | | | | | | | | The first issue involved copied users which would lead to user updates causing faster evictions of the cache than was expected. The second issue involved users that weren't bound to an internal lifetime eviction policy. These users would not get evicted. For example, a user without mutual guilds or being part of the internal cache in general (messages, DMs) would never end up being evicted for some strange reason. To handle this case, store_user would get a counterpart named create_user which would create a user without potentially storing them in the cache. That way only users with a bound lifetime within the library would be stored.
* Mock PartialTemplateState._get_guild as pass-throughRapptz2021-06-291-1/+4
|
* Rework Template.edit to use MISSING sentinelRapptz2021-06-291-14/+13
|
* Add Template.urlSebastian Law2021-05-121-0/+8
|
* Add Template.is_dirtyNadir Chowdhury2021-04-211-1/+19
|
* Add missing future annotations importRapptz2021-04-101-0/+2
|
* Add typings for invites, templates, and bans Nadir Chowdhury2021-04-101-8/+25
|
* Use f-strings in more places that were missed.Rapptz2021-04-081-3/+8
|
* Convert datetimes to aware datetimes with UTC.Rapptz2021-04-041-2/+3
| | | | | Naive datetimes will now be interpreted as local time throughout the library.
* Remove userbot functionalityRapptz2021-04-041-5/+1
| | | | | 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-3/+1
| | | | | This also removes the encoding on the top, since Python 3 does it by default. It also changes some methods to use `yield from`.
* remove trailing whitespaceNadir Chowdhury2021-03-131-9/+9
|
* Code optimisations and refactoring via SourceryNadir Chowdhury2021-02-241-5/+3
|
* Add remaining template endpointsNadir Chowdhury2021-02-231-7/+87
|
* Change copyright year to presentNihaal Sangha2021-01-151-1/+1
|
* Fix error with templates not having access to member cache flags.Rapptz2020-11-211-5/+9
| | | | | | This also changes the attribute from having an underscore Fix #5986
* Add missing comma in template.pyapple502j2020-08-051-1/+1
|
* Fix NameError and AttributeError in Template and IntegrationsXua2020-08-051-1/+1
|
* Fix typo when creating a guild via templateRiley S2020-07-311-1/+1
|
* [docs] fix reference to `Guild` and document `utils.resolve_template`NCPlayz2020-07-081-2/+2
|
* Add a licence and encoding declaration to missing filesJames2020-07-081-0/+26
|
* Documentation formattingSkezza2020-06-301-1/+1
|
* Add support for Discord templatesNadir Chowdhury2020-06-281-0/+140