Example #1
0
 def recent_mentions(self) -> 'typing.AsyncIterator[dt_message.Message]':
     """
     :return: A :class:`~.AsyncIteratorWrapper` that can be used to get all the mentions for \ 
         this user.
     """
     return AsyncIteratorWrapper(
         self.get_recent_mentions(role_mentions=True,
                                  everyone_mentions=True,
                                  limit=100))
Example #2
0
 def recent_mentions(self):
     """
     :return: A :class:`~.AsyncIteratorWrapper` that can be used to get all the mentions for \ 
         this user in this guild.
     """
     return AsyncIteratorWrapper(
         self.get_recent_mentions(limit=100,
                                  everyone_mentions=True,
                                  role_mentions=True))
Example #3
0
 def invites(self) -> 'typing.AsyncIterator[dt_invite.Invite]':
     """
     :return: A class:`.AsyncIteratorWrapper` that yields :class:`.Invite` objects for this
         guild.
     """
     return AsyncIteratorWrapper(self.get_invites)
Example #4
0
 def pins(self) -> '_typing.AsyncIterator[dt_message.Message]':
     """
     :return: A :class:`~.AsyncIteratorWrapper` that can be used to iterate over the pins. 
     """
     return AsyncIteratorWrapper(self.get_pins())
Example #5
0
 def invites(self) -> 'typing.AsyncIterator[dt_invite.Invite]':
     """
     Returns a list of :class:`.Invite` objects that are in this message (and valid).
     """
     return AsyncIteratorWrapper(self.get_invites)
Example #6
0
 def webhooks(self) -> 'AsyncIterator[dt_webhook.Webhook]':
     """
     :return: A :class:`.AsyncIteratorWrapper` for the :class:`.Webhook` objects in this \
         channel.
     """
     return AsyncIteratorWrapper(self.get_webhooks)
Example #7
0
 def authorized_apps(self) -> 'typing.AsyncIterator[AuthorizedApp]':
     """
     :return: A :class:`~.AsyncIteratorWrapper` that can be used to get all the authorized apps \ 
         for this user. 
     """
     return AsyncIteratorWrapper(self.get_authorized_apps())
Example #8
0
 def bans(self) -> 'typing.AsyncIterator[dt_user.User]':
     """
     :return: A :class:`~.AsyncIteratorWrapper` that yields :class:`~.User` objects that are
         banned.
     """
     return AsyncIteratorWrapper(self.get_bans())