Rename [p]cleanup spam to [p]cleanup duplicates (#4814)

* rename `spam` to `duplicates` and aliases it to `spam`

* style
This commit is contained in:
MAX 2021-02-14 21:41:04 +01:00 committed by GitHub
parent bf30f2078c
commit 3122eb0447
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.