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

feat 💥: delay non-raw listeners until client ready #635

Merged
merged 2 commits into from
Sep 9, 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

Delays the execution of listeners until the client is in a ready state. By default, all non-raw listeners are delayed.

Changes

  • Add delay_until_ready attribute to listeners
  • On execution, check if client is ready, if not, wait

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 New Feature::Library A new feature for the library label Sep 9, 2022
@LordOfPolls LordOfPolls merged commit 1fead85 into 2.x Sep 9, 2022
@LordOfPolls LordOfPolls deleted the delay-dispatch branch September 9, 2022 11:36
LordOfPolls added a commit that referenced this pull request Sep 14, 2022
* feat 💥: delay non-raw listeners until client ready

* fix: dont delay error events
LordOfPolls added a commit that referenced this pull request Sep 14, 2022
* feat 💥: delay non-raw listeners until client ready (#635)

* feat 💥: delay non-raw listeners until client ready

* fix: dont delay error events

* refactor 💥: Update and organise event bases (#636)

* feat: add embed.add_fields
LordOfPolls added a commit that referenced this pull request Sep 17, 2022
* feat 💥: delay non-raw listeners until client ready (#635)

* feat 💥: delay non-raw listeners until client ready

* fix: dont delay error events

* refactor💥: Improved ux for select menus

* docs: update select reference remnant in guide
LordOfPolls added a commit that referenced this pull request Sep 20, 2022
* feat 💥: delay non-raw listeners until client ready (#635)

* feat 💥: delay non-raw listeners until client ready

* fix: dont delay error events

* refactor 💥: Update and organise event bases (#636)

* feat: allow listeners to be deleted if they are marked as overwritable

* feat!: convert error and completion handlers to events, rename the completion events and add/rename modal events

* refactor: rename `delete_if_overwritten` to `delete_if_overridden`

Co-authored-by: LordOfPolls <dev@lordofpolls.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
New Feature::Library A new feature for the library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants