[commands] Add back CommandOnCooldown.type

This commit is contained in:
Rapptz committed 2021-07-02 05:39:54 -04:00
1 parent 982140b5f7
commit a3d7e06f25
3 files changed
+11 -4

No files matched your search

+1 -1
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