Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(btnrole) Fix: Cannot read property 'has' of undefined #15

Merged
merged 2 commits into from
Sep 7, 2021
Merged

(btnrole) Fix: Cannot read property 'has' of undefined #15

merged 2 commits into from
Sep 7, 2021

Conversation

A-K-O-R-A
Copy link
Contributor

The Error was found by Om#7201 (see here), the issue is using the author property which is a User which doesn't have Guild Permissions stored, so instead the member property should be used which has the permissions property.

Full Error:
Error Occurred | btnrole | . Error: TypeError r: Cannot read property 'has' of undefined

@A-K-O-R-A A-K-O-R-A added the Bug Something isn't working label Sep 6, 2021
@A-K-O-R-A A-K-O-R-A self-assigned this Sep 6, 2021
@A-K-O-R-A
Copy link
Contributor Author

Idk what the second commit is, it literally did nothing 👀

@Rahuletto Rahuletto merged commit 097fd93 into Rahuletto:main Sep 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants