Skip to content
Sign upLog in
← Back to Community

Why isn't import discord working?

Profile icon
LunarStellar

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

Voters
Profile icon
SEGCommunity
Profile icon
PaulusDong
Profile icon
KhrestosLepents
Profile icon
EricZhu12
Profile icon
LunarStellar
Comments
hotnewtop
Profile icon
SEGCommunity

can any one help me fix this problem

Profile icon
PotatoKat

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.

Profile icon
SixBeeps

Did it get removed from your project's requirements?

Profile icon
LunarStellar

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

Profile icon
SixBeeps

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

Profile icon
LunarStellar

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

Profile icon
LunarStellar

i meant module,not function.

Profile icon
LunarStellar

@LunarStellar
for python