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

NAFF 2.0.0 #713

Merged
merged 65 commits into from
Nov 10, 2022
Merged

NAFF 2.0.0 #713

merged 65 commits into from
Nov 10, 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

Changes

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 and others added 30 commits September 14, 2022 18:16
* feat 💥: delay non-raw listeners until client ready

* fix: dont delay error events
* fix: fix usage of hybrid cmds with no localized names (#639)

* fix: make naff always use the correct logger by converting const.logger into a function

Co-authored-by: Astrea <[email protected]>
feat: fire async start methods as soon as possible
* 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
Revert "fix💥: make naff always use the correct logger (#643)"

This reverts commit 2448b20.
* 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
* 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 <[email protected]>
If you think they shouldn't be removed, action them
* feat: initial support for app cmd perm updates

* feat: cache perm updates in application command obj

* fix: dont export permissions data

* feat: cache perms in guild object

* feat: add fetch_app_cmd_perms guild method

* feat: allow checking command perm state through context
* refactor: update create forum thread endpoint

* feat 💥: Create NewThreadCreate event

* feat: add forum list_posts

* feat: add forum fetch post

* feat: add forum get_tag

* feat: create_post now supports abstract tags

* feat: impliment non-async list posts

* refactor: rename list_posts -> fetch_posts

* feat 💥: create GuildForumPost object

* feat: add support for post pinning

* docs: update typehints

* docs: remove `forum post only` comments

* docs: type fix on edit method

* fix: tag emoji is now optional

* feat: support archived posts

* fix: use elif

* fix: handle dict passed in applied tags

* fix: correctly process the set tags

Co-authored-by: Daniel <[email protected]>
breaking in case someone was relying on these exceptions
* fix💥: make naff always use the correct logger

* fix: default logger missing parentheses

* feat: add access to the logger to more classes

* refactor: add direct access to the logger to more classes and rename `logger()` to `get_logger()`

* fix: wrong name
* fix: Account for function definition of command groups

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* fix: add missing events to dunder all

* refactor: sort event dudner all
* refactor 💥: Rename button event to prevent overlap

* fix: add ButtonPressed to event init

whoops
* fix: fix minor issues with component callbacks

* feat: support new select menus

* docs: update select docs
LordOfPolls and others added 26 commits October 24, 2022 08:42
feat: change default delay until ready behavior
I took a picture of a wheat field with a camera.
The picture came out grainy
* fix:  Keep SendableContext in sync with SendMixin

* fix:  Fix flake8 warning about missing @AbstractMethod
* feat: Add Python 3.11 support

* fix: Add _decompose for iteration

* fix: pre-commit on _decompose

* tests: Update GitHub Actions for Python 3.11

* ci: Only run integration tests once per python version

Co-authored-by: Katelyn Gigante <[email protected]>
* feat: support ephemeral delete

* fix: make context actually optional

* feat 💥: Allow editing messages using interaction context

* test: update test bot to new paradigm
* refactor 💥: make all edit methods kwarg

* refactor 💥: make send methods kwarged

* refactor 💥: kwargify remnant methods
* feat: Add jurigged hot reloading to debug extension

* fix: Add jurigged to requirements.txt

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* refactor: Move jurigged to be separate from debug

* docs: Add documentation about jurigged

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* refactor: Move get_all_commands to better location

* fix: Move get_all_commands to naff.ext.jurigged

* fix:  Add jurigged extra, and better error when loading extension without jurigged installed.

* Rename Jurigged guide to Live Patching

* fix: jurigged as optional requirement

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Katelyn Gigante <[email protected]>
…707)

fix:  Plugin-friendly method of implementing `delete_if_overridden`
* feat: declare other built-in-listeners as such

* fix: suppress intent warnings for built-in-listeners
* feat: implement null cache

* feat: update sanity checks

* feat: add NullCache to debug ext
* add `text_utils.mentions`

* fix circular import

* fix undetected case

* rename `does_mention` to `contains_mention`

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* add args to docstrings

* add constant `tag_as_mention`

- update `BaseUser.username` to `BaseUser.tag`

* only use `BaseChannel.mention`/`Role.mention` for mention-checks

* make `tag_as_mention` a keyword-argument

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Update naff/client/utils/text_utils.py

according to @LordOfPolls

Co-authored-by: LordOfPolls <[email protected]>

* Update naff/models/discord/message.py

according to @LordOfPolls

Co-authored-by: LordOfPolls <[email protected]>

* Update naff/client/utils/text_utils.py

according to @LordOfPolls

Co-authored-by: LordOfPolls <[email protected]>

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: LordOfPolls <[email protected]>
* tests: implement target tests

* feat: improved emoji matching
…nsion module that isn't actually an extension (#716)
* ci:  More resilience to the guild limit

* ci: Add wheel to the build environment to silence pep517 warning
@LordOfPolls LordOfPolls marked this pull request as ready for review November 10, 2022 17:19
@LordOfPolls LordOfPolls merged commit 03d01e8 into dev Nov 10, 2022
@LordOfPolls LordOfPolls deleted the 2.x branch November 10, 2022 17:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants