Skip to content

Commit bc092e5

Browse files
committed
Fix readme example
1 parent 6e71311 commit bc092e5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,9 @@ Example
100100
101101
102102
class SampleView(View):
103-
def __init__(self):
104-
super().__init__()
105-
self.view_model = SampleViewModel()
103+
def __init__(self, bot):
104+
super().__init__(bot)
105+
self.view_model = SampleViewModel(bot)
106106
107107
async def add_reaction(self):
108108
await self.get_message().add_reaction("\U0001f44d")

discord/ext/ui/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@
99
from .select_option import SelectOption
1010

1111

12-
__version__ = "1.1.4"
12+
__version__ = "1.1.5a"

0 commit comments

Comments
 (0)