Games-Gamers / FamBot

FAM
3 stars 0 forks source link

'Member' object has no attribute 'avatar_url' #47

Closed WikiWikiWasp closed 2 years ago

WikiWikiWasp commented 2 years ago

Description

It seems upgrading to discord.py v2 might have changed up how to access the avatar_url var for the Member object. Will need to look through the docs/examples/troubleshooting to determine what needs to be changed to fix this attribute reference.

Examples

Bot posts both the response from the command and an error message:

image

Error message in logging channel:

image

Suggestions

Potential starting point: https://discordpy.readthedocs.io/en/stable/migrating.html#asset-redesign-and-changes

Acceptance Criteria


Notes

n/a

WikiWikiWasp commented 2 years ago

replacing the single avatar_url reference with display_avatar from v2 seems to have done the trick

(ignore the real Fambot response, TemplateBot is the local test bot)

image
WikiWikiWasp commented 2 years ago

Bug fix merged into master with #49 , closing issue