Skip to content

Commit

Permalink
Merge pull request #1095 from interactions-py/unstable
Browse files Browse the repository at this point in the history
chore: merge unstable into stable
  • Loading branch information
FayeDel authored Oct 4, 2022
2 parents b70033b + 1de54e9 commit 838330d
Show file tree
Hide file tree
Showing 216 changed files with 22,343 additions and 6,588 deletions.
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
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

0 comments on commit 838330d

Please sign in to comment.