You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-5Lines changed: 8 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -176,17 +176,19 @@ await pages.start(ctx)
176
176
177
177
## Button Component Menus
178
178
179
-
Here is a button implementation of a basic menu that has a stop button and two reply reactions. Note that the `ButtonMenu` class is used instead of `Menu` in order to make it a `View`.
179
+
Here is a button implementation of a basic menu that has a stop button and two reply reactions.
180
180
181
-
`ButtonMenu` is a subclass of `Menu`and it therefore has all the same attributes and methods.
181
+
Note that `view=self` is passed with the initial message and `nextcord.ui.button` is used instead of `menus.button`.
182
182
183
-
Also note that `ButtonMenu.stop()` is a coroutine and needs to be awaited.
183
+
`Menu.disable()` can be used to disable all buttons in the menu.
184
+
185
+
`Menu.enable()` can be used to enable all buttons in the menu.
0 commit comments