-
-
Notifications
You must be signed in to change notification settings - Fork 105
Logging the /tag-manage command #296
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
77 commits
Select commit
Hold shift + click to select a range
eb273b9
`minor fix`
b0ce95d
fixed auto-checked problems
e06af67
`minor fix`
5545a72
added `content.md` files to the logs and optimized logging methods to…
3c8c59c
removed duplicate `getTextChannels()`
202e117
made `log()` `synchronized` to prevent interruptions
a4447cf
made `enum Filename`
ccbaecb
files are now in the same message as the embed
b9f98fa
changed `oldContent` to `previousContent`
a78c039
changed `class VirtualFile` to `record Attachment`
40ce619
made `class ModAuditLogWriter` an `enum`
4bfb896
fixed minor code-style problems
d7e3ccf
improved the structure of `ModAuditLogWriter#log()`
60e328b
merged the 3 logging methods in `TagManageCommand`
123aa43
now using `Optional#orElseThrow()` instead of `Optional#get()`
d5438e6
changed error message `"Shouldn't log subcommand"`
c4e752b
made arrays `@NotNull`
e94a720
replaced `Filename` enum with constants
3c9658e
now checking for `null` instead of abusing Optionals
81b43b3
`ModAuditLogWriter#log` now takes the attachments as a List instead o…
e9e4a25
updated a minor javadoc
35411af
renamed `ModAuditLogWriter#log()` to `writeModAuditLog()`
b462051
changed the embed color from `#4FC3F7` to `#3788AC`
d0f3340
removed duplicate `getModAuditLogChannel()`
3e3a7b6
now ignores `NoSuchElementException`
70c680c
`actionVerb` is now a field in `Subcommand` enum
64aaab4
removed unused field and var
91a968d
moved duplicate debug message
6f6a342
removed static import
interacsion ae123c5
Improved JavaDoc.
interacsion b23e7f5
Added missing imports
interacsion 54c9daf
removed `static final` from `record`
interacsion 071fc9b
Slightly updated previous content retrieval code
interacsion b494b75
now using `EnumSet` instead of `List`
interacsion 5bc61ff
made `logAction()` fail-fast
interacsion 358057c
removed unnecessary constructor
interacsion 4377d89
made `Subcommand` enum methods `@NotNull`
interacsion 6eb5898
moved predicates directly into the variable declaration
interacsion e8a7f0b
updated `Attachment` `record`
interacsion 7c6823d
moved the code that gets previous content into a helper method, getTa…
interacsion a221436
now using `actionVerb` as the verb in the message
interacsion 24def34
renamed `writeModAuditLog()` to `write`
interacsion 7c49c73
removed `write()` overloads and now getting attachments as a vararg
interacsion a9a4339
renamed `getModAuditLogChannel()` to `getAndHandleModAuditLogChannel()`
interacsion 81482cd
fixed code-style.
interacsion 1a8b799
fixed a merge issue
interacsion 429d9b7
using constant `CONTENT_FILE_NAME` instead of `"content.md"`
interacsion d011b34
Now using a constant for the log embed description
interacsion 3b9b8b9
code-style quick fix
interacsion 749db7b
moved comment to be above the constant, instead of in front of it.
interacsion 7d25c29
Put audit log channel name pattern in a field
interacsion 97c4f32
renamed field.
interacsion 1cf7627
spotless applied.
interacsion ccac112
Removed useless imports.
interacsion f00590a
Updated `getTagContent()`
interacsion e848ac0
Some code changes
interacsion 4d1f09a
Updated `ModAuditLogWriter`'s javadoc
interacsion 4d55f1f
changed variable name
interacsion f8f6608
updated `getTagContent()`
interacsion 86b93e5
Moved enum set into a variable.
interacsion 2521bcb
code reformat
interacsion 1a67ae9
code reformat
interacsion f036077
moved field and var into `Subcommand`
interacsion 7b101c6
made fields `private`
interacsion 4b20e3c
removed unnecessary `this.`
interacsion da0b177
Rebased and made `ModAuditLogWriter` singleton
interacsion ddc1b88
Using a `BiConsumer` to minimize code duplication.
interacsion 2661399
`getTagContent()` is now returning `null`
interacsion f6ad120
Made test compile again
interacsion 1f493f3
now verifying wanted results in tests
interacsion a3692ba
quick patch
interacsion 7a812b7
Updated `Unable to retrieve content` handling
interacsion 4a19004
made `auditLogChannelNamePattern` compile in constructor
interacsion 279d3aa
changed `logAction()` logic
interacsion 7639f71
Updated `getTagContent()` javadoc
interacsion 2111dc8
replaced `ArrayList` with `List`
interacsion cf98c4a
put predicate in the field instead of the pattern
interacsion File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
Uh oh!
There was an error while loading. Please reload this page.