fix: channel object without a guild derives the guild instead of silently dropping (dpylogger-1)
DPYLogger(guild=None, channel=<TextChannel>) passed initialize() (both int-guards skipped) but then every send failed at _get_guild(None) and got swallowed — logs never reached discord, no loud setup signal. now derive self.guild from the channel it already carries, or raise loud at setup for a truly guild-less channel (mirroring the int-channel guard). verified vs discord.py 2.7.1. bump v0.1.2 -> v0.1.3 Signed-off-by: disqualifier <dev@disqualifier.me>
This commit is contained in:
+1
-1
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
||||
|
||||
[project]
|
||||
name = "dpy_logger"
|
||||
version = "0.1.2"
|
||||
version = "0.1.3"
|
||||
description = "Leveled Discord channel logger for discord.py — config-free, injectable, installable."
|
||||
requires-python = ">=3.10"
|
||||
dependencies = [
|
||||
|
||||
Reference in New Issue
Block a user