The `_ready_event` is now set in `GatewayClient` immediately after receiving the `READY` payload, before dispatching `on_ready` to user code. This ensures `Client.wait_until_ready()` and `Client.is_ready()` accurately reflect the client's state before dependent user logic executes. This change allows simplifying `Client.sync_commands` by removing redundant `wait_until_ready()` calls and `application_id` checks, as the application ID is guaranteed to be available upon READY. Additionally, `User` model initialization is improved to correctly handle nested user data found in certain API payloads (e.g., within `member` objects in events like `PresenceUpdate`). Add `SOUNDBOARD` and `VIDEO_QUALITY_720_60FPS` to `GuildFeature` enum.
59 lines
1.6 KiB
TOML
59 lines
1.6 KiB
TOML
[project]
|
|
name = "disagreement"
|
|
version = "0.8.1"
|
|
description = "A Python library for the Discord API."
|
|
readme = "README.md"
|
|
requires-python = ">=3.10"
|
|
license = {text = "BSD 3-Clause"}
|
|
authors = [
|
|
{name = "Slipstream", email = "me@slipstreamm.dev"}
|
|
]
|
|
keywords = ["discord", "api", "bot", "async", "aiohttp"]
|
|
classifiers = [
|
|
"Development Status :: 4 - Beta",
|
|
"Intended Audience :: Developers",
|
|
"License :: OSI Approved :: BSD License",
|
|
"Operating System :: OS Independent",
|
|
"Programming Language :: Python :: 3",
|
|
"Programming Language :: Python :: 3.10",
|
|
"Programming Language :: Python :: 3.11",
|
|
"Programming Language :: Python :: 3.12",
|
|
"Programming Language :: Python :: 3.13",
|
|
"Topic :: Software Development :: Libraries",
|
|
"Topic :: Software Development :: Libraries :: Python Modules",
|
|
"Topic :: Internet",
|
|
]
|
|
|
|
dependencies = [
|
|
"aiohttp>=3.9.0,<4.0.0",
|
|
"PyNaCl>=1.5.0,<2.0.0",
|
|
]
|
|
|
|
[project.optional-dependencies]
|
|
test = [
|
|
"pytest>=8.0.0",
|
|
"pytest-asyncio>=1.0.0",
|
|
"hypothesis>=6.132.0",
|
|
]
|
|
dev = [
|
|
"python-dotenv>=1.0.0",
|
|
]
|
|
|
|
[project.urls]
|
|
Homepage = "https://github.com/Slipstreamm/disagreement"
|
|
Issues = "https://github.com/Slipstreamm/disagreement/issues"
|
|
Documentation = "https://disagreement.xyz/"
|
|
|
|
[build-system]
|
|
requires = ["setuptools>=61.0"]
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
# Optional: for linting/formatting, e.g., Ruff
|
|
# [tool.ruff]
|
|
# line-length = 88
|
|
# select = ["E", "W", "F", "I", "UP", "C4", "B"] # Example rule set
|
|
# ignore = []
|
|
|
|
# [tool.ruff.format]
|
|
# quote-style = "double"
|