[3.4] Restrict [p]cleanupset notify to guild only (#5466) (#5480)

(cherry picked from commit e068294cc8)

Co-authored-by: Kreus Amredes <67752638+Kreusada@users.noreply.github.com>

Co-authored-by: Kreus Amredes <67752638+Kreusada@users.noreply.github.com>
This commit is contained in:
Red-GitHubBot
2021-12-25 00:56:46 +01:00
committed by GitHub
parent cb5eafb9e3
commit c7a4a0feaf

View File

@@ -732,6 +732,7 @@ class Cleanup(commands.Cog):
"""Manage the settings for the cleanup command."""
pass
@commands.guild_only()
@cleanupset.command(name="notify")
async def cleanupset_notify(self, ctx: commands.Context):
"""Toggle clean up notification settings.