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

This commit is contained in:
Kreus Amredes 2021-12-24 23:54:37 +00:00 committed by GitHub
parent 2c51182e8e
commit e068294cc8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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.