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]:
194
194
"""
195
195
self .running = False
196
196
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
+
197
203
if delete :
198
204
return await self .base .delete ()
199
205
@@ -202,12 +208,6 @@ async def close(self, delete: bool = True) -> typing.Optional[Message]:
202
208
except HTTPException :
203
209
pass
204
210
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
-
211
211
async def first_page (self ) -> None :
212
212
"""
213
213
Go to the first page.
@@ -391,7 +391,11 @@ async def close(self, delete: bool = True) -> typing.Optional[Message]:
391
391
"""
392
392
self .running = False
393
393
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
395
399
396
400
if delete :
397
401
return await self .base .delete ()
You can’t perform that action at this time.
0 commit comments