Skip to content

Commit 3429d97

Browse files
authored
Update buttons.mdx
1 parent 8f4ab4c commit 3429d97

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/interactions/ui-components/buttons.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,13 @@ Using this command should return the following message:
7474
<br />
7575

7676
As you can see, we create a class called `MyView` that [subclasses](#oop)
77-
[`discord.ui.View`](https://docs.pycord.dev/en/master/api.html#discord.ui.View).
77+
[`discord.ui.View`](https://docs.pycord.dev/en/stable/api.html#discord.ui.View).
7878

7979
Then, we add a function called `button_callback` to the `MyView` class with the decorator
80-
[`discord.ui.button`](https://docs.pycord.dev/en/master/api.html#discord.ui.button).
80+
[`discord.ui.button`](https://docs.pycord.dev/en/stable/api.html#discord.ui.button).
8181
This decorator adds a button to a component. This function takes two arguments: the button that was
8282
clicked and the interaction. These arguments are passed to the function when the button is clicked
83-
by the module. We use the [`interaction.response.send_message`](https://docs.pycord.dev/en/master/api.html#discord.InteractionResponse.send_message)
83+
by the module. We use the [`interaction.response.send_message`](https://docs.pycord.dev/en/stable/api.html#discord.InteractionResponse.send_message)
8484
function to send a message to the channel where the interaction was sent.
8585

8686
Finally, we create a global slash command called `button` that sends the message, along with the view
@@ -119,7 +119,7 @@ class MyView(discord.ui.View):
119119
We have discussed that Views can have 5 rows. Each row has 5 slots, and each button takes up 1 slot.
120120
So, how do we move the buttons to another row?
121121

122-
This can be done by specifying the `row` argument in the [`discord.ui.button`](https://docs.pycord.dev/en/master/api.html#discord.ui.button)
122+
This can be done by specifying the `row` argument in the [`discord.ui.button`](https://docs.pycord.dev/en/stable/api.html#discord.ui.button)
123123
decorator.
124124

125125
:::info The `row` argument

0 commit comments

Comments
 (0)