Zai
9a6b06864a
Fix duplicate logging module import in [discord/utils.py] ( #617 )
1 year ago
Ed Powers
cf97a1d1f8
Fix fallback build number retrieval again ( #628 )
1 year ago
ye4241
4076a3b1b8
Fix fallback build number retrieval ( #596 )
1 year ago
dolfies
5a86410ceb
Fix more circular imports
2 years ago
Rapptz
ecdbf0fe58
Add constant for the default file size limit
2 years ago
Rapptz
79925e9c3b
Fix FileHandler having ANSI escapes when used within PyCharm
2 years ago
Andrin S
f066597a02
Add support for voice messages
Co-authored-by: Danny <[email protected] >
2 years ago
Andrin S
0f8e682ec9
Escape # and - in markdown utilities
2 years ago
Ruairi
67b69e732c
Implement experiments ( #520 )
* start on experiments
Signed-off-by: Ruairi <[email protected] >
* Proper experiment types
* Small fixes
* add experiments to client
Signed-off-by: Ruairi <[email protected] >
* format using black
Signed-off-by: Ruairi <[email protected] >
* correct errors in filters
Signed-off-by: Ruairi <[email protected] >
* add suggested changes
Signed-off-by: Ruairi <[email protected] >
* oopsies
Signed-off-by: Ruairi <[email protected] >
* fix some errors hopefully
Signed-off-by: Ruairi <[email protected] >
* fix even more type errors
Signed-off-by: Ruairi <[email protected] >
* moved to utils
Signed-off-by: Ruairi <[email protected] >
* Fix overloads
* Update discord/experiment.py
Co-authored-by: dolfies <[email protected] >
* Update discord/experiment.py
Co-authored-by: dolfies <[email protected] >
* add suggested changes
Signed-off-by: Ruairi <[email protected] >
* fixinator
Signed-off-by: Ruairi <[email protected] >
* properly cast
Signed-off-by: Ruairi <[email protected] >
* Update discord/experiment.py
Co-authored-by: dolfies <[email protected] >
* Update discord/client.py
Co-authored-by: dolfies <[email protected] >
* Update discord/experiment.py
Co-authored-by: dolfies <[email protected] >
* Update discord/experiment.py
Co-authored-by: dolfies <[email protected] >
* Update discord/experiment.py
Co-authored-by: dolfies <[email protected] >
* Update discord/http.py
Co-authored-by: dolfies <[email protected] >
* Update discord/experiment.py
Co-authored-by: dolfies <[email protected] >
* Update discord/utils.py
Co-authored-by: dolfies <[email protected] >
* fix type error
Signed-off-by: Ruairi <[email protected] >
* rename murmurhash32
Signed-off-by: Ruairi <[email protected] >
* fix!: apply suggestions
Signed-off-by: Ruairi <[email protected] >
* fix quotes
Signed-off-by: Ruairi <[email protected] >
* big fixesd
* logic fixes and simplification
* add mmh3 to optional reqs
* reqs my beloved
* documentation
* Proper filters
* Export experiment classes
* Fix Metadata object parsing
* More low-level method warnings
* Fix and improve performance of ExperimentOverride
* more positional-only markers
* fix small isues
Signed-off-by: Ruairi <[email protected] >
* fix formatting
Signed-off-by: Ruairi <[email protected] >
* put mmh3 shit without type checker and shit idk
* Remove str(exp)
---------
Signed-off-by: Ruairi <[email protected] >
Co-authored-by: dolfies <[email protected] >
2 years ago
dolfies
c37574d9bb
Add missing CDN parameters and fix avatar decoration URL
2 years ago
dolfies
527329be61
Update context/super property management
2 years ago
Soheab_
dbd8c213cb
Add support for member flags
2 years ago
Rapptz
733c951163
Formally document utils.maybe_coroutine
2 years ago
Rapptz
12edcb8e21
Enable colour logging for docker even if tty is not set
2 years ago
Tom
bb931272fc
Add Pycharm support to coloured logging
3 years ago
Jakub Kuczys
b869401767
Type hint support for slices and __index__ in SequenceProxy
3 years ago
Jakub Kuczys
8cc0deab08
Add repr to the SequenceProxy
3 years ago
Josh
f1522af4ef
Add overloads to utils.sleep_until
3 years ago
Rapptz
1ea5a4e06b
Add utils.setup_logging to help set up logging outside of Client.run
3 years ago
Rapptz
9c7b867d36
Fix nested Annotated calls not resolving
3 years ago
Rapptz
44ea19c2a5
Fix time_snowflake not being documented
3 years ago
Rapptz
486ccd04df
Change snowflake_time and time_snowflake parameters to pos/kw-only
3 years ago
James Hilton-Balfe
7a216b2e7d
Fix overload order on as_chunks
3 years ago
Rapptz
088e763306
Change certain sequences to use a special proxy type instead of list
This is to speed up cases where someone is just querying the length
of the underlying sequence. If anything else is done to the sequence
then it is copied from the original iterator.
This change should be mostly transparent.
3 years ago
Rapptz
918151c5ad
Fix utils.copy_doc being partially unknown
3 years ago
James Hilton-Balfe
0cd06789e4
Prioritise async iteration before sync iteration in utils.find/get
3 years ago
Rapptz
d053ecf8b9
Refactor utils.oauth_url slightly
3 years ago
Miku Chan
aedbedaff8
Add state parameter to utils.oauth_url
Co-authored-by: Danny <[email protected] >
3 years ago
Josh
52a5f10307
Fix type annotations to adhere to latest pyright release
3 years ago
Rapptz
f7190c8020
Document and export MISSING sentinel
3 years ago
dolfies
ba6e15ed61
Implement protobuf settings ( #476 )
* Initial implementation
* Internal and documentation changes
* Proto editing and update events
* Edit overloads and bugfixes
* Fix missing defaults in two overloads
* More fixers
* Black pass
* docs! (almost)
* Fix incorrect settings accessing
* Support setting settings versions
* Fix docs
* Update timezone_offset documentation
2 years ago
dolfies
edf083bd1e
Implement relationship presence and gateway session management
2 years ago
dolfies
9a6c4e1e35
Implement (almost) the entirety of the applications, billing, and store API ( #449 )
* Initial implementation
* Expose various rich methods to fetch the new models
* Add localize parameters and remove useless payment_source parameters from front-facing fetch methods
* Implement fetching and (partially) redeeming gifts
* Slot remaining models
* Correctly document Gift.redeem() channel parameter
* Implement some stuffs, fix more stuffs, add creating/editing skus/store listings
* Various context properties fixes
* Fix various types, expose SubscriptionPlan
* (Partially) implement purchasing SKUs and gift flags
* Finish and clean-up store/applications API implementations
* Implement build uls, missing sub plan params, purchase sku ret
* Fix upload_files() warning
* Formatter pass
* Normalize include_x to with_x, add various small missing things
* Update sub on manual invoice payment instead of returning new object
* Black pass
* Implement missing integrations/applications API shit
* Implement Application.store_listing_sku_id
* Expose richer subscription metadata guild info
* Implement SKU.system_requirements localization and modification
* Black pass
* Implement premium usage
* Implement application whitelist
* Implement active developer program enrollment
* Readd new team members to cache
* Polishing
* Implement leaving active developer program
* Type everything
* Expose everything
* Implement relationship activity statistics, improve model
* Black pass
* Document everything
* Add crunchyroll connection type (#426 )
* Fix type-checking error in PrivateChannel ABC (#427 )
* Update required property fetching to new domain
* Pin black to v22.6
* Get pyright to shut up
* Black pass
* Get pyright to shut up
2 years ago
dolfies
fc561d271e
Update required property fetching to new domain
2 years ago
dolfies
8adb809d51
Rework nonce generation
3 years ago
dolfies
13d7bafd64
Docs are fun 😭
3 years ago
dolfies
9fe7cfb474
Docs are fun :(
3 years ago
dolfies
29c2036bc8
Rebase to latest upstream
3 years ago
dolfies
3395417844
Improve typing across the board, remove old browser references
3 years ago
dolfies
957a484306
Run black
3 years ago
Rapptz
aa18e573c3
Mark MISSING as hashable to allow it to be used in dataclasses in 3.11
3 years ago
Stocker
5aa696ccfa
Fix typing issues and improve typing completeness across the library
Co-authored-by: Danny <[email protected] >
Co-authored-by: Josh <[email protected] >
3 years ago
Rapptz
0ef369c0fa
[commands] Automatically unload top level app commands in extensions
3 years ago
Neon Jonn
adb69e7157
Fix some spelling mistakes
3 years ago
Rapptz
56e0c1b3d7
Fix typo in applications.commands scope
3 years ago
Rapptz
8213603822
Change default oauth_url scopes to include application.commands
3 years ago
dolfies
cf6c9f06dc
Fix inbuilt property fetching
3 years ago
Rapptz
4c8b1f9abd
Remove unused imports
3 years ago
Rapptz
26fc694189
Fix Optional normalisation not working properly
3 years ago
Rapptz
3d0c506124
Fix test_resolve_invite due to changed type
3 years ago