aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar TizzySaurus <[email protected]>2022-02-16 22:06:54 +0000
committerGravatar GitHub <[email protected]>2022-02-16 22:06:54 +0000
commitda58a4a3338f78c9263947a3d4433c9c56d37a02 (patch)
tree1dab00a88e812f328a3dd849eec77a49c9d0e2ae
parentFix ignoring of raw DM edits (#2085) (diff)
Fix: `!raw` can now be used in threads (#2090)
-rw-r--r--bot/exts/info/information.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/info/information.py b/bot/exts/info/information.py
index 5b25fd0c3..e616b9208 100644
--- a/bot/exts/info/information.py
+++ b/bot/exts/info/information.py
@@ -470,7 +470,7 @@ class Information(Cog):
If `json` is True, send the information in a copy-pasteable Python format.
"""
- if ctx.author not in message.channel.members:
+ if not message.channel.permissions_for(ctx.author).read_messages:
await ctx.send(":x: You do not have permissions to see the channel this message is in.")
return