Skip to content

Commit 48eca2a

Browse files
authored
Add files via upload
1 parent 4b614f0 commit 48eca2a

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

Diff for: README.rst

+13-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.. image:: https://cdn.discordapp.com/attachments/852872100073963532/854711446767796286/discord.py-message-components.png
2-
:target: https://pypi.org/project/discord.py-message-components
3-
:alt: Name of the project
2+
:target: https://pypi.org/project/discord.py-message-components
3+
:alt: Name of the project
44

55
.. image:: https://discord.com/api/guilds/852871920411475968/embed.png
66
:target: https://discord.gg/sb69muSqsg
@@ -18,13 +18,20 @@
1818
:target: https://pepy.tech/project/discord.py-message-components
1919
:alt: Total downloads for the project
2020

21+
.. image:: https://readthedocs.org/projects/discordpy-message-components/badge/?version=latest
22+
:target: https://discordpy-message-components.readthedocs.io/en/latest/
23+
:alt: Documentation Status
24+
2125
The Original `discord.py <https://pypi.org/project/discord.py>`_ Library made by `Rapptz <https://github.com/Rapptz>`_ with implementation of the `Discord-Message-Components <https://discord.com/developers/docs/interactions/message-components>`_ by `mccoderpy <https://github.com/mccoderpy/>`_
2226

27+
**Documentation:** `read the docs <https://discordpy-message-components.readthedocs.io/en/latest/>`_
28+
2329
Questions, Bugs or Ideas
2430
________________________
2531

2632
Open a Issue/Pull request on `GitHub <https://github.com/mccoderpy/discord.py-message-components/pulls>`_, join the `support-Server <https://discord.gg/sb69muSqsg>`_ or send me a direct-message on `Discord <https://discord.com/channels/@me>`_: ``mccuber04#2960``
2733

34+
2835
Installing
2936
__________
3037

@@ -87,8 +94,8 @@ A Command that sends you a Message and edit it when you click a Button:
8794
an_embed = discord.Embed(title='Here are some Button\'s', description='Choose an option', color=discord.Color.random())
8895
msg = await ctx.send(embed=an_embed, components=components)
8996
90-
def _check(i: discord.Interaction, b: discord.ButtonClik):
91-
return i.message == msg and i.author == ctx.author
97+
def _check(i: discord.Interaction, b: discord.ButtonClick):
98+
return i.message == msg and i.member == ctx.author
9299
93100
interaction, button = await client.wait_for('button_click', check=_check)
94101
button_id = button.custom_id
@@ -195,7 +202,7 @@ Another (complex) Example where a small Embed will be send; you can move a small
195202
196203
197204
@client.event
198-
async def on_raw_button_click(interaction: discord.Interaction):
205+
async def on_raw_interaction_create(interaction: discord.Interaction):
199206
await interaction.defer()
200207
pointer: Pointer = get_pointer(interaction.guild)
201208
if not (message := interaction.message):
@@ -235,4 +242,4 @@ Another (complex) Example where a small Embed will be send; you can move a small
235242
discord.ActionRow(arrow_button().set_label('').set_custom_id('left').disable_if(pointer.possition_x <= 0),
236243
arrow_button().set_label('').set_custom_id('down'),
237244
arrow_button().set_label('').set_custom_id('right'))]
238-
)
245+
)

0 commit comments

Comments
 (0)