You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 13, 2023. It is now read-only.
When a session is, "Gateway has invalidated session! Reconnecting..." bot.is_ready is not set to false and will spam you with all the join things
Expected Results
What should happen during a reconnect is is_ready is set back to false and then true once it is connected
Minimal Reproducible Code
importnaffbot=naff.Client(sync_interactions=True, debug_scope=701347683591389185)
@naff.slash_command(name="trip_reconnect")asyncdeftrip_reconnect(ctx):
awaitctx.send("Session invalidated")
awaitbot.ws.dispatch_opcode(None, naff.WebSocketOPCodes.INVALIDATE_SESSION)
@naff.listen(naff.events.GuildJoin)asyncdefjoin(event: naff.events.GuildJoin):
ifbot.is_ready:
print("This should not happen within the testing period")
bot.start("token")
Traceback
No response
Checklist
I have searched the open issues for duplicates.
I have shown the entire traceback, if possible.
I have removed my token from display, if visible.
Additional Information
I think that this is where is ready should be set back to false
NAFF Version
latest
Describe the Bug
When a session is, "Gateway has invalidated session! Reconnecting..."
bot.is_ready
is not set to false and will spam you with all the join thingsExpected Results
What should happen during a reconnect is is_ready is set back to false and then true once it is connected
Minimal Reproducible Code
Traceback
No response
Checklist
Additional Information
I think that this is where is ready should be set back to false
NAFF/naff/api/gateway/websocket.py
Lines 239 to 260 in 13aeb1a
The text was updated successfully, but these errors were encountered: