[Bug]: @everyone role does not work for whitelisting #24
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#24
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Version information
1.0.0 Alpha 8
Version type
Full
Expected Behavior
users with no role/
@everyoneare able to use np!register to whitelist themselvesActual Behavior
"Sorry, but I couldn't accept your request
It seems that you don't have the required subscription/member level or don't have your Twitch/Youtube account linked to your Discord account."
Reproduction Steps
@everyoneuser"Sorry, but I couldn't accept your request
It seems that you don't have the required subscription/member level or don't have your Twitch/Youtube account linked to your Discord account."
Java version
N/A, issue with bot
Additional information
Whitelisting self works with any role other than the default
@everyone. Made a new role with no special permissions/not admin and it works, but I'd prefer if anyone joining the server with the default role could whitelist themselves.yo! I'm w/ @kaydenvg , there's two ways I think could be good for solving this (ref
Awakened-Redstone/AutoWhitelist@cf6c29bd0c/src/main/java/com/awakenedredstone/autowhitelist/discord/commands/RegisterCommand.java (L65)):@everyonerole is in the config listallowEveryone: boolean, and have it bypass the whitelist check if that is truethoughts? would be a fast PR
Yeah, it shouldn't be complicated. I have been pretty busy recently, so I haven't had time to work on the issue. I'll try working on it this weekend.
I ask because we'd be happy to make the change and make the PR, given which way you want to take it! 🙇♂️
You are always free to make a PR
Would the config option be the preferred method here?
I have considered adding a small additional line for processing
@everyone(from server id) into a role for the cached list or process something like id -1 into the role, the reason I don't look for the presence of the role or add an option for that is because I want to allow the users to also use roles along@everyoneI want to later work on some QoL for the mod and push it into beta or release when I have more time, feel free to make a PR with a workaround, it can be improved later, the mod is currently on alpha state.
Question: givenmasteris the default branch but I notedev/full, which should I make this PR against?disregard, going to fork and PR a
masterFixed by #27, patch released in 1.0.0-alpha.10