Resolve [Bug]/#24 #26
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!26
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "master"
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
@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 fromgetRoles()because it is documented as implicit):and add it explicitly to the roles we're checking on the member.
This allows users to configure the mod using their guild's
@everyonerole, and have it behave as expected.Thought that signed... going to do an interactive rebase to have that sign
done! should be good to go @Awakened-Redstone
Seems good, I just need to check it a bit more later as the mod runs periodic checks, so may need to add that line to some other parts of the code, like CoreEvents:80 and DiscordDataProcessor:59
I'm sorry for the confusing branches, I'm working on some changes to the repo as AutoWhitelist Lite has been deprecated
I forgot to mention, the major branch currently is
mc/1.20.2Once I have more time I'll remove unused branches and rename master to
archive/liteThe roles list is immutable, it has to either be copied to a mutable list or use another method to verify for the
@everyonerole.The user can use a bot to give all users a role, but supporting
@everyoneis a nice QoL, also needs to add the extra code to other places that may change the user whitelist, as mentioned on the last commentmy bad, it's been years since I touched java... damn
ArrayList😂This should be better, was fighting Gradle to use my jdk-17 path (little gremlin)
.getRoles()in that capacity to use thismc/1.20.2to catch back upPlease take a look!