From c6ff2191f39799d679fd95f5d92ea3d18eb2c2fe Mon Sep 17 00:00:00 2001 From: TrustyJAID Date: Wed, 11 Jun 2025 17:16:22 -0600 Subject: [PATCH] Fix Reports in dm's not checking the selected guild for a configured channel (#6573) --- redbot/cogs/reports/reports.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/redbot/cogs/reports/reports.py b/redbot/cogs/reports/reports.py index b4205f7ba..ec14f1da7 100644 --- a/redbot/cogs/reports/reports.py +++ b/redbot/cogs/reports/reports.py @@ -307,7 +307,7 @@ class Reports(commands.Cog): with contextlib.suppress(discord.Forbidden, discord.HTTPException): if val is None: - if await self.config.guild(ctx.guild).output_channel() is None: + if await self.config.guild(guild).output_channel() is None: await author.send( _( "This server has no reports channel set up. Please contact a server admin."