How to Solve NameError: name 'BucketType' is not defined -- discord
Solution: Import the 'BucketType' module
To Solve the error, add the following line to the top of your code.
from discord.ext.commands.cooldowns import BucketType
For more information:
Python discord BucketType