diff options
| author | Rapptz <[email protected]> | 2018-04-02 00:42:14 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2018-04-02 00:42:14 -0400 |
| commit | 3cb6ac152edb1004dd6f6afef2adb1777902bbbe (patch) | |
| tree | 1eb5ce7344956af7847156b386dae5b096c3fe40 | |
| parent | Actually fix the order in Guild.by_category. (diff) | |
| download | discord.py-3cb6ac152edb1004dd6f6afef2adb1777902bbbe.tar.xz discord.py-3cb6ac152edb1004dd6f6afef2adb1777902bbbe.zip | |
Userbots do not have a DM cache cap limit.
| -rw-r--r-- | discord/state.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/state.py b/discord/state.py index 731cb096..cb413cd8 100644 --- a/discord/state.py +++ b/discord/state.py @@ -213,7 +213,7 @@ class ConnectionState: channel_id = channel.id self._private_channels[channel_id] = channel - if len(self._private_channels) > 128: + if self.is_bot and len(self._private_channels) > 128: _, to_remove = self._private_channels.popitem(last=False) if isinstance(to_remove, DMChannel): self._private_channels_by_user.pop(to_remove.recipient.id, None) |