mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 11:18:54 -05:00
[Cleanup] Fix [p]cleanup self inside DMs (#6197)
This commit is contained in:
parent
9c85917dad
commit
8ee3ac9352
@ -148,7 +148,7 @@ class Cleanup(commands.Cog):
|
||||
"""
|
||||
Sends a notification to the channel that a certain number of messages have been deleted.
|
||||
"""
|
||||
if not hasattr(channel, "guild") or await self.config.guild(channel.guild).notify():
|
||||
if not channel.guild or await self.config.guild(channel.guild).notify():
|
||||
if subtract_invoking:
|
||||
num -= 1
|
||||
if num == 1:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user