Closed KevinNovak closed 4 years ago
Hey there,
it fails because msg.author
resolves to a user ID, and then looks into the member cache to find a matching ID but there is none since members are not cached automatically.
You can however use .permissionsFor(msg.member)
instead which takes the member instance directly from the message and bypasses the cache.
Thank you for the explanation, I saw that about members not being cached automatically but didn't put it together. I'll mark this as closed.
When using the
GuildChannel.permissionsFor()
, null is returned.Example: