Fix Reports in dm's not checking the selected guild for a configured channel (#6573)

This commit is contained in:
TrustyJAID 2025-06-11 17:16:22 -06:00 committed by GitHub
parent 6603cd1a86
commit c6ff2191f3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -307,7 +307,7 @@ class Reports(commands.Cog):
with contextlib.suppress(discord.Forbidden, discord.HTTPException): with contextlib.suppress(discord.Forbidden, discord.HTTPException):
if val is None: 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( await author.send(
_( _(
"This server has no reports channel set up. Please contact a server admin." "This server has no reports channel set up. Please contact a server admin."