File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed
Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -194,6 +194,12 @@ async def close(self, delete: bool = True) -> typing.Optional[Message]:
194194 """
195195 self .running = False
196196
197+ sent_emoji , _ = await self .ctx .bot .retrieve_emoji ()
198+ try :
199+ await self .ctx .message .add_reaction (sent_emoji )
200+ except (HTTPException , InvalidArgument ):
201+ pass
202+
197203 if delete :
198204 return await self .base .delete ()
199205
@@ -202,12 +208,6 @@ async def close(self, delete: bool = True) -> typing.Optional[Message]:
202208 except HTTPException :
203209 pass
204210
205- sent_emoji , _ = await self .ctx .bot .retrieve_emoji ()
206- try :
207- await self .ctx .message .add_reaction (sent_emoji )
208- except (HTTPException , InvalidArgument ):
209- pass
210-
211211 async def first_page (self ) -> None :
212212 """
213213 Go to the first page.
@@ -391,7 +391,11 @@ async def close(self, delete: bool = True) -> typing.Optional[Message]:
391391 """
392392 self .running = False
393393
394- self .ctx .bot .loop .create_task (self .ctx .message .add_reaction ("✅" ))
394+ sent_emoji , _ = await self .ctx .bot .retrieve_emoji ()
395+ try :
396+ await self .ctx .message .add_reaction (sent_emoji )
397+ except (HTTPException , InvalidArgument ):
398+ pass
395399
396400 if delete :
397401 return await self .base .delete ()
You can’t perform that action at this time.
0 commit comments