mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-11-20 13:29:03 +00:00
Remove cached emoji and sticker data if intent is disabled
This commit is contained in:
1 parent
55f907a793
commit
5eeeef02e4
2 files changed
+24
-5
No files matched your search
@@ -259,6 +259,13 @@ class ConnectionState(Generic[ClientT]):
|
||||
|
||||
self.clear()
|
||||
|
||||
# For some reason Discord still sends emoji/sticker data in payloads
|
||||
# This makes it hard to actually swap out the appropriate store methods
|
||||
# So this is checked instead, it's a small penalty to pay
|
||||
@property
|
||||
def cache_guild_expressions(self) -> bool:
|
||||
return self._intents.emojis_and_stickers
|
||||
|
||||
async def close(self) -> None:
|
||||
for voice in self.voice_clients:
|
||||
try:
|
||||
|
||||
Reference in new issue
Block a user