dolfies
158cbd4cad
Generalize dict/metadata documentation types
2 years ago
dolfies
a91802e51b
Move guild creation to connection state to prevent circular imports
2 years ago
dolfies
29df9a4505
Implement student hubs and directory channels ( #561 )
2 years ago
dolfies
23b8a3d49e
Fix docs linking and new pyright version type errors
2 years ago
dolfies
26280fd24d
Implement pomelo migrating
2 years ago
Rapptz
e6e380f904
Initial support for pomelo migration
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
c9416e33a6
Rename preferred_voice_regions
2 years ago
dolfies
61e340981f
Implement guest invites
2 years ago
dolfies
7167014a6e
Set X-Discord-Locale header based on user settings
2 years ago
dolfies
5832e8bfdf
Implement unverified game reporting
2 years ago
dolfies
a468054cc3
Implement tutorial management
2 years ago
dolfies
2ccf7108de
Parse and expose friend suggestion count
2 years ago
dolfies
5b6e6d13b7
Implement read states ( #498 )
* Base read states
* Base read states
* Models and helpers
* Increase mention counter
* Rest of the ack events
* Finishing touches and doccs
* Fix RawUserFeatureAckEvent docstring
* Add top-level mention count property
* Add ack shortfall note
* Expose and document ReadStateType
* Add Client.read_states getter
* Update scheduled event read state badge count
* Update README
2 years ago
dolfies
d08e22e719
Implement oauth2 authorization
2 years ago
dolfies
e0c6612922
Implement friend suggestions
2 years ago
dolfies
dd733e931b
Rework profiles and notes, add note_update event
2 years ago
dolfies
82a4d05520
Redocument GatewayNotFound error
2 years ago
dolfies
3e3cf05423
Don't use abc.PrivateChannel in type hints
2 years ago
dolfies
0153ee7f23
Update versionadded for call voice state changing
2 years ago
dolfies
11832ad7c8
Update protobuf settings in change_presence
2 years ago
dolfies
c77ffa9c79
Cache and update RequiredActionType
2 years ago
dolfies
30e8aa37e7
Remove friend invite creation functionality
This feature is actively being worked on and is not stable
2 years ago
dolfies
07203e576f
Add separate data class for Client.fetch_guilds(), add application_command_counts_update event, fix various guild issues
2 years ago
dolfies
8a1a3ffcce
Fix issues with previous upstream commits
2 years ago
Steve C
14875c45e3
Fix permissions-based docstrings to be more consistent
3 years ago
Rapptz
1ea5a4e06b
Add utils.setup_logging to help set up logging outside of Client.run
3 years ago
Rapptz
e4e455945c
Add root_logger setting to Client.run
This allows people one way to use the colour logger globally
3 years ago
Rapptz
7a199fe567
Change a lot of logging INFO calls to be less verbose
Some of the logs were only useful for debug scenarios, so they have
been downgraded to DEBUG. Others were in INFO but supposed to be in
WARNING so those were upgraded.
3 years ago
Puncher
94f93a8b68
Raise TypeError when token is not a string
Co-authored-by: Danny <[email protected] >
3 years ago
Rapptz
674845479d
Add support for resume_gateway_url
3 years ago
z03h
39a3fc341f
Add Object.type to Objects where a type can be determined
3 years ago
Bryan Forbes
b9795979ac
Bump Pyright to 1.1.265, fix type errors, and remove unnecessary ignores
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
e08b9ab68e
Allow configuring the maximum ratelimit timeout before erroring
This is useful for cases where a rate limit is known to be
extraordinarily high, but you still want to handle the error.
This is common with routes such as emoji creation.
3 years ago
Rapptz
495854bcb3
Change stderr prints to use the logging module instead
3 years ago
Rapptz
5c61d2d738
Add default logging configuration when using Client.run
While it is possible to do this type of your set up yourself, it's
better for beginners to have logging automatically set up for them.
This has come up often in the help channel over the years. This also
provides an escape hatch to disable it.
3 years ago
James Hilton-Balfe
5858c44f63
[docs] Add async with documentation for Client
Co-authored-by: Rapptz <[email protected] >
3 years ago
Rapptz
d13b47759b
Raise an exception when wait_until_ready is called without a loop
3 years ago
Rapptz
2ce53928d7
Fix broken HTTPClient.recreate code to actually clear session
3 years ago
Rapptz
73b967019c
Fix documentation build for Client.get_partial_messageable
3 years ago
Rapptz
5ff42bb600
Add guild property to DMChannel, GroupChannel, and PartialMessageable
This improves generic duck typing programming by allowing narrowing
the types by just checking for a None guild attribute.
3 years ago
Rapptz
18ae88b791
Improve generic duck type programming with PartialMessageable
This adds jump_url, permissions_for, and created_at. Luckily, most
cases of this type being constructed already have the guild_id at
creation time.
3 years ago
Rapptz
49cbf46c44
Only call async setup if the loop sentinel hasn't been changed
3 years ago
dolfies
90f9a605de
Rename appinfo.py -> application.py
2 years ago
dolfies
03868c4879
Implement recent messages
2 years ago
dolfies
f099d4a648
Implement affinities
2 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