Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
78 commits
Select commit Hold shift + click to select a range
84f8e0d
feat: add command and option name in Exception message (#1015)
mAxYoLo01 Aug 11, 2022
6dec9f6
refactor: remove `Client.__resolve_events` and associated events, sin…
Catalyst4222 Aug 14, 2022
df38621
feat: add download helper method for Attachments (#1016)
EepyElvyra Aug 17, 2022
f0a76e5
fix(autocomplete dispatch): ID -> name (#1010)
EepyElvyra Aug 17, 2022
ffd0c9d
feat: add helper methods for component disabling (#1018)
EepyElvyra Aug 20, 2022
fdcb6e0
refactor: turn MISSING into a more proper sentinel (#1007)
Catalyst4222 Aug 20, 2022
557f8df
feat: Add ``presence`` property to ``User`` (#1005)
Damego Aug 20, 2022
c1322db
refactor!: rename outdated channel type names to new (#1024)
Damego Aug 20, 2022
f5f01c8
ref!: set GuildMember as a subclass of Member (#1023)
mAxYoLo01 Aug 20, 2022
8b4546f
feat: Implement ``AllowedMentions`` object (#1002)
Damego Aug 20, 2022
e2b68c4
feat!: Completely redo gateway process. (#1022)
FayeDel Aug 21, 2022
dd5764d
refactor: improve the PR template again (#1029)
EepyElvyra Aug 21, 2022
fafce55
Fix: modify method in client (#1027)
EepyElvyra Aug 21, 2022
71cda2d
feat!: Add a guild id property for the member object (#1025)
EepyElvyra Aug 21, 2022
9ee4293
refactor: optmize the project structure (#1028)
EepyElvyra Aug 21, 2022
e90a5fd
fix: ``Embed.set_field_at`` doesn't update json (#1033)
Damego Aug 22, 2022
f614632
fix: Member.get_avatar_url now returns None when guild avatar is not …
Nanrech Aug 22, 2022
0c6f59b
docs: update FAQ and quickstart documentation links (#1038)
EepyElvyra Aug 23, 2022
05c90bc
refactor: optimize how autodefer works (#1012)
EepyElvyra Aug 23, 2022
a946acd
chore/ADMIN: repoint GitHub
i0bs Aug 26, 2022
fcb498d
refactor(bot, gateway, http): Remove any unclosed client session mess…
EepyElvyra Aug 28, 2022
b0b8423
fix: command options and choices doesn't syncs (#1046)
Damego Aug 30, 2022
ae31788
fix: Set the websocket's token without referencing the httpclient (#1…
Catalyst4222 Aug 30, 2022
ee4376c
feat: Add `APPLICATION_COMMAND_BADGE` to `AppFlags` (#1044)
Damego Sep 1, 2022
4d932c1
fix: Mitigate gateway null responses. (#1053)
FayeDel Sep 1, 2022
4bef69c
refactor: move getting bot info to `_ready` (#1055)
Damego Sep 1, 2022
ae86952
fix: add missing parenthesis (#1058)
mAxYoLo01 Sep 1, 2022
1cf1b61
chore: bump version and add catalyst to authors (#1030)
EepyElvyra Sep 1, 2022
9619ddb
fix: Change event sets, fix proper close() WS handling (#1061)
FayeDel Sep 2, 2022
7409248
docs(Embed): change description of field's index (#1051)
Damego Sep 2, 2022
9362d1a
feat: Add helper methods for sticker (#1047)
Damego Sep 2, 2022
9e0a078
feat: create `Context.has_permissions()` & `Member.has_permissions()`…
mAxYoLo01 Sep 2, 2022
baecb46
feat&fix: Implement `Guild.get_scheduled_events` & fix iso (#1043)
Damego Sep 2, 2022
78d50b6
feat: Add base iterators & context managers + helpers (#1057)
EepyElvyra Sep 2, 2022
47ed09d
feat: Add full support for prune endpoints (#1062)
Nanrech Sep 2, 2022
d0efc84
refactor: Enable repr for all models (#1026)
EepyElvyra Sep 2, 2022
e5a4502
Fix force http (#1068)
Donbur4156 Sep 3, 2022
7397c7c
refactor(cache): optimize caching and dispatching behaviour (#1039)
Damego Sep 3, 2022
c68f50c
fix: Fix constant gateway resume/invalid session loop. (#1070)
FayeDel Sep 3, 2022
99073f7
Fix force http for lists (#1069)
Donbur4156 Sep 3, 2022
ab243d2
fix: `mention` in `Member()` being NoneType (#1063)
B1ue-Dev Sep 4, 2022
b1d2787
refactor: make Command.dispatch a function (#1040)
Catalyst4222 Sep 4, 2022
fc5f292
fix: fix gateway resumes (#1071)
LordOfPolls Sep 4, 2022
21bd3cd
fix: Add zlib-stream compression in accordance with #1071 (#1072)
FayeDel Sep 4, 2022
348def8
Merge pull request #1031 from interactions-py/unstable
FayeDel Sep 4, 2022
c1a3f4b
refactor: Change type of parameters in scheduled event requests from …
Nanrech Sep 5, 2022
7d5a369
ci: weekly check. (#1073)
pre-commit-ci[bot] Sep 5, 2022
497c7a5
fix: autodefer with args and kwargs in commands (#1074)
Toricane Sep 6, 2022
3a84a8c
feat(guild)!: Converting `delete_message_days` in ban method to secon…
B1ue-Dev Sep 8, 2022
ad679f9
fix: warn for no app cmd scope for disable_sync (#1076)
AstreaTSS Sep 9, 2022
0312190
feat: Implement barebones Forum channel support. (#766)
FayeDel Sep 14, 2022
5da2c4d
feat: Utilise reconnection lock for packet sending. (#1083)
FayeDel Sep 14, 2022
47c4e83
chore: bump version (#1084)
FayeDel Sep 15, 2022
b70033b
Merge pull request #1085 from interactions-py/unstable
FayeDel Sep 15, 2022
b6bac06
Revert "refactor: make Command.dispatch a function (#1040)" (#1091)
EepyElvyra Sep 18, 2022
aef1666
fix: Fix race condition when reconnecting (#1090)
FayeDel Sep 19, 2022
57c2dbe
feat: add new auditlog events (#1088)
Damego Sep 20, 2022
55d36d5
feat: implement forum helpers (#1087)
EepyElvyra Sep 20, 2022
5c2297d
docs: Change type annotations for `Overwrite` args (#1086)
Damego Sep 20, 2022
ad70ca0
feat: add `__getattr__` to Member to get attributes from User (#1080)
Catalyst4222 Sep 20, 2022
4f5c22d
refactor!: add ``event`` to ``raw_socket_create`` dispatch (#992)
Damego Sep 20, 2022
9c11f37
refactor: improve error message formatting (#1079)
EepyElvyra Sep 20, 2022
740f0c8
feat: Add support for `REQUEST_MEMBERS` packet sending (#1089)
Damego Sep 22, 2022
4ad132c
feat: allow embed suppression in interaction responses (#1094)
Catalyst4222 Sep 23, 2022
66a028d
feat: implement a debug setting for the client (#1081)
EepyElvyra Sep 23, 2022
27d8233
feat: add the client, command, and extension to CommandContext instan…
Catalyst4222 Sep 24, 2022
54464ec
fix: `ComponentContext.label` not updated to reflect component models…
GeomKid Sep 24, 2022
9dab349
fix: add HTTPClient to CommandContext.target (#1097)
mAxYoLo01 Sep 24, 2022
04adeee
refactor: Rename create_post_in_forum method to create_forum_post
Nanrech Sep 25, 2022
f71cc7e
fix: Add attachment import in create_forum_post method
Nanrech Sep 25, 2022
e18db66
fix: Add message_payload to payload in create_thread_in_forum http me…
Nanrech Sep 25, 2022
8ae7706
fix: Replace message_payload with message (#1102)
Nanrech Sep 25, 2022
1fa1188
fix: autodefer erroring when *args is empty (#1103)
Toricane Sep 25, 2022
444ab7a
chore: bump version (#1106)
FayeDel Oct 2, 2022
b317aef
docs: Fix missing pages and duplicate type referencing. (#1105)
FayeDel Oct 2, 2022
c41832b
fix: fix incorrect typehint in audit log helper method (#1108)
EepyElvyra Oct 2, 2022
1de54e9
feat: Implement send method for User class. (#1109)
ItsRqtl Oct 3, 2022
838330d
Merge pull request #1095 from interactions-py/unstable
FayeDel Oct 4, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# These are supported funding model platforms

github: [goverfl0w]
github: [i0bs]
open_collective: interactions-py
26 changes: 17 additions & 9 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,20 @@ This pull request is about (X), which does (Y).

## Checklist

- [ ] I've ran `pre-commit` to format and lint the change(s) made.
- [ ] I've checked to make sure the change(s) work on `3.8.6` and higher.
- [ ] This fixes/solves an [Issue](https://github.com/goverfl0w/discord-interactions/issues) (If existent):.
- resolves #
- I've made this pull request for/as: (check all that apply)
- [ ] Documentation
- [ ] Breaking change
- [ ] New feature/enhancement
- [ ] Bugfix
- [ ] The ``pre-commit`` code linter has been run over all edited files to ensure the code is linted.
- [ ] I've ensured the change(s) work on `3.8.6` and higher.


I've made this pull request: (check all that apply)
- [ ] For the documentation
- [ ] To add a new feature
- [ ] As a general enhancement
- [ ] As a refactor of the library/the library's code
- [ ] To fix an existing bug
- [ ] To resolve #ISSUENUMBER


This is:
- [ ] A breaking change

<!--- Expand this when more comes up--->
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ repos:
- id: check-merge-conflict
name: Merge Conflicts
- repo: https://github.com/psf/black
rev: 22.6.0
rev: 22.8.0
hooks:
- id: black
name: Black Formatting
Expand Down
7 changes: 7 additions & 0 deletions docs/api.models.emoji.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.. currentmodule:: interactions

Emoji Models
================

.. automodule:: interactions.api.models.emoji
:members:
1 change: 1 addition & 0 deletions docs/api.models.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Model Objects

api.models.audit_log.rst
api.models.channel.rst
api.models.emoji.rst
api.models.guild.rst
api.models.gw.rst
api.models.flags.rst
Expand Down
2 changes: 1 addition & 1 deletion docs/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Interactions

ext.rst
context.rst
get.rst
utils.rst

.. toctree::
:maxdepth: 2
Expand Down
1 change: 1 addition & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@

# descriptions of the relevant function/method.
autodoc_typehints = "description"
autodoc_typehints_description_target = "documented_params"

extensions = [
"sphinx.ext.autodoc",
Expand Down
5 changes: 3 additions & 2 deletions docs/events.rst
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,10 @@ Event: ``raw_socket_create``
This event fires on any event sent by Discord, including ``Typing Start`` and ``Voice State Update``.
``Hello``, ``Resumed``, ``Reconnect`` and ``Invalid Session`` still will not be dispatched.

The function handling the event should take in one argument, the type of this argument is a ``dict``.
A function handling an event should take two arguments,
the first argument is the name of the event, the second is the data of that event with type ``dict``.

The value of the argument will be the *raw* data sent from Discord, so it is not recommended to use that event
The value of the second argument will be the *raw* data sent from Discord, so it is not recommended to use that event
as long as you don't absolutely need it.


Expand Down
14 changes: 8 additions & 6 deletions docs/faq.rst
Original file line number Diff line number Diff line change
Expand Up @@ -154,21 +154,22 @@ A list of all official extensions can be found `on our github page`_

Those are (at the moment):

- A `voice client`_ - which is still WIP, but it is able to listen for the ``VOICE_STATE_UPDATE`` event.
- An `autosharder`_ for automatic sharding
- `voice client`_ - which is still WIP, but it is able to listen for the ``VOICE_STATE_UPDATE`` event.
- `autosharder`_ for automatic sharding
- `wait_for`_ allows listening and waiting for a specific event or a component inside a function
- `files`_ for file sending with ctx
- `Molter`_ for message commands
- `enhanced`_ which enhances the DX in general
- A `paginator`_ for paginating embeds on messages using components
- `persistence`_ - for storing data inside your custom IDs (as an alternative to ``wait_for``)
- `paginator`_ for paginating embeds on messages using components
- `persistence`_ for storing data inside your custom IDs (as an alternative to ``wait_for``)
- `lavalink`_ for voice sending and listening ``VOICE_STATE_UPDATE`` event
- `fastapi`_ for building own API
- And a `boilerplate`_

Below are a few unofficial exts (for the time being) which implement some functionality similar to what d.py had:

- `checks and cooldowns`_
- `tasks`_
- `get`_ for getting objects from the discord API (will be implemented into the core library at a later time)

Usage examples can usually be found at the linked page

Expand Down Expand Up @@ -318,4 +319,5 @@ Please join our `Discord Server`_ for any further support regarding our library
.. _persistence: https://github.com/interactions-py/persistence
.. _Molter: https://github.com/interactions-py/molter
.. _boilerplate: https://github.com/interactions-py/boilerplate
.. _get: https://github.com/EdVraz/interactions-get
.. _lavalink: https://github.com/interactions-py/interactions-lavalink
.. _fastapi: https://github.com/interactions-py/interactions-fastapi
7 changes: 0 additions & 7 deletions docs/get.rst

This file was deleted.

6 changes: 3 additions & 3 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Ever since December 2019, this open-source project has become the culmination of
- Looking for a compatible library that implements all interactions?
- Itching to get your hands on slash commands, but in a simple manner?

Look no more! The goal of this library is to make all three of these questions go from possibilites to trivial matters.
Look no more! The goal of this library is to make all three of these questions go from possibilities to trivial matters.

What can we do?
***************
Expand Down Expand Up @@ -63,10 +63,10 @@ This open-source project utilizes the following workflows for development:
#. **pre-commit** ``2.20.0``: the architecture uses this before every commit to format and check for severity/QOL-breaking changes.

#. **black** ``22.6.0``
#. **flake8** ``4.0.1``
#. **flake8** ``5.0.4``
#. **isort** ``5.10.1``

#. **Sphinx** ``4.4.0``: all of our documentation is powered off of autogenerated documentation of the Sphinx engine.
#. **Sphinx** ``5.1.1``: all of our documentation is powered off of autogenerated documentation of the Sphinx engine.
#. **Conventional Commits** ``1.0.0``: every commit that we make to our branches use the official specification of CC 1.0.0 to make git graphs easier when improving and refining communication between code reviews, Pull Requests and commits.

When can I start?
Expand Down
13 changes: 5 additions & 8 deletions docs/locale/de/LC_MESSAGES/api.dispatch.po
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ msgid ""
msgstr ""
"Project-Id-Version: interactions.py 4.3\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-07-17 16:00-0400\n"
"POT-Creation-Date: 2022-09-26 12:28-0400\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.9.1\n"
"Generated-By: Babel 2.10.3\n"

#: ../../api.dispatch.rst:4
msgid "Dispatching"
Expand All @@ -38,12 +38,6 @@ msgstr ""
msgid "A list of events being dispatched."
msgstr ""

#: interactions.api.dispatch.Listener
#: interactions.api.dispatch.Listener.dispatch
#: interactions.api.dispatch.Listener.register of
msgid "Return type"
msgstr ""

#: interactions.api.dispatch.Listener.dispatch:1 of
msgid "Dispatches an event given out by the gateway."
msgstr ""
Expand Down Expand Up @@ -83,3 +77,6 @@ msgstr ""
#: interactions.api.dispatch.Listener.register:9 of
msgid "The name to associate the coroutine with. Defaults to None."
msgstr ""

#~ msgid "Return type"
#~ msgstr ""
Loading