-
Notifications
You must be signed in to change notification settings - Fork 5
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
Defense channels and rolemapping #301
Merged
Merged
Commits on Mar 18, 2024
-
Setup internal channel mapping
### Notes This adds an additional feature to the new audit channel flow. Once an `ext-name-audit` channel is setup, now you can make an `int-name-audit` channel, which will perform these steps: 1. Setup a new role `Defense Internal: Name` 2. Generate an invite for the `int-name-audit` channel 3. Check if a matching `ext-name-audit` channel exists, if so assign `ViewChannel` permission to `Defense Internal: name` role.
Configuration menu - View commit details
-
Copy full SHA for 035960f - Browse repository at this point
Copy the full SHA 035960fView commit details -
This is still a work in progress just testing out the ability of assigning a role to an invite based of the uses it has.
Configuration menu - View commit details
-
Copy full SHA for 4263db8 - Browse repository at this point
Copy the full SHA 4263db8View commit details
Commits on Mar 19, 2024
-
Rewrite some of the checks and counts in-order to correctly match the role. The previous method was breaking on different format channels such as `ext-thesis-test-audit`
Configuration menu - View commit details
-
Copy full SHA for e001260 - Browse repository at this point
Copy the full SHA e001260View commit details -
Moves `listInvites` into it's own function for easier calls
Configuration menu - View commit details
-
Copy full SHA for b7e2a64 - Browse repository at this point
Copy the full SHA b7e2a64View commit details -
Refactor the `guildMemberAdd` event to resolve lint expression errors and make sure channel name is found correctly based on ext, int patterns
Configuration menu - View commit details
-
Copy full SHA for 62015eb - Browse repository at this point
Copy the full SHA 62015ebView commit details -
Resolves the issue that would fail to assign internal roles to external channel if the channel name had the format `ext-client-name-audit` vs `ext-clientname-audit`
Configuration menu - View commit details
-
Copy full SHA for 0fcf962 - Browse repository at this point
Copy the full SHA 0fcf962View commit details -
This fixes the bug happening on invites not counting correctly if they were being used more than 2 times on certain edge cases.
Configuration menu - View commit details
-
Copy full SHA for 18eab22 - Browse repository at this point
Copy the full SHA 18eab22View commit details
Commits on Mar 20, 2024
-
This is still WIP but adds the `defense-audit` command with the parameter `client-name` to automatically build `int-clientname-audit` and `ext-clientname-audit` channels with two roles `Defense Internal: ClientName` and `Defense External: ClientName`. Can only be run from the `defense` category
Configuration menu - View commit details
-
Copy full SHA for 487162b - Browse repository at this point
Copy the full SHA 487162bView commit details -
This commit makes it so the `defense-audit` command can only be run within the `defense` parent category of channels and will send a reply if it isn't working as it should. Also adds an `interaction.editReply` inorder to avoid any timeout issues happening
Configuration menu - View commit details
-
Copy full SHA for 0c3bd08 - Browse repository at this point
Copy the full SHA 0c3bd08View commit details -
Removes the debug loggers from the scripts, not needed anymore!
Configuration menu - View commit details
-
Copy full SHA for 971b6da - Browse repository at this point
Copy the full SHA 971b6daView commit details -
Configuration menu - View commit details
-
Copy full SHA for 042c391 - Browse repository at this point
Copy the full SHA 042c391View commit details
Commits on Apr 12, 2024
-
This commit adds a number of changes to the audit channel flow. mainly: - Update permissions if channel already exists - Check if role already exists, if so skip - Changed logic so that if audit channels already exist, we output a different message to interaction - Remove embeds by wrapping invite URL in quotes. - Change verbiage around messages - Separates InternalChannel and externalChannel - Changed invite code permission match
Configuration menu - View commit details
-
Copy full SHA for 982cbc5 - Browse repository at this point
Copy the full SHA 982cbc5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 62e5c89 - Browse repository at this point
Copy the full SHA 62e5c89View commit details -
Configuration menu - View commit details
-
Copy full SHA for 71cd2f6 - Browse repository at this point
Copy the full SHA 71cd2f6View commit details
Commits on Apr 16, 2024
-
This commit switches over from discordjs `Collection` in favour of storing invites as an object.
Configuration menu - View commit details
-
Copy full SHA for 3eb7e8b - Browse repository at this point
Copy the full SHA 3eb7e8bView commit details -
Configuration menu - View commit details
-
Copy full SHA for ec9974b - Browse repository at this point
Copy the full SHA ec9974bView commit details
Commits on Apr 22, 2024
-
This commit does some refactoring based off review feedback (thank you!) as well as making sure the invite uses / expiry date is listed properly.
Configuration menu - View commit details
-
Copy full SHA for 8bc32cb - Browse repository at this point
Copy the full SHA 8bc32cbView commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.