From e068294cc8743fdcc921704338f6337388788342 Mon Sep 17 00:00:00 2001 From: Kreus Amredes <67752638+Kreusada@users.noreply.github.com> Date: Fri, 24 Dec 2021 23:54:37 +0000 Subject: [PATCH] Restrict `[p]cleanupset notify` to guild only (#5466) --- 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 9ff057cd6..7b6ebaba7 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.