mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-05 17:02:32 -05:00
* Add cleanupset commands to cleanup docs
* fix spacing
* shown -> sent
* update command docstring
* Fix trailing whitespace and use same style for docs
(cherry picked from commit 63fd7cc95f)
Co-authored-by: Kreus Amredes <67752638+Kreusada@users.noreply.github.com>
Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com>
Co-authored-by: Kreus Amredes <67752638+Kreusada@users.noreply.github.com>
Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com>
This commit is contained in:
@@ -733,7 +733,11 @@ class Cleanup(commands.Cog):
|
||||
|
||||
@cleanupset.command(name="notify")
|
||||
async def cleanupset_notify(self, ctx: commands.Context):
|
||||
"""Toggle clean up notification settings."""
|
||||
"""Toggle clean up notification settings.
|
||||
|
||||
When enabled, a message will be sent per cleanup, showing how many messages were deleted.
|
||||
This message will be deleted after 5 seconds.
|
||||
"""
|
||||
toggle = await self.config.guild(ctx.guild).notify()
|
||||
if toggle:
|
||||
await self.config.guild(ctx.guild).notify.set(False)
|
||||
|
||||
Reference in New Issue
Block a user