Resolve [Bug]/#24 #27
No reviewers
Labels
No labels
Bug
Confirmed
Crash
Documentation
Duplicate
Enhancement
High Priority
Invalid
Mod compatibility
Needs triage
Stale
Won't Fix
No milestone
No project
No assignees
1 participant
Due date
No due date set.
Dependencies
No dependencies set.
Reference
LunaFox/AutoWhitelist!27
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "mc/1.20.2"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Resolves #24
Reopening this using the newly-renamed fork branch version!
@Awakened-Redstone @kaydenvg
When executing the whitelist register command in Discord, we take the member's guild's getPublicRole() (which isn't returned in the list from getRoles() because it is documented as implicit):
The @everyone role; synonymous with the guild's ID.
and add it explicitly to the roles we're checking on the member.
This allows users to configure the mod using their guild's @everyone role, and have it behave as expected.
MemberImpl#getRoles returns
Collections.unmodifiableList(roleList)I was trying to avoid doing this to not risk mem leak but I think I'm being worried for nothing
Other than that, everything looks great
That's what I would bet, given https://stackoverflow.com/questions/53767722/converting-immutable-to-mutable-list-java-is-there-any-alternative and the dig into it shows a literal transmutation of the underlying iterable into a new memory object
(in my rebasing I somehow lost the arraylist change, so added that back)
I'll run some tests later to check for any odd behavior and errors, I'm quite busy recently but I should be able to run the tests this weekend.
Yeah, that is why I had a worry on that, but the GC should take care of that, else Java would blow up
Mostly it looks good, there are a few things that need fixing but I can do that on a new commit
I'll also do some code cleaning