Esempio n. 1
0
    def get_reactors(self, emoji, *args, **kwargs):
        """
        Returns an iterator which paginates the reactors for the given emoji.

        Returns
        -------
        `Paginator`(`User`)
            An iterator which handles pagination of reactors.
        """
        if isinstance(emoji, Emoji):
            emoji = emoji.to_string()

        return Paginator(self.client.api.channels_messages_reactions_get,
                         'after', self.channel_id, self.id, emoji, *args,
                         **kwargs)
Esempio n. 2
0
 def audit_log_iter(self, **kwargs):
     return Paginator(self.client.api.guilds_auditlogs_list, 'before',
                      self.id, **kwargs)
Esempio n. 3
0
 def audit_log(self):
     return Paginator(
         self.client.api.guilds_auditlogs_list,
         'before',
         self.id,
     )