Raptor123471 / DingoLingo

A Discord music bot written in Python with support for Youtube, SoundCloud, Spotify, Bandcamp, Twitter, and custom files.
GNU General Public License v3.0
282 stars 165 forks source link

Traceback error #57

Closed dabmaster40 closed 2 years ago

dabmaster40 commented 2 years ago

I have a fork of this bot mixed with my own things in several servers. It keeps giving me this error and then won't connect to voice channel in half of the servers it is in.

Traceback (most recent call last): File "/home/container/.local/lib/python3.9/site-packages/discord/client.py", line 343, in _run_event await coro(*args, **kwargs) File "/home/container/main.py", line 63, in on_ready await register(guild) File "/home/container/main.py", line 110, in register await guild.me.edit(nick=sett.get('default_nickname')) File "/home/container/.local/lib/python3.9/site-packages/discord/member.py", line 637, in edit await http.change_my_nickname(guild_id, nick, reason=reason) File "/home/container/.local/lib/python3.9/site-packages/discord/http.py", line 248, in request raise Forbidden(r, data) discord.errors.Forbidden: 403 Forbidden (error code: 50013): Missing Permissions

Raptor123471 commented 2 years ago

The nickname set in line 63 of run.py is throwing an exception because of permissions causing the rest of the register method to stop early. This nickname set needs exception handling.

sam1e-dev commented 2 years ago

I am also experiencing this

dabmaster40 commented 2 years ago

has this been fixed yet?

Sarge1305 commented 2 years ago

I'm facing this issue as well. Is there any temporary fix that I can do to avoid this issue?

dabmaster40 commented 2 years ago

this is what i did for mine to solve it

try:
  await guild.me.edit(nick=sett.get('default_nickname'))
except:
  return
Raptor123471 commented 2 years ago

Fix is in master branch see #68