Skip to content

Commit 13ba36f

Browse files
authored
Update examples.py
1 parent 43db2a9 commit 13ba36f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

examples.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def __init__(self, guild: discord.Guild):
6161

6262
@property
6363
def possition_x(self):
64-
return self._possition_x
64+
return _possition_x
6565

6666
def set_x(self, x: int):
6767
self._possition_x += x
@@ -125,9 +125,9 @@ def arrow_button():
125125
async def start_game(ctx: commands.Context):
126126
pointer: Pointer = get_pointer(ctx.guild)
127127
await ctx.send(embed=discord.Embed(title="Little Game",
128-
description=self.display(x=0, y=0)),
129-
components=[discord.ActionRow(self.empty_button, self.arrow_button.set_label('↑').set_custom_id('up'), self.empty_button),
130-
discord.ActionRow(self.arrow_button.set_label('←').set_custom_id('left').disable_if(pointer.possition_x <= 0), self.arrow_button.set_label('↓').set_custom_id('down').disable_if(pointer.possition_y <= 0), self.arrow_button.set_label('→').set_custom_id('right'))
128+
description=display(x=0, y=0)),
129+
components=[discord.ActionRow(empty_button, arrow_button.set_label('↑').set_custom_id('up'), empty_button),
130+
discord.ActionRow(arrow_button.set_label('←').set_custom_id('left').disable_if(pointer.possition_x <= 0), arrow_button.set_label('↓').set_custom_id('down').disable_if(pointer.possition_y <= 0), arrow_button.set_label('→').set_custom_id('right'))
131131
]
132132
)
133133

0 commit comments

Comments
 (0)