shayypy / guilded.py

Asynchronous Guilded API wrapper for Python
https://guildedpy.rtfd.io
Other
135 stars 25 forks source link

BotTeamMembershipCreated websocket event causes the bot to crash on server join #46

Closed Reapimus closed 2 years ago

Reapimus commented 2 years ago

Describe the bug When the bot tries to handle the BotTeamMembershipCreated WebSocket event, it causes a crash to occur.

To Reproduce Have the bot join a server while it is running.

Expected behavior The event should be handled appropriately and the bot should not crash.

Actual behavior The bot crashes with the error "UnboundLocalError: local variable 'server' referenced before assignment"

Environment

shayypy commented 2 years ago

This payload is different from the others that Guilded sends and guilded.py wasn't expecting the change, this will be fixed soon 👍