Parcourir la source

author was made non-optional by accident.

tags/v1.7.1
Roxie Gibson il y a 6 ans
Parent
révision
4fb3574674
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. +1
    -1
      roxbot/cogs/admin.py

+ 1
- 1
roxbot/cogs/admin.py Voir le fichier

@@ -81,7 +81,7 @@ class Admin():
@commands.bot_has_permissions(manage_messages=True, read_message_history=True)
@commands.cooldown(1, 5)
@bot.command()
async def purge(self, ctx, limit=0, *, author: roxbot.converters.UserConverter):
async def purge(self, ctx, limit=0, *, author: roxbot.converters.UserConverter=None):
"""Purges messages from the text channel.
Limit = Limit of messages to be deleted
Author (optional) = If given, roxbot will selectively only delete this user's messages."""

Chargement…
Annuler
Enregistrer