Don't add the reactions when the paginator has one page
Created by: FenikkusuKoneko
Details
The reactions will not added when the paginator has one page. Also the stop reaction is added only when the MessageDeletion is enabled or when the pages are greater than 1.
Changes proposed
I added a PageCount
property in the IPaginationRequest
interface and PaginationDeletion
property which gets the value of _deletion
from the PaginationRequest
class.
In the Paginator
class I checked if the number of pages are greater than one or not. If true then add all the reactions. If not then add the stop reaction only when the PaginationRequest
has the message deletion option. I didn't add this field in the IPaginationRequest
interface but I will do it if you want it. I will edit if something is wrong.