- _get_guild catches discord.HTTPException (NotFound/Forbidden/HTTPException) from fetch_guild and re-raises the lib's ValueError; the old 'if not resolved' branch was unreachable since fetch_guild never returns None (L10) - build_embed substitutes '(no message)' for empty details and truncates to 1024, so a logging call never 400s the embed send on an empty/over-long message (L11). Signed-off-by: disqualifier <dev@disqualifier.me>
16 lines
360 B
TOML
16 lines
360 B
TOML
[build-system]
|
|
requires = ["hatchling"]
|
|
build-backend = "hatchling.build"
|
|
|
|
[project]
|
|
name = "dpy_logger"
|
|
version = "0.1.2"
|
|
description = "Leveled Discord channel logger for discord.py — config-free, injectable, installable."
|
|
requires-python = ">=3.10"
|
|
dependencies = [
|
|
"discord.py>=2.0",
|
|
]
|
|
|
|
[tool.hatch.build.targets.wheel]
|
|
packages = ["src/dpy_logger"]
|