Skip to content

Commit

Permalink
Add app_permissions to ModalInteraction
Browse files Browse the repository at this point in the history
* Don't error on out-of-spec http status codes. (hikari-py#1121)

* Fix unicode decode error caused by `latin-1` encoding when sending the banner (hikari-py#1120)

* Fix unicode decode error caused by `latin-1` encoding when sending the banner

* Rename changelog fragment

* Bump pyright from 1.1.234 to 1.1.235 (hikari-py#1124)

Bumps [pyright](https://github.com/RobertCraigie/pyright-python) from 1.1.234 to 1.1.235.
- [Release notes](https://github.com/RobertCraigie/pyright-python/releases)
- [Commits](RobertCraigie/pyright-python@v1.1.234...v1.1.235)

---
updated-dependencies:
- dependency-name: pyright
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Don't close low-level stdout stream when printing banner (hikari-py#1125)

* Improve pyright support (hikari-py#1108)

* Improve pyright support

Ignored all pyright errors that go against the design patterns of hikari.

* Include fragment

* Re-enable actual issues

* Include examples

* Speed hikari up by almost an entire microsecond

* reportUnnecessaryTypeIgnoreComment

* Make event manager Waiter private

* Further improve support recommended by dav

* Remove TypeError references where not raised

* Remove unused import

* Remove sussy TypeError reference

* Apply recommended changes

* Implement pagination for fetch_bans method (hikari-py#1119)

* Add option to disable automatic member chunking (hikari-py#1084)

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

* Bump actions/upload-artifact from 2 to 3 (hikari-py#1130)

Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 2 to 3.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](actions/upload-artifact@v2...v3)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump pyright from 1.1.235 to 1.1.236 (hikari-py#1129)

Bumps [pyright](https://github.com/RobertCraigie/pyright-python) from 1.1.235 to 1.1.236.
- [Release notes](https://github.com/RobertCraigie/pyright-python/releases)
- [Commits](RobertCraigie/pyright-python@v1.1.235...v1.1.236)

---
updated-dependencies:
- dependency-name: pyright
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump actions/download-artifact from 2 to 3 (hikari-py#1131)

Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 2 to 3.
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](actions/download-artifact@v2...v3)

---
updated-dependencies:
- dependency-name: actions/download-artifact
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump pyright from 1.1.236 to 1.1.237 (hikari-py#1135)

Bumps [pyright](https://github.com/RobertCraigie/pyright-python) from 1.1.236 to 1.1.237.
- [Release notes](https://github.com/RobertCraigie/pyright-python/releases)
- [Commits](RobertCraigie/pyright-python@v1.1.236...v1.1.237)

---
updated-dependencies:
- dependency-name: pyright
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump flake8-html from 0.4.1 to 0.4.2 (hikari-py#1136)

* Bump flake8-html from 0.4.1 to 0.4.2

Bumps [flake8-html](https://github.com/lordmauve/flake8-html) from 0.4.1 to 0.4.2.
- [Release notes](https://github.com/lordmauve/flake8-html/releases)
- [Changelog](https://github.com/lordmauve/flake8-html/blob/master/HISTORY.rst)
- [Commits](lordmauve/flake8-html@v0.4.1...v0.4.2)

---
updated-dependencies:
- dependency-name: flake8-html
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* Update flake8-requirements.txt

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: davfsa <[email protected]>

* Fix docs examples for hikari.Permissions (hikari-py#1137)

* Fix examples and explanation for hikari.Permissions

* update previous commit

* fix typos

* fix formatting error

* Bump pyright from 1.1.237 to 1.1.239 (hikari-py#1140)

Bumps [pyright](https://github.com/RobertCraigie/pyright-python) from 1.1.237 to 1.1.239.
- [Release notes](https://github.com/RobertCraigie/pyright-python/releases)
- [Commits](RobertCraigie/pyright-python@v1.1.237...v1.1.239)

---
updated-dependencies:
- dependency-name: pyright
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump pytest from 7.1.1 to 7.1.2 (hikari-py#1142)

Bumps [pytest](https://github.com/pytest-dev/pytest) from 7.1.1 to 7.1.2.
- [Release notes](https://github.com/pytest-dev/pytest/releases)
- [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst)
- [Commits](pytest-dev/pytest@7.1.1...7.1.2)

---
updated-dependencies:
- dependency-name: pytest
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump github/codeql-action from 1 to 2 (hikari-py#1143)

Bumps [github/codeql-action](https://github.com/github/codeql-action) from 1 to 2.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](github/codeql-action@v1...v2)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Simplify logic for snowflake min and max (hikari-py#1128)

* fix: locale polish (hikari-py#1144)

* fix locale polish

* add changelog

* Bump pyright from 1.1.239 to 1.1.241 (hikari-py#1146)

Bumps [pyright](https://github.com/RobertCraigie/pyright-python) from 1.1.239 to 1.1.241.
- [Release notes](https://github.com/RobertCraigie/pyright-python/releases)
- [Commits](RobertCraigie/pyright-python@v1.1.239...v1.1.241)

---
updated-dependencies:
- dependency-name: pyright
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump mypy from 0.942 to 0.950 (hikari-py#1147)

Bumps [mypy](https://github.com/python/mypy) from 0.942 to 0.950.
- [Release notes](https://github.com/python/mypy/releases)
- [Commits](python/mypy@v0.942...v0.950)

---
updated-dependencies:
- dependency-name: mypy
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump pyright from 1.1.241 to 1.1.243 (hikari-py#1151)

Bumps [pyright](https://github.com/RobertCraigie/pyright-python) from 1.1.241 to 1.1.243.
- [Release notes](https://github.com/RobertCraigie/pyright-python/releases)
- [Commits](RobertCraigie/pyright-python@v1.1.241...v1.1.243)

---
updated-dependencies:
- dependency-name: pyright
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump flake8-print from 4.0.0 to 5.0.0 (hikari-py#1150)

Bump flake8-print from 4.0.0 to 5.0.0

Bumps [flake8-print](https://github.com/jbkahn/flake8-print) from 4.0.0 to 5.0.0.
- [Release notes](https://github.com/jbkahn/flake8-print/releases)
- [Commits](https://github.com/jbkahn/flake8-print/commits)

---
updated-dependencies:
- dependency-name: flake8-print
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump pyright from 1.1.243 to 1.1.244 (hikari-py#1153)

Bumps [pyright](https://github.com/RobertCraigie/pyright-python) from 1.1.243 to 1.1.244.
- [Release notes](https://github.com/RobertCraigie/pyright-python/releases)
- [Commits](RobertCraigie/pyright-python@v1.1.243...v1.1.244)

---
updated-dependencies:
- dependency-name: pyright
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Removed AutocompleteInteraction.resolved (hikari-py#1152)

* Bump pyright from 1.1.244 to 1.1.245 (hikari-py#1154)

Bumps [pyright](https://github.com/RobertCraigie/pyright-python) from 1.1.244 to 1.1.245.
- [Release notes](https://github.com/RobertCraigie/pyright-python/releases)
- [Commits](RobertCraigie/pyright-python@v1.1.244...v1.1.245)

---
updated-dependencies:
- dependency-name: pyright
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump pyright from 1.1.245 to 1.1.246 (hikari-py#1156)

Bumps [pyright](https://github.com/RobertCraigie/pyright-python) from 1.1.245 to 1.1.246.
- [Release notes](https://github.com/RobertCraigie/pyright-python/releases)
- [Commits](RobertCraigie/pyright-python@v1.1.245...v1.1.246)

---
updated-dependencies:
- dependency-name: pyright
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump flake8-comprehensions from 3.8.0 to 3.9.0 (hikari-py#1157)

Bumps [flake8-comprehensions](https://github.com/adamchainz/flake8-comprehensions) from 3.8.0 to 3.9.0.
- [Release notes](https://github.com/adamchainz/flake8-comprehensions/releases)
- [Changelog](https://github.com/adamchainz/flake8-comprehensions/blob/main/HISTORY.rst)
- [Commits](adamchainz/flake8-comprehensions@3.8.0...3.9.0)

---
updated-dependencies:
- dependency-name: flake8-comprehensions
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump pytest-randomly from 3.11.0 to 3.12.0 (hikari-py#1158)

Bumps [pytest-randomly](https://github.com/pytest-dev/pytest-randomly) from 3.11.0 to 3.12.0.
- [Release notes](https://github.com/pytest-dev/pytest-randomly/releases)
- [Changelog](https://github.com/pytest-dev/pytest-randomly/blob/main/HISTORY.rst)
- [Commits](pytest-dev/pytest-randomly@3.11.0...3.12.0)

---
updated-dependencies:
- dependency-name: pytest-randomly
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump coverage[toml] from 6.3.2 to 6.3.3 (hikari-py#1159)

Bumps [coverage[toml]](https://github.com/nedbat/coveragepy) from 6.3.2 to 6.3.3.
- [Release notes](https://github.com/nedbat/coveragepy/releases)
- [Changelog](https://github.com/nedbat/coveragepy/blob/master/CHANGES.rst)
- [Commits](nedbat/coveragepy@6.3.2...6.3.3)

---
updated-dependencies:
- dependency-name: coverage[toml]
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump pyright from 1.1.246 to 1.1.247 (hikari-py#1161)

Bumps [pyright](https://github.com/RobertCraigie/pyright-python) from 1.1.246 to 1.1.247.
- [Release notes](https://github.com/RobertCraigie/pyright-python/releases)
- [Commits](RobertCraigie/pyright-python@v1.1.246...v1.1.247)

---
updated-dependencies:
- dependency-name: pyright
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump flake8-black from 0.3.2 to 0.3.3 (hikari-py#1160)

Bumps [flake8-black](https://github.com/peterjc/flake8-black) from 0.3.2 to 0.3.3.
- [Release notes](https://github.com/peterjc/flake8-black/releases)
- [Commits](peterjc/flake8-black@v0.3.2...v0.3.3)

---
updated-dependencies:
- dependency-name: flake8-black
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump flake8-comprehensions from 3.9.0 to 3.10.0 (hikari-py#1163)

* Bump flake8-comprehensions from 3.9.0 to 3.10.0

Bumps [flake8-comprehensions](https://github.com/adamchainz/flake8-comprehensions) from 3.9.0 to 3.10.0.
- [Release notes](https://github.com/adamchainz/flake8-comprehensions/releases)
- [Changelog](https://github.com/adamchainz/flake8-comprehensions/blob/main/HISTORY.rst)
- [Commits](adamchainz/flake8-comprehensions@3.9.0...3.10.0)

---
updated-dependencies:
- dependency-name: flake8-comprehensions
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Make sure build methods are typed consistently (hikari-py#1164)

* Make sure build methods are typed as returning MutableMapping
* Swap JSONObject and JSONArray over to Sequence and Mapping

* Bump pyright from 1.1.247 to 1.1.248 (hikari-py#1167)

Bumps [pyright](https://github.com/RobertCraigie/pyright-python) from 1.1.247 to 1.1.248.
- [Release notes](https://github.com/RobertCraigie/pyright-python/releases)
- [Commits](RobertCraigie/pyright-python@v1.1.247...v1.1.248)

---
updated-dependencies:
- dependency-name: pyright
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump coverage[toml] from 6.3.3 to 6.4 (hikari-py#1168)

Bumps [coverage[toml]](https://github.com/nedbat/coveragepy) from 6.3.3 to 6.4.
- [Release notes](https://github.com/nedbat/coveragepy/releases)
- [Changelog](https://github.com/nedbat/coveragepy/blob/master/CHANGES.rst)
- [Commits](nedbat/coveragepy@6.3.3...6.4)

---
updated-dependencies:
- dependency-name: coverage[toml]
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Add data classes to `hikari.api.config.__all__` (hikari-py#1169)

* Bump pyright from 1.1.248 to 1.1.249 (hikari-py#1171)

Bumps [pyright](https://github.com/RobertCraigie/pyright-python) from 1.1.248 to 1.1.249.
- [Release notes](https://github.com/RobertCraigie/pyright-python/releases)
- [Commits](RobertCraigie/pyright-python@v1.1.248...v1.1.249)

---
updated-dependencies:
- dependency-name: pyright
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump mypy from 0.950 to 0.960 (hikari-py#1170)

Bumps [mypy](https://github.com/python/mypy) from 0.950 to 0.960.
- [Release notes](https://github.com/python/mypy/releases)
- [Commits](python/mypy@v0.950...v0.960)

---
updated-dependencies:
- dependency-name: mypy
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump pyright from 1.1.249 to 1.1.250 (hikari-py#1175)

Bumps [pyright](https://github.com/RobertCraigie/pyright-python) from 1.1.249 to 1.1.250.
- [Release notes](https://github.com/RobertCraigie/pyright-python/releases)
- [Commits](RobertCraigie/pyright-python@v1.1.249...v1.1.250)

---
updated-dependencies:
- dependency-name: pyright
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump pyright from 1.1.250 to 1.1.251 (hikari-py#1176)

Bumps [pyright](https://github.com/RobertCraigie/pyright-python) from 1.1.250 to 1.1.251.
- [Release notes](https://github.com/RobertCraigie/pyright-python/releases)
- [Commits](RobertCraigie/pyright-python@v1.1.250...v1.1.251)

---
updated-dependencies:
- dependency-name: pyright
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump coverage[toml] from 6.4 to 6.4.1 (hikari-py#1177)

Bumps [coverage[toml]](https://github.com/nedbat/coveragepy) from 6.4 to 6.4.1.
- [Release notes](https://github.com/nedbat/coveragepy/releases)
- [Changelog](https://github.com/nedbat/coveragepy/blob/master/CHANGES.rst)
- [Commits](nedbat/coveragepy@6.4...6.4.1)

---
updated-dependencies:
- dependency-name: coverage[toml]
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Merge mention object into message object (hikari-py#1149)

* Add hikari-crescent to command handlers in README (hikari-py#1180)

* add crescent to README

* add back blank line

* towncrier

* reformat

* Delete fragment file

Just a readme change, no need for a changelog fragment

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

* Bump pyright from 1.1.251 to 1.1.252 (hikari-py#1181)

Bumps [pyright](https://github.com/RobertCraigie/pyright-python) from 1.1.251 to 1.1.252.
- [Release notes](https://github.com/RobertCraigie/pyright-python/releases)
- [Commits](RobertCraigie/pyright-python@v1.1.251...v1.1.252)

---
updated-dependencies:
- dependency-name: pyright
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump mypy from 0.960 to 0.961 (hikari-py#1182)

Bumps [mypy](https://github.com/python/mypy) from 0.960 to 0.961.
- [Release notes](https://github.com/python/mypy/releases)
- [Commits](python/mypy@v0.960...v0.961)

---
updated-dependencies:
- dependency-name: mypy
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump pyright from 1.1.252 to 1.1.253 (hikari-py#1183)

Bumps [pyright](https://github.com/RobertCraigie/pyright-python) from 1.1.252 to 1.1.253.
- [Release notes](https://github.com/RobertCraigie/pyright-python/releases)
- [Commits](RobertCraigie/pyright-python@v1.1.252...v1.1.253)

---
updated-dependencies:
- dependency-name: pyright
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump actions/setup-python from 3 to 4 (hikari-py#1184)

Bumps [actions/setup-python](https://github.com/actions/setup-python) from 3 to 4.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](actions/setup-python@v3...v4)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump pyright from 1.1.253 to 1.1.254 (hikari-py#1188)

Bumps [pyright](https://github.com/RobertCraigie/pyright-python) from 1.1.253 to 1.1.254.
- [Release notes](https://github.com/RobertCraigie/pyright-python/releases)
- [Commits](RobertCraigie/pyright-python@v1.1.253...v1.1.254)

---
updated-dependencies:
- dependency-name: pyright
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump pyright from 1.1.254 to 1.1.255 (hikari-py#1194)

Bumps [pyright](https://github.com/RobertCraigie/pyright-python) from 1.1.254 to 1.1.255.
- [Release notes](https://github.com/RobertCraigie/pyright-python/releases)
- [Commits](RobertCraigie/pyright-python@v1.1.254...v1.1.255)

---
updated-dependencies:
- dependency-name: pyright
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Application permissions v2 (hikari-py#1148)

* Remove dollar sign from identify payload (hikari-py#1190)

* Keep message reference when updating cache messages (hikari-py#1192)

-  Deserialize `referenced_message` as the partial message it is

* Prevent clogging up actions by a single PR (hikari-py#1193)

* Prepare for release of 2.0.0.dev109 (hikari-py#1196)

Prepare for release of version 2.0.0.dev109

Co-authored-by: hikari-bot <90276125+hikari-bot[bot]@users.noreply.github.com>

* Bump to development version (2.0.0.dev110)

* Bump slotscheck from 0.14.0 to 0.14.1 (hikari-py#1197)

Bumps [slotscheck](https://github.com/ariebovenberg/slotscheck) from 0.14.0 to 0.14.1.
- [Release notes](https://github.com/ariebovenberg/slotscheck/releases)
- [Changelog](https://github.com/ariebovenberg/slotscheck/blob/main/CHANGELOG.rst)
- [Commits](ariebovenberg/slotscheck@v0.14.0...v0.14.1)

---
updated-dependencies:
- dependency-name: slotscheck
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump pyright from 1.1.255 to 1.1.256 (hikari-py#1199)

Bumps [pyright](https://github.com/RobertCraigie/pyright-python) from 1.1.255 to 1.1.256.
- [Release notes](https://github.com/RobertCraigie/pyright-python/releases)
- [Commits](RobertCraigie/pyright-python@v1.1.255...v1.1.256)

---
updated-dependencies:
- dependency-name: pyright
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump black from 22.3.0 to 22.6.0 (hikari-py#1198)

Bumps [black](https://github.com/psf/black) from 22.3.0 to 22.6.0.
- [Release notes](https://github.com/psf/black/releases)
- [Changelog](https://github.com/psf/black/blob/main/CHANGES.md)
- [Commits](psf/black@22.3.0...22.6.0)

---
updated-dependencies:
- dependency-name: black
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Update safety requirement from ~=1.10.3 to ~=2.0.0 (hikari-py#1200)

Updates the requirements on [safety](https://github.com/pyupio/safety) to permit the latest version.
- [Release notes](https://github.com/pyupio/safety/releases)
- [Changelog](https://github.com/pyupio/safety/blob/develop/CHANGELOG.md)
- [Commits](pyupio/safety@1.10.3...2.0.0)

---
updated-dependencies:
- dependency-name: safety
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Improve ci-done workflow (hikari-py#1202)

Signed-off-by: davfsa <[email protected]>

* Add the `app_permissions` field to command and component interactions (hikari-py#1201)

* Use right roles in `objects.inv` file (hikari-py#1173)

* Implement text in voice (hikari-py#1179)

* Bump pyright from 1.1.256 to 1.1.257 (hikari-py#1203)

Bumps [pyright](https://github.com/RobertCraigie/pyright-python) from 1.1.256 to 1.1.257.
- [Release notes](https://github.com/RobertCraigie/pyright-python/releases)
- [Commits](RobertCraigie/pyright-python@v1.1.256...v1.1.257)

---
updated-dependencies:
- dependency-name: pyright
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Add app_permissions to ModalInteraction

Co-authored-by: Lucina <[email protected]>
Co-authored-by: davfsa <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: sadru <[email protected]>
Co-authored-by: Jonxslays <[email protected]>
Co-authored-by: CircuitSacul <[email protected]>
Co-authored-by: S. Rahim <[email protected]>
Co-authored-by: Leo Developer <[email protected]>
Co-authored-by: Lunarmagpie <[email protected]>
Co-authored-by: hikari-bot[bot] <90276125+hikari-bot[bot]@users.noreply.github.com>
Co-authored-by: PerchunPak <[email protected]>
  • Loading branch information
12 people authored Jul 6, 2022
1 parent 2fe7006 commit 29d390a
Show file tree
Hide file tree
Showing 85 changed files with 1,789 additions and 1,155 deletions.
40 changes: 20 additions & 20 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ on:
push:
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
test:
strategy:
Expand All @@ -20,7 +24,7 @@ jobs:
uses: actions/checkout@v3

- name: Setup python
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

Expand All @@ -43,7 +47,7 @@ jobs:
mv .coverage .coverage.${{ matrix.os }}.${{ matrix.python-version }}
- name: Upload coverage
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: coverage
path: .coverage.${{ matrix.os }}.${{ matrix.python-version }}
Expand All @@ -60,12 +64,12 @@ jobs:
uses: actions/checkout@v3

- name: Setup python
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: 3.8

- name: Download coverage
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
name: coverage

Expand All @@ -90,7 +94,7 @@ jobs:
uses: actions/checkout@v3

- name: Setup python
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: 3.8

Expand All @@ -117,7 +121,7 @@ jobs:
uses: actions/checkout@v3

- name: Setup python
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: 3.8

Expand All @@ -134,7 +138,7 @@ jobs:
uses: actions/checkout@v3

- name: Setup python
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: 3.8

Expand All @@ -148,7 +152,7 @@ jobs:
- name: Upload artifacts
if: github.event_name != 'release'
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: pages
path: public
Expand All @@ -159,21 +163,17 @@ jobs:
# other jobs are subject to change
ci-done:
needs: [upload-coverage, linting, twemoji, pages]
if: always()
if: always() && !cancelled()

runs-on: ubuntu-latest

steps:
- name: Mark status based on past job status
- name: Set status based on required jobs
env:
# All new need jobs need to be added here with the prefix "RESULT_"
RESULT_UPLOAD_COVERAGE: ${{ needs.upload-coverage.result }}
RESULT_LINTING: ${{ needs.linting.result }}
RESULT_TWEMOJI: ${{ needs.twemoji.result }}
RESULT_PAGES: ${{ needs.pages.result }}
RESULTS: ${{ join(needs.*.result, ' ') }}
run: |
if [ "$(env | grep 'RESULT_')" = "$(env | grep "RESULT_" | grep '=success')" ]; then
exit 0
else
exit 1
fi
for result in $RESULTS; do
if [ "$result" != "success" ]; then
exit 1
fi
done
8 changes: 6 additions & 2 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
schedule:
- cron: "0 0 * * *" # Every day at 00:00

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
analyze:
name: Analyze
Expand All @@ -18,9 +22,9 @@ jobs:
uses: actions/checkout@v3

- name: Initialize CodeQL
uses: github/codeql-action/init@v1
uses: github/codeql-action/init@v2
with:
languages: python

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
uses: github/codeql-action/analyze@v2
6 changes: 5 additions & 1 deletion .github/workflows/fragments-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
branches:
- master

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
check-fragment-added:
if: github.event.pull_request.user.type != 'Bot' && !contains(github.event.pull_request.labels.*.name, 'skip-fragment-check')
Expand All @@ -20,7 +24,7 @@ jobs:
fetch-depth: 0

- name: Setup python
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: 3.8

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/prepare-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
uses: actions/checkout@v3

- name: Setup python
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: 3.8

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
token: ${{ secrets.PAT_TOKEN }}

- name: Setup python
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: 3.8

Expand Down
49 changes: 49 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,55 @@ This file is updated every release with the use of `towncrier` from the fragment

.. towncrier release notes start

Hikari 2.0.0.dev109 (2022-06-26)
================================

Breaking Changes
----------------

- Removal of all application commands v1 related fields and endpoints.
- Discord has completely disabled some endpoints, so we unfortunately can't
deprecate them instead of removing them ([#1148](https://github.com/hikari-py/hikari/issues/1148))
- Removed the `resolved` attribute from `AutocompleteInteraction` as autocomplete interactions never have resolved objects. ([#1152](https://github.com/hikari-py/hikari/issues/1152))
- `build` methods are now typed as returning `MutableMapping[str, typing.Any]`. ([#1164](https://github.com/hikari-py/hikari/issues/1164))


Deprecation
-----------

- `messages.Mentions` object deprecated
- Alternatives can be found in the base message object ([#1149](https://github.com/hikari-py/hikari/issues/1149))


Features
--------

- Add `create` method to `CommandBuilder`. ([#1016](https://github.com/hikari-py/hikari/issues/1016))
- Support for attachments in REST-based interaction responses. ([#1048](https://github.com/hikari-py/hikari/issues/1048))
- Add option to disable automatic member chunking.
Added the `auto_chunk_members` kwarg to `GatewayBot` and `EventManagerImpl`, which when `False` will disable automatic member chunking. ([#1084](https://github.com/hikari-py/hikari/issues/1084))
- Allow passing multiple event types to the listen decorator.
Parse union type hints for events if listen decorator is empty. ([#1103](https://github.com/hikari-py/hikari/issues/1103))
- Animated guild banner support. ([#1116](https://github.com/hikari-py/hikari/issues/1116))
- Implement application commands permission v2.
- New `default_member_permissions` and `is_dm_enabled` related fields.
- Added `hikari.events.application_events.ApplicationCommandPermissionsUpdate`.
- Added `APPLICATION_COMMAND_PERMISSION_UPDATE` audit log entry ([#1148](https://github.com/hikari-py/hikari/issues/1148))


Bugfixes
--------

- Improved pyright support. ([#1108](https://github.com/hikari-py/hikari/issues/1108))
- `RESTClientImpl.fetch_bans` now return a `LazyIterator` to allow pagination of values. ([#1119](https://github.com/hikari-py/hikari/issues/1119))
- Fix unicode decode error caused by `latin-1` encoding when sending the banner. ([#1120](https://github.com/hikari-py/hikari/issues/1120))
- Don't error on an out-of-spec HTTP status code (e.g one of Cloudflare's custom status codes).
`HTTPResponseError.status` may now be of type `http.HTTPStatus` or `int`. ([#1121](https://github.com/hikari-py/hikari/issues/1121))
- Fix name of polish locale (`hikari.Locale.OL` -> `hikari.Locale.PL`) ([#1144](https://github.com/hikari-py/hikari/issues/1144))
- Properly garbage collect message references in the cache
- Properly deserialize `PartialMessage.referenced_message` as a partial message ([#1192](https://github.com/hikari-py/hikari/issues/1192))


Hikari 2.0.0.dev108 (2022-03-27)
================================

Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ Hikari does not include a command framework by default, so you will want to pick

- [`lightbulb`](https://github.com/tandemdude/hikari-lightbulb) - a simple and easy to use command framework for Hikari.
- [`tanjun`](https://github.com/FasterSpeeding/Tanjun) - a flexible command framework designed to extend Hikari.
- [`crescent`](https://github.com/magpie-dev/hikari-crescent) - a command handler for Hikari that keeps your project neat and tidy.

---

Expand Down
1 change: 0 additions & 1 deletion changes/1016.feature.md

This file was deleted.

1 change: 0 additions & 1 deletion changes/1048.feature.md

This file was deleted.

2 changes: 0 additions & 2 deletions changes/1103.feature.md

This file was deleted.

1 change: 0 additions & 1 deletion changes/1116.feature.md

This file was deleted.

1 change: 1 addition & 0 deletions changes/1189.feature.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
`GuildVoiceChannel` now inherits from `TextableGuildChannel` instead of `GuildChannel`.
1 change: 1 addition & 0 deletions changes/1201.feature.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add the `app_permissions` field to command and component interactions.
16 changes: 8 additions & 8 deletions dev-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
mock==4.0.3

# Py.test stuff.
pytest==7.1.1
pytest==7.1.2
pytest-asyncio==0.18.3
pytest-cov==3.0.0
pytest-randomly==3.11.0
pytest-randomly==3.12.0

# Coverage testing.
coverage[toml]==6.3.2
coverage[toml]==6.4.1

# Other stuff
async-timeout==4.0.2 # Used for timeouts in some test cases.
Expand All @@ -28,27 +28,27 @@ sphobjinv==2.2.2
# TYPE CHECKING #
#################

mypy==0.942
pyright==1.1.234
mypy==0.961
pyright==1.1.257

#######################
# DEPENDENCY CHECKING #
#######################

safety~=1.10.3
safety~=2.0.0

##############
# FORMATTING #
##############

black==22.3.0
black==22.6.0
isort==5.10.1

###########
# Linting #
###########

slotscheck==0.14.0
slotscheck==0.14.1

##################
# SPELL CHECKING #
Expand Down
4 changes: 2 additions & 2 deletions docs/documentation.mako
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@
sphobjinv.DataObjStr(
name = name,
domain = "py",
role = "var",
role = "variable",
uri = v.url(),
priority = "1",
dispname = "-",
Expand Down Expand Up @@ -602,7 +602,7 @@
sphobjinv.DataObjStr(
name = f.obj.__module__ + "." + f.obj.__qualname__,
domain = "py",
role = "func",
role = "function",
uri = f.url(),
priority = "1",
dispname = "-",
Expand Down
2 changes: 1 addition & 1 deletion examples/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
#
# You should have received a copy of the CC0 Public Domain Dedication along with this software.
# If not, see <https://creativecommons.org/publicdomain/zero/1.0/>.
"""Allows mypy to run here."""
"""Allows type-checkers to run here."""
9 changes: 4 additions & 5 deletions flake8-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,22 @@ flake8==4.0.1
# Ref: https://github.com/DmytroLitvinov/awesome-flake8-extensions

flake8-bandit~=3.0.0 # runs bandit
flake8-black==0.3.2 # runs black
flake8-black==0.3.3 # runs black
flake8-broken-line==0.4.0 # forbey "\" linebreaks
flake8-builtins==1.5.3 # builtin shadowing checks
flake8-coding==1.3.2 # coding magic-comment detection
flake8-comprehensions==3.8.0 # comprehension checks
flake8-comprehensions==3.10.0 # comprehension checks
flake8-deprecated==1.3 # deprecated call checks
flake8-docstrings==1.6.0 # pydocstyle support
flake8-executable==2.1.1 # shebangs
flake8-fixme==1.1.1 # "fix me" counter
flake8-functions==0.0.7 # function linting
jinja2==3.0.3 # temporarily freeze jinja2 due to incompatibilities with flake8-html
flake8-html==0.4.1 # html output
flake8-html==0.4.2 # html output
flake8-if-statements==0.1.0 # condition linting
flake8-isort==4.1.1 # runs isort
flake8-mutable==1.2.0 # mutable default argument detection
flake8-pep3101==1.3.0 # new-style format strings only
flake8-print==4.0.0 # complain about print statements in code
flake8-print==5.0.0 # complain about print statements in code
flake8-printf-formatting==1.1.2 # forbey printf-style python2 string formatting
flake8-pytest-style==1.6.0 # pytest checks
flake8-raise==0.0.5 # exception raising linting
Expand Down
4 changes: 2 additions & 2 deletions hikari/__init__.pyi
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# DO NOT MANUALLY EDIT THIS FILE!
# This file was automatically generated by `nox -s generate-stubs`

from typing import Any
from _typeshed import Incomplete

from hikari import api as api
from hikari import applications as applications
Expand Down Expand Up @@ -102,4 +102,4 @@ from hikari.users import *
from hikari.voices import *
from hikari.webhooks import *

__all__: Any
__all__: Incomplete
2 changes: 1 addition & 1 deletion hikari/_about.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,5 @@
__issue_tracker__: typing.Final[str] = "https://github.com/hikari-py/hikari/issues"
__license__: typing.Final[str] = "MIT"
__url__: typing.Final[str] = "https://github.com/hikari-py/hikari"
__version__: typing.Final[str] = "2.0.0.dev109"
__version__: typing.Final[str] = "2.0.0.dev110"
__git_sha1__: typing.Final[str] = "HEAD"
2 changes: 1 addition & 1 deletion hikari/api/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"""Core interface for Hikari's configuration dataclasses."""
from __future__ import annotations

__all__: typing.Sequence[str] = ("CacheComponents",)
__all__: typing.Sequence[str] = ("CacheComponents", "CacheSettings", "HTTPSettings", "ProxySettings")

import abc
import typing
Expand Down
Loading

0 comments on commit 29d390a

Please sign in to comment.