@@ -74,13 +74,13 @@ Using this command should return the following message:
7474<br />
7575
7676As 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
7979Then, 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 ) .
8181This decorator adds a button to a component. This function takes two arguments: the button that was
8282clicked 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 )
8484function to send a message to the channel where the interaction was sent.
8585
8686Finally, 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):
119119We have discussed that Views can have 5 rows. Each row has 5 slots, and each button takes up 1 slot.
120120So, 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)
123123decorator.
124124
125125:::info The `row` argument
0 commit comments