Skip to content
Advertisement

Getting error – ‘int’ object has no attribute ‘time’

I’m trying to make a giveaway command for my bot but I get an error every time I try to run the command

'int' object has no attribute 'time'

My code for the giveaway command

JavaScript

Advertisement

Answer

You must rename your time : int parameter, so it does not interfere with the time module. Given the context, I would suggest something like timeUntil.

Complete code:

JavaScript
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement