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
+6-4Lines changed: 6 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -178,17 +178,19 @@ await pages.start(ctx)
178
178
179
179
Here is a button implementation of a basic menu that has a stop button and two reply reactions.
180
180
181
-
Note that `view=self`is passed with the initial message and `nextcord.ui.button` is used instead of `menus.button`.
181
+
Note that the `ButtonMenu` class is used instead of `Menu` in order to make it a `View`. `ButtonMenu` is a subclass of `Menu` and it therefore has all the same attributes and methods.
182
182
183
-
`Menu.disable()` can be used to disable all buttons in the menu.
183
+
Also note that `view=self` is passed with the initial message and `nextcord.ui.button` is used instead of `menus.button`.
184
184
185
-
`Menu.enable()` can be used to enable all buttons in the menu.
185
+
`ButtonMenu.disable` can be used to disable all buttons in the menu.
186
+
187
+
`ButtonMenu.enable` can be used to enable all buttons in the menu.
0 commit comments