mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 11:18:54 -05:00
Rename [p]cleanup spam to [p]cleanup duplicates (#4814)
* rename `spam` to `duplicates` and aliases it to `spam` * style
This commit is contained in:
parent
bf30f2078c
commit
3122eb0447
@ -604,11 +604,13 @@ class Cleanup(commands.Cog):
|
|||||||
else:
|
else:
|
||||||
await slow_deletion(to_delete)
|
await slow_deletion(to_delete)
|
||||||
|
|
||||||
@cleanup.command(name="spam")
|
@cleanup.command(name="duplicates", aliases=["spam"])
|
||||||
@commands.guild_only()
|
@commands.guild_only()
|
||||||
@checks.mod_or_permissions(manage_messages=True)
|
@checks.mod_or_permissions(manage_messages=True)
|
||||||
@commands.bot_has_permissions(manage_messages=True)
|
@commands.bot_has_permissions(manage_messages=True)
|
||||||
async def cleanup_spam(self, ctx: commands.Context, number: positive_int = PositiveInt(50)):
|
async def cleanup_duplicates(
|
||||||
|
self, ctx: commands.Context, number: positive_int = PositiveInt(50)
|
||||||
|
):
|
||||||
"""Deletes duplicate messages in the channel from the last X messages and keeps only one copy.
|
"""Deletes duplicate messages in the channel from the last X messages and keeps only one copy.
|
||||||
|
|
||||||
Defaults to 50.
|
Defaults to 50.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user