[commands] Add back CommandOnCooldown.type

This commit is contained in:
Rapptz
2021-07-02 05:39:54 -04:00
parent 982140b5f7
commit a3d7e06f25
3 changed files with 11 additions and 4 deletions

View File

@@ -731,7 +731,7 @@ class Command(_BaseCommand):
if bucket is not None:
retry_after = bucket.update_rate_limit(current)
if retry_after:
raise CommandOnCooldown(bucket, retry_after)
raise CommandOnCooldown(bucket, retry_after, self._buckets.type)
async def prepare(self, ctx):
ctx.command = self