Ask coding questions

← Back to all posts
Why isn't import discord working?
LunarStellar (1)

I was trying to work on my discord bot, everything was fine up until now. It says import discord is not a function

Comments
hotnewtop
PotatoKat (0)

It does this for me too, i'm under the impression it has something to do with project requirements but I don't know what those are or how to access them.

SixBeeps (5043)

Did it get removed from your project's requirements?

LunarStellar (1)

@SixBeeps No, My requirement.txt has discord.py in the editor

SixBeeps (5043)

@LunarStellar requirements.txt is deprecated, so check the package manager instead

LunarStellar (1)

@SixBeeps I've located the problem, Thank you.