Just-Some-Bots / MusicBot

:musical_note: The original MusicBot for Discord (formerly SexualRhinoceros/MusicBot)
https://just-some-bots.github.io/MusicBot/
MIT License
3.11k stars 2.35k forks source link

Error for avatar_url #2294

Closed haxurus closed 2 years ago

haxurus commented 2 years ago

What went wrong?

When I add a song on the queue, the bot gives me this error:

[ERROR:bot] Exception in on_message
Traceback (most recent call last):
  File "/home/debian/DiscordBots/LocandadiArroway-MusicBot-1-stanza1/musicbot/bot.py", line 4064, in on_message
    content = self._gen_embed()
  File "/home/debian/DiscordBots/LocandadiArroway-MusicBot-1-stanza1/musicbot/bot.py", line 1361, in _gen_embed
    icon_url=self.user.avatar_url,
AttributeError: 'ClientUser' object has no attribute 'avatar_url'

I downloaded all the repo some minutes ago for check if the error was fixed in the latest versions, but it didn't.

How do we reproduce this?

Just add a song on the queue with embed enables.

Which version of the bot are you using?

release-151221

Which operating system are you using?

Ubuntu 18.04 or higher

Just checking...

Jcodeerd commented 2 years ago

Try the steps in #2290

haxurus commented 2 years ago

Tried, but it didn't fix the problem

AleanaA commented 2 years ago

Please provide the output of python -m discord --version

haxurus commented 2 years ago
haxurus commented 2 years ago

I'm having this error too when I try to skip a song:

Traceback (most recent call last):
  File "/home/debian/.local/lib/python3.9/site-packages/discord/player.py", line 616, in _call_after
    self.after(error)
  File "/home/debian/DiscordBots/LocandadiArroway-MusicBot-2-stanza2/musicbot/player.py", line 247, in _playback_finished
    if e.winerror == 32:  # File is in use
AttributeError: 'PermissionError' object has no attribute 'winerror'
BRAVO68WEB commented 2 years ago

Are you sure that their that you have given your bot appropriate perms on Discord?

haxurus commented 2 years ago

Yes. It has full permissions everywhere

BRAVO68WEB commented 2 years ago

Ok

Hmm this should not be happening

BRAVO68WEB commented 2 years ago

Ok I also this issue. Lets see

overviewed commented 2 years ago

you need to use avatar.url because this is most likely using discord.py master branch

Jcodeerd commented 2 years ago

you need to use avatar.url because this is most likely using discord.py master branch The bot uses pycord

Jcodeerd commented 2 years ago

I cannot reproduce this, could you remove your token in option.ini and zip the entire Musicbot folder and post it here? Also, please run python3.9 -m pip list and post that here too so I know what modules are installed.

amit177 commented 2 years ago

Closed due to no reply