Skip to content

Commit 807e42f

Browse files
authored
Merge pull request #384 from goverfl0w/unstable
Reflect new unstable fixes to stable.
2 parents 93eb27a + 4163816 commit 807e42f

28 files changed

+505
-190
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
1-
## About this Pull Request
1+
## About
22

3-
This pull request does (insert here), which effectively solves issues (X) and (Y).
3+
This pull request is about (X), which does (Y).
44

55
## Checklist
66

7-
- [ ] I've run the `pre_push.py` script to format and lint the change(s) made.
8-
- [ ] I've checked to make sure this pull request runs on Python `3.6.X`.
9-
- [ ] This fixes/solves something from the project's [Issues](https://github.com/goverfl0w/discord-interactions/issues).
10-
- Issue (if referenceable):
11-
- [ ] This adds something new.
12-
- [ ] This is not a code change.
13-
- [ ] (If required) Relevant documentation has been updated/added.
14-
- [ ] There is/are (a) breaking change(s).
7+
- [ ] I've ran `pre-commit` to format and lint the change(s) made.
8+
- [ ] I've checked to make sure the change(s) work on `3.8.6` and higher.
9+
- [ ] This fixes/solves an [Issue](https://github.com/goverfl0w/discord-interactions/issues).
10+
- (If existent):
11+
- [ ] I've made this pull request for/as: (check all that apply)
12+
- [ ] Documentation
13+
- [ ] Breaking change
14+
- [ ] New feature/enhancement
15+
- [ ] Bugfix

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,5 @@ dist/
1010
.env
1111
.venv
1212
.vscode
13+
__pycache__
14+
.token

.token

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ODgzNzg4ODkzNTEyNjgzNTIw.YTPCjA.HUk8b7AkX-C2t3Hv_gOvktUHUXk

docs/_static/banner.png

14.8 KB
Loading

docs/api.rst

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,6 @@ API Reference
55

66
This page outlines the API wrapper of discord-interactions.
77

8-
.. warning::
9-
10-
As of the time of this writing, version 4.0 of discord-interactions
11-
has not yet been released, which this documentation currently reflects.
12-
The documentation written here is subject to change and is not finalized.
13-
148
Interactions
159
************
1610

docs/conf.py

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,24 @@
3030
# Add any Sphinx extension module names here, as strings. They can be
3131
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
3232
# ones.
33-
extensions = ["sphinx.ext.autodoc", "sphinx.ext.intersphinx", "karma_sphinx_theme"]
33+
autosectionlabel_prefix_document = True
34+
hoverxref_auto_ref = True
35+
hoverxref_sphinxtabs = True
36+
extensions = [
37+
"sphinx.ext.autodoc",
38+
"sphinx.ext.intersphinx",
39+
"sphinx.ext.autosectionlabel",
40+
"hoverxref.extension",
41+
"karma_sphinx_theme",
42+
]
43+
44+
# Stackoverflow said that this is gonna cure my LaTeX errors for ref handling.
45+
# https://stackoverflow.com/questions/67485567/sphinx-cross-reference-in-latex
46+
latex_elements = {
47+
"preamble": r"""
48+
\renewcommand{\hyperref}[2][]{#2}
49+
"""
50+
}
3451

3552
# Add any paths that contain templates here, relative to this directory.
3653
templates_path = ["_templates"]
@@ -40,8 +57,9 @@
4057
#
4158
# This is also used if you do content translation via gettext catalogs.
4259
# Usually you set "language" from the command line for these cases.
43-
language = None
60+
language = "de"
4461
locale_dirs = ["locale/"]
62+
gettext_compact = True
4563

4664
# List of patterns, relative to source directory, that match files and
4765
# directories to ignore when looking for source files.

docs/faq.rst

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,10 @@ Got a question about our library? Well, your answer is probably laying somewhere
66
.. note::
77

88
This page is maintained by the Helpers of the Discord server,
9-
and updated by the library developer at their discretion. For any
9+
and developers at their discretion. For any
1010
comments, feedback or concerns please consider joining our server
1111
and bringing it up in our support channels.
1212

13-
.. warning::
14-
15-
This FAQ list currently reflects v4.0 as of the time of this writing,
16-
all other versions are considered deprecated. Because of this, there
17-
will not be any answers for questions regarding v3.0 and below.
18-
1913
discord.py is dead! Will this library die too?
2014
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2115
The short answer is: **no**.

docs/index.rst

Lines changed: 65 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -2,53 +2,92 @@
22

33
discord-interactions
44
====================
5-
No more hassle with trying to get interactions to work with your Python Discord bot
6-
-- **discord-interactions** is now here.
5+
Ever since December 2019, this open-source project has become the culmination of dedication and research towards figuring out the best way to bring **interactions from Discord to you:** we are an easy, simple, scalable and modular library for Discord interactions.
76

8-
**discord-interactions** is a simple API wrapper for Discord interactions.
9-
We're not here to replace discord.py or any other fork, but we are here to be the very best
10-
Python Discord library there is that implements interactions very well. This is what our
11-
library is all about.
7+
- Tired of using numerous module dependencies for slash commands and buttons?
8+
- Looking for a compatible library that implements all interactions?
9+
- Itching to get your hands on slash commands, but in a simple manner?
1210

13-
What are we good for?
14-
*********************
15-
These are the biggest advantages that you will receive out of using our library:
11+
Look no more! The goal of this library is to make all three of these questions go from possibilites to trivial matters.
12+
13+
What can we do?
14+
***************
15+
Our library---inside and out, offers numerous benefits and presents itself as a worthy module in your bot's dependencies:
16+
17+
The base features of our library, built with our API include:
18+
19+
- **Dynamic object data generation**: all event data dispatched from the Gateway is dynamically transformed and generated into two-way serializable JSON objects.
20+
- **Sane rate limiting**: our HTTP client implements pre-emptive rate limit avoidance, so your bot is guaranteed to never hit HTTP ``429``.
21+
- **On-demand cache**: every HTTP request and Gateway event made is cached when needed, so you never have to save information yourself.
22+
- **Simplified data models**: every object presented is accessible as either a raw dictionary/``application/json`` or list of recursive attributes.
1623

17-
* Modern library architecture design for easy modularity and scalability.
18-
* Sane HTTP 429 ratelimiting.
19-
* Dynamic object data generation via. dispatch.
20-
* On-demand caching.
21-
* `await`/async coroutine functionality.
24+
Some more unique features that are exclusive to our interactions include:
2225

23-
What does that mean?
24-
^^^^^^^^^^^^^^^^^^^^
25-
We're basically the library you'll want to use for these specific things:
26+
- **Event-triggered callbacks**: whether a component, application command or interaction response, you'll never need to worry about bridging responses.
27+
- **Dual-way decorator logic**: a decorator can act as both a constructor for an interaction, as well as a callback.
28+
- **API-strict naming**: no more confusion with the naming approach of many libraries; we follow the naming style of interactions from the officially curated Discord Developers documentation.
29+
- **Extensive framework structure**: (**pending in** ``4.1.0``) build your own tools and technologies for our library to develop and integrate community creations.
2630

27-
* ✔️ Working with application commands and components. (Interactions)
28-
* ✔️ Handling data from any text channel, cached and dispatched.
29-
* ✔️ General permissions handling on guild members.
30-
* ✔️ Responsive callbacks for components.
31+
What do we not offer?
32+
*********************
33+
While we certainly offer a lot of benefits, we unfortunately have our own downsides:
3134

32-
We won't be doing these things as a core aspect of our library, however:
35+
.. note::
36+
This list is subject to change as time goes on:
37+
some of these items may be added to the core of
38+
the library in the future.
3339

34-
* ❌ Voice client capabilities.
35-
* ❌ Cooldowns/bucket types.
40+
- No native cooldown decorator/method.
41+
- Lack of automatic sharding and voice clients.
3642

3743
Where do I start?
3844
*****************
39-
Please look at our pages below to find out where to go further.
45+
Please look at our pages below to find out where to go.
4046

4147
.. toctree::
42-
:maxdepth: 2
48+
:maxdepth: 1
4349
:caption: Pages:
4450

4551
quickstart.rst
4652
api.rst
4753
faq.rst
4854

55+
How can I contribute?
56+
*********************
57+
Please read up on our `contribution requirements`_ for the project. This open-source project also enforces the `MIT License`_.
58+
59+
This open-source project utilizes the following workflows for development:
60+
61+
#. **pre-commit** ``2.16.0``: the architecture uses this before every commit to format and check for severity/QOL-breaking changes.
62+
63+
#. **black** ``21.11b1``
64+
#. **flake8** ``3.9.2``
65+
#. **isort** ``5.9.3``
66+
67+
#. **Sphinx** ``4.1.2``: all of our documentation is powered off of autogenerated documentation of the Sphinx engine.
68+
#. **colorama** ``0.4.4``: our internal logger uses a customized coloring formatter to make looking for specific conditions easier when running tests.
69+
#. **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.
70+
71+
When can I start?
72+
^^^^^^^^^^^^^^^^^
73+
We also have some extra ground rules about making any specific contributions involving:
74+
75+
- We do not accept abstraction-based requests. (e.g. ``colour`` for ``color``)
76+
- A request has to be approved by at least one developer.
77+
- You must be willing to change/adhere to reviews from participants **where necessary.**
78+
79+
I think I'm all ready!
80+
^^^^^^^^^^^^^^^^^^^^^^
81+
Feel free to begin making `Pull Requests`_ and `Issues`_ on our GitHub!
82+
4983
Advanced Search
5084
===============
5185

5286
* :ref:`genindex`
5387
* :ref:`modindex`
5488
* :ref:`search`
89+
90+
.. _contribution requirements: https://github.com/goverfl0w/discord-interactions/blob/stable/CONTRIBUTING.md
91+
.. _MIT License: https://github.com/goverfl0w/discord-interactions/blob/stable/LICENSE
92+
.. _Pull Requests: https://github.com/goverfl0w/discord-interactions/pulls
93+
.. _Issues: https://github.com/goverfl0w/discord-interactions/issues

docs/locale/de/LC_MESSAGES/index.po

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ msgid ""
3131
"No more hassle with trying to get interactions to work with your Python "
3232
"Discord bot -- **discord-interactions** is now here."
3333
msgstr ""
34+
"Kein Ärger mehr, Interaktionen mit Ihrem Python Discord Bot "
35+
"zum Laufen zu bringen -- **discord-interactions** ist jetzt da."
3436

3537
#: ../../index.rst:8
3638
msgid ""
@@ -39,26 +41,30 @@ msgid ""
3941
" we are here to be the very best Python Discord library there is that "
4042
"implements interactions very well. This is what our library is all about."
4143
msgstr ""
44+
"**discord-interactions** ist ein einfacher API-Wrapper für Discord "
45+
"Interaktionen. Wir sind nicht hier, um discord.py oder einen anderen Fork zu ersetzen, aber"
46+
"Wir sind hier, um die beste Python Discord-Bibliothek zu sein, die es gibt"
47+
"Implementiert Interaktionen sehr gut. Darum geht es in unserer Bibliothek."
4248

4349
#: ../../index.rst:14
4450
msgid "What are we good for?"
45-
msgstr ""
51+
msgstr "Wofür sind wir gut?"
4652

4753
#: ../../index.rst:15
4854
msgid "We offer a **lot** of benefits with using our library:"
49-
msgstr ""
55+
msgstr "Wir bieten **viele** Vorteile bei der Nutzung unserer Bibliothek:"
5056

5157
#: ../../index.rst:17
5258
msgid "Modern pythonic design that is scalable and modular."
53-
msgstr ""
59+
msgstr "Modernes Python-Design, das skalierbar und modular ist."
5460

5561
#: ../../index.rst:18
5662
msgid "Asynchronous coroutines and multi-threading capabilities."
57-
msgstr ""
63+
msgstr "Asynchrone Coroutinen und Multithreading-Fähigkeiten."
5864

5965
#: ../../index.rst:19
6066
msgid "Optimal class object reference with little overhead."
61-
msgstr ""
67+
msgstr "Optimale Klassenobjektreferenz mit geringem Overhead."
6268

6369
#: ../../index.rst:20
6470
msgid "Easily accessible codebase source."

0 commit comments

Comments
 (0)