From c7a4a0feaf32a2a981384059068b523e4f724c37 Mon Sep 17 00:00:00 2001 From: Red-GitHubBot <88117545+Red-GitHubBot@users.noreply.github.com> Date: Sat, 25 Dec 2021 00:56:46 +0100 Subject: [PATCH] [3.4] Restrict `[p]cleanupset notify` to guild only (#5466) (#5480) (cherry picked from commit e068294cc8743fdcc921704338f6337388788342) Co-authored-by: Kreus Amredes <67752638+Kreusada@users.noreply.github.com> Co-authored-by: Kreus Amredes <67752638+Kreusada@users.noreply.github.com> --- redbot/cogs/cleanup/cleanup.py | 1 + 1 file changed, 1 insertion(+) diff --git a/redbot/cogs/cleanup/cleanup.py b/redbot/cogs/cleanup/cleanup.py index 6310fcb3e..3cc9b98b9 100644 --- a/redbot/cogs/cleanup/cleanup.py +++ b/redbot/cogs/cleanup/cleanup.py @@ -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.