mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-10-29 16:09:05 +00:00
Inject full Emoji to Reaction if we have it.
Reaction objects with custom Emoji are partial. If we know of this Emoji (can find it on this client) then inject it. Otherwise, leave it as a hollow Emoji. We can still react with a hollow Emoji, but can't get other metadata about it.
This commit is contained in:
1 parent
c4acc0e1a1
commit
4d87b2f817
5 files changed
+49
-35
No files matched your search
@@ -72,6 +72,7 @@ class LogsFromIterator:
|
||||
def __init__(self, client, channel, limit,
|
||||
before=None, after=None, around=None, reverse=False):
|
||||
self.client = client
|
||||
self.connection = client.connection
|
||||
self.channel = channel
|
||||
self.limit = limit
|
||||
self.before = before
|
||||
@@ -125,7 +126,9 @@ class LogsFromIterator:
|
||||
if self._filter:
|
||||
data = filter(self._filter, data)
|
||||
for element in data:
|
||||
yield from self.messages.put(Message(channel=self.channel, **element))
|
||||
yield from self.messages.put(
|
||||
self.connection._create_message(
|
||||
channel=self.channel, **element))
|
||||
|
||||
@asyncio.coroutine
|
||||
def _retrieve_messages(self, retrieve):
|
||||
|
||||
Reference in new issue
Block a user