aboutsummaryrefslogtreecommitdiff
path: root/discord/channel.py
diff options
context:
space:
mode:
authorRapptz <[email protected]>2021-06-05 02:53:30 -0400
committerRapptz <[email protected]>2021-06-05 02:53:30 -0400
commit27556ea0a28ae58bc3319e2209e70042f4fb0213 (patch)
treef576a2e0b0a1394c3f861d44b04bd1fead6078f7 /discord/channel.py
parentAdd View.is_dispatching to detect whether a view has been added (diff)
downloaddiscord.py-27556ea0a28ae58bc3319e2209e70042f4fb0213.tar.xz
discord.py-27556ea0a28ae58bc3319e2209e70042f4fb0213.zip
Fix DM channel permissions not having read_messages
Diffstat (limited to 'discord/channel.py')
-rw-r--r--discord/channel.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/discord/channel.py b/discord/channel.py
index ded4da41..96cdaeb1 100644
--- a/discord/channel.py
+++ b/discord/channel.py
@@ -1519,6 +1519,7 @@ class DMChannel(discord.abc.Messageable, Hashable):
"""
base = Permissions.text()
+ base.read_messages = True
base.send_tts_messages = False
base.manage_messages = False
return base
@@ -1661,6 +1662,7 @@ class GroupChannel(discord.abc.Messageable, Hashable):
"""
base = Permissions.text()
+ base.read_messages = True
base.send_tts_messages = False
base.manage_messages = False
base.mention_everyone = True