Skip to content

Commit 9e95e32

Browse files
committed
check cleanup
1 parent 74702ec commit 9e95e32

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

paginator.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,7 @@ async def show_page(self, index: int):
8181
await self.create_base(page)
8282

8383
def react_check(self, reaction, user):
84-
if user.id != self.ctx.author.id:
85-
return False
86-
if reaction.message.id != self.base.id:
87-
return False
88-
if reaction.emoji in self.reaction_map.keys():
89-
return True
84+
return user.id == self.ctx.author.id and reaction.emoji in self.reaction_map.keys()
9085

9186
async def run(self):
9287
if not self.running:

0 commit comments

Comments
 (0)