mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-05 08:52:31 -05:00
[Cleanup] Fix [p]cleanup self inside DMs (#6197)
This commit is contained in:
@@ -148,7 +148,7 @@ class Cleanup(commands.Cog):
|
|||||||
"""
|
"""
|
||||||
Sends a notification to the channel that a certain number of messages have been deleted.
|
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:
|
if subtract_invoking:
|
||||||
num -= 1
|
num -= 1
|
||||||
if num == 1:
|
if num == 1:
|
||||||
|
|||||||
Reference in New Issue
Block a user