diff --git a/src/dpy_logger/dpy_logger.py b/src/dpy_logger/dpy_logger.py index 14a5f2c..be32230 100644 --- a/src/dpy_logger/dpy_logger.py +++ b/src/dpy_logger/dpy_logger.py @@ -128,7 +128,7 @@ class DPYLogger: if not guild: raise ValueError("[dpy_logger] cannot resolve channel without a guild") - if not override and guild == self.guild: + if not override and getattr(guild, "id", guild) == getattr(self.guild, "id", self.guild): if isinstance(self.channel, discord.TextChannel): return self.channel if isinstance(self.channel, int):