devoxin / Lavalink.py

A wrapper for Lavalink in Python, which aims to be powerful and intuitive.
https://lavalink.readthedocs.io/
MIT License
223 stars 96 forks source link

Can't load #62

Closed iDutchy closed 5 years ago

iDutchy commented 5 years ago

Hi there,

When trying to load the cog it gives me this error:

- 'int' object has no attribute 'lavalink'

AndyTempel commented 5 years ago

How does your __init__ method looks like?

iDutchy commented 5 years ago

class Music: def __init__(self, bot): self.bot = bot

iDutchy commented 5 years ago

class Music: def init(self, bot): self.bot = bot

AndyTempel commented 5 years ago

And where do you define lavalink?

iDutchy commented 5 years ago

Looks like I don't have that... I used this music.py example 🤷🏻‍♂️

devoxin commented 5 years ago

You're using dev branch cog with Lavalink 2.1.10.

Downgrade your cog, or upgrade your Lavalink.py to V3.

iDutchy commented 5 years ago

Ah yes. That solved that issue. However I'm having another issue right now...

It does find music and puts it in the queue, but it doesn't play. When I use the nowplaying command it always stays at 00:00:00...

AndyTempel commented 5 years ago

Make sure you execute play method on TrackEndEvent event.

Zenrac commented 5 years ago

As the original issue has been solved, maybe you should join our support server for further issues.

AndyTempel commented 5 years ago

I'm going with what @Zenrac said and closing this issue.