#Cannot import name 'listen' from 'interactions'

1 messages · Page 1 of 1 (latest)

elder shoal
#

how did you install the lib?

languid wren
#

@elder shoal Sorry. Moved to v4. I'm even confused about what version I should be using (I assume 5 but I cant' see how to install it in that case). FWIW I have discord-py-interactions in my requirements.txt.

elder shoal
#

if you just started your bot development, I would advise v5

#

it's not yet been released to pip as it's brand new

languid wren
#

I rely on requirements.txt. How do I get it that way?

elder shoal
#

git+https://github.com/interactions-py/interactions.py.git@8879c856ba45c419b5ac274ea1023b583d1a86b5

#

^ latest commit, so all the bug fixes are present

languid wren
#

I need to use requirements.txt

#

Will this error go away in v5? I'm just following the 4.4.0 docs verbatum.

elder shoal
#

yes, put that line in your file

elder shoal
#

@listen is a v5 function

languid wren
#

Ah ok. It's in the 4.4. docs FWIW.