Skip to content

Commit 0f6386f

Browse files
authored
Add files via upload
1 parent 922446c commit 0f6386f

File tree

78 files changed

+6468
-614
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+6468
-614
lines changed
-1.79 KB
Binary file not shown.
20.5 KB
Binary file not shown.

docs/_build/doctrees/index.doctree

465 Bytes
Binary file not shown.
-1.36 KB
Binary file not shown.

docs/_build/html/_sources/components.rst.txt

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Attributes
1515
----------
1616

1717
* :attr:`*args`: [Union[:class:`Button`, :class:`SelectionMenu`]]
18-
An array of :class:`Button`(s) and/or :class:`SelectionMenu`(s).
18+
An array of :class:`Button`/s and/or :class:`SelectionMenu`/s.
1919

2020
* :attr:`force`: Optional[Bool]
2121
When set to ``True`` an Empty :class:`ActionRow` will be ignored
@@ -66,12 +66,11 @@ Attributes
6666
The Style of the Button.
6767

6868
.. note::
69-
To get more infos about the styles visit
69+
To get more infos about the styles wisit
7070
`the Discord-API Documentation <https://discord.com/developers/docs/interactions/message-components#buttons-button-styles>`_.
7171

7272
:attr:`emoji`: Optional[Union[:class:`discord.PartialEmoji`, :class:`discord.Emoji`, :class:`str`]]
7373
The Emoji that will be displayed on the left side of the Button.
74-
7574
:attr:`url`: Optional[:class:`str`]
7675
The url the Button includes
7776

@@ -92,31 +91,31 @@ Methodes
9291
:meth:`disable_if`
9392
Disable the :class:`Button` if the passed :attr:`check` returns ``True``.
9493

95-
- :attr:`check`: typing.Union[bool, typing.Callable]
94+
* :attr:`check`: typing.Union[bool, typing.Callable]
9695
Could be an :class:`bool` or usually any :class:`Callable` that returns an :class:`bool`
9796

98-
- :attr:`**kwargs`: Any[SupportsIndex]
97+
* :attr:`**kwargs`: Any[SupportsIndex]
9998
Arguments that should passed in to the :attr:`check` if it is an :class:`Callable`
10099

101100
:return: :class:`discord.Button`
102101

103102
:meth:`set_color_if`
104103
Sets the Color(Style) of an :class:`discord.Button` to the provided :attr:`color` if the passed :attr:`check` returns ``True``.
105104

106-
- :attr:`check`: could be an :class:`bool` or usaly any :obj:`Callable` that returns an :class:`bool`
105+
* :attr:`check`: could be an :class:`bool` or usaly any :obj:`Callable` that returns an :class:`bool`
107106

108-
- :attr:`color`: the Color(Style) that should set if the :attr:`check` returns ``True``
107+
* :attr:`color`: the Color(Style) that should set if the :attr:`check` returns ``True``
109108

110-
- :attr:`**kwargs`: ``kwargs`` that should passed in to the :attr:`check` if it is an :class:`Callable`
109+
* :attr:`**kwargs`: ``kwargs`` that should passed in to the :attr:`check` if it is an :class:`Callable`
111110

112111
:return: :class:`discord.Button`
113112

114-
.. toctree::
115-
:maxdepth: 2
116-
:caption: Contents: index.rst, interaction.rst
113+
.. toctree::
114+
:maxdepth: 3
115+
:caption: Contents:
117116

118117
Indices and tables
119-
==================
118+
~~~~~~~~~~~~~~~~~~
120119

121120
* :ref:`genindex`
122121
* :ref:`modindex`

docs/_build/html/_sources/index.rst.txt

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,6 @@
66
Welcome to discord.py-message-component's documentation!
77
=========================================================
88

9-
.. toctree::
10-
:maxdepth: 3
11-
:caption: Contents:
12-
13-
index.rst
14-
interaction.rst
15-
components.rst
16-
179
Installing:
1810
___________
1911

@@ -124,14 +116,20 @@ respond to an button when he pressed by a user
124116
125117
.. note::
126118
You could set the Paramerter ``hidden`` in the respond to True, to make the Message ephemeral.
127-
.. seealso:: `discord.Interaction.respond <./interaction.html#respond>`_
119+
120+
Wisit `discord.Interaction.respond <./interaction.html#respond>`_ to get more information about the :meth:`respond`.
128121

129122

123+
.. toctree::
124+
:maxdepth: 3
125+
:caption: Contents:
130126

127+
components.rst
128+
interaction.rst
131129

132130

133131
Indices and tables
134-
==================
132+
__________________
135133

136134
* :ref:`genindex`
137135
* :ref:`modindex`

docs/_build/html/_sources/interaction.rst.txt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,8 @@
66
Interaction
77
===========
88

9-
109
:class:`discord.Interaction`
11-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
10+
____________________________
1211

1312
Represents an interaction createt in discord like click an :class:`discord.Button` or select an option of :class:`discord.SelectionMenu`
1413

@@ -19,7 +18,8 @@ Represents an interaction createt in discord like click an :class:`discord.Butto
1918
Do not initiate this Class manually
2019

2120
Attributes
22-
__________
21+
----------
22+
2323
:attr:`author`: :class:`discord.abc.User`
2424
A :class:`Member` that invoked the interaction. If :attr:`channel` is a
2525
private channel or the user has left the guild, then it is a :class:`User` instead.
@@ -44,12 +44,12 @@ __________
4444
If this is passed in an ``[on_]button_click`` or ``[on_]selection_select`` Event there wuild be a second parameter that includes this attribute.
4545

4646
Methodes
47-
________
47+
--------
4848

4949
:meth:`defer`: None
5050
'Defers' the response, showing a loading state to the use.
5151

52-
.. warning::
52+
.. important::
5353
If you dont respond with an message using :meth:`respond`
5454
or edit the original message using :meth:`edit` within less than 3 seconds,
5555
discord will indicates that the interaction failed and the interaction-token will be invalidated.
@@ -75,11 +75,11 @@ ________
7575
Responds to an interaction by sending a message that can be made visible only to the person who invoked the interaction by setting the :attr:`hidden` to ``True``.
7676

7777
.. toctree::
78-
:maxdepth: 2
79-
:caption: Contents: index.rst, interaction.rst
78+
:maxdepth: 3
79+
:caption: Contents:
8080

8181
Indices and tables
82-
==================
82+
__________________
8383

8484
* :ref:`genindex`
8585
* :ref:`modindex`

docs/_build/html/_static/css/badge_only.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)