Skip to content

Commit c6ff219

Browse files
authored
Fix Reports in dm's not checking the selected guild for a configured channel (Cog-Creators#6573)
1 parent 6603cd1 commit c6ff219

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

redbot/cogs/reports/reports.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ async def report(self, ctx: commands.Context, *, _report: str = ""):
307307

308308
with contextlib.suppress(discord.Forbidden, discord.HTTPException):
309309
if val is None:
310-
if await self.config.guild(ctx.guild).output_channel() is None:
310+
if await self.config.guild(guild).output_channel() is None:
311311
await author.send(
312312
_(
313313
"This server has no reports channel set up. Please contact a server admin."

0 commit comments

Comments
 (0)