0
{SOLVED} discord.py random function
I have this code: https://www.sololearn.com/post/1618690/?ref=app But when I input this command in Discord, in the Python console I get this: AttributeError: 'Command' object has no attribute 'randint' How can I fix it?
2 odpowiedzi
+ 1
By using "def random(...)" you overwrite the name "random" which then no longer refers to the random module.
0
Thanks, I will try import random as r