mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-05 18:58:53 -05:00
Fix Reports in dm's not checking the selected guild for a configured channel (#6573)
This commit is contained in:
parent
6603cd1a86
commit
c6ff2191f3
@ -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."
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user