How to Solve NameError: name 'CheckFailure' is not defined -- discord

Solution: Import the 'CheckFailure' module

To Solve the error, add the following line to the top of your code.

from discord import CheckFailure

 

For more information:
Python discord CheckFailure