Skip to content
This repository has been archived by the owner on Mar 13, 2023. It is now read-only.

fix: unset ready on reconnect #595

Merged
merged 3 commits into from
Aug 14, 2022
Merged

fix: unset ready on reconnect #595

merged 3 commits into from
Aug 14, 2022

Conversation

LordOfPolls
Copy link
Member

What type of pull request is this?

  • Non-breaking code change
  • Breaking code change
  • Documentation change/addition
  • Tests change

Description

Resolves #591 by unsetting ready during gateway reconnects

image

Changes

  • Add new state method called clear_ready which clears the client ready state
  • Gateway now calls clear_ready during reconnect attempts

Checklist

  • I've formatted my code with Black
  • I've ensured my code works on Python 3.10.x
  • I've tested my code

@LordOfPolls LordOfPolls added the Bug::Library A bug in the library label Aug 10, 2022
@LordOfPolls LordOfPolls linked an issue Aug 10, 2022 that may be closed by this pull request
3 tasks
LordOfPolls and others added 2 commits August 10, 2022 19:34
do not view the horrors that lay within, simply know they exist, and know they protect you. A necessary evil to defend the weak and protect the holy. To smite the miscreants whom aim to damage your cache
@LordOfPolls LordOfPolls merged commit 38dfe69 into dev Aug 14, 2022
@LordOfPolls LordOfPolls deleted the ready-on-restart branch August 14, 2022 09:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug::Library A bug in the library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] bot.is_ready not reset during reconnect
2 participants