Skip to content

Commit c429280

Browse files
committed
Update README.md
1 parent 7ca7c9f commit c429280

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -178,17 +178,19 @@ await pages.start(ctx)
178178

179179
Here is a button implementation of a basic menu that has a stop button and two reply reactions.
180180

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.
182182

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`.
184184

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.
186188

187189
```py
188190
import nextcord
189191
from nextcord.ext import menus
190192

191-
class MyButtonMenu(menus.Menu):
193+
class MyButtonMenu(menus.ButtonMenu):
192194
async def send_initial_message(self, ctx, channel):
193195
return await channel.send(f'Hello {ctx.author}', view=self)
194196

0 commit comments

Comments
 (0)