Ask coding questions

← Back to all posts
Why isn't import discord working?
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
KhrestosLepents
EricZhu12
LunarStellar
Comments
hotnewtop
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.

SixBeeps

Did it get removed from your project's requirements?

LunarStellar

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

SixBeeps

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

LunarStellar

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

LunarStellar

i meant module,not function.

LunarStellar

@LunarStellar for python