Repository navigation
Migrate mute, unmute commands - #252
Merged
Merged
Conversation
Member
Author
Member
Author
Zabuzard
marked this pull request as ready for review
November 9, 2021 11:18
Zabuzard
requested review from
I-Al-Istannen,
Tais993,
d3vel0per,
illuminator3,
java-coding-prodigy and
marko-radosavljevic
November 9, 2021 11:18
Zabuzard
marked this pull request as draft
November 9, 2021 11:19
Member
Author
|
draft until unblocked |
java-coding-prodigy
previously requested changes
Nov 11, 2021
Zabuzard
force-pushed
the
feature/migrate_mute_unmute
branch
from
November 12, 2021 08:44
89a8746 to
b68cab1
Compare
Tais993
previously requested changes
Nov 14, 2021
Zabuzard
force-pushed
the
feature/migrate_mute_unmute
branch
from
November 16, 2021 09:02
b68cab1 to
9b2609c
Compare
Zabuzard
marked this pull request as ready for review
November 16, 2021 09:13
Zabuzard
dismissed stale reviews from Tais993 and java-coding-prodigy
November 16, 2021 09:32
Implemented.
RealYusufIsmail
previously requested changes
Nov 16, 2021
Zabuzard
force-pushed
the
feature/migrate_mute_unmute
branch
from
December 10, 2021 08:20
cdddebf to
9ec7f2b
Compare
Member
Author
Zabuzard
marked this pull request as ready for review
December 10, 2021 10:08
Zabuzard
requested review from
RealYusufIsmail,
Tais993 and
java-coding-prodigy
December 10, 2021 10:08
Zabuzard
force-pushed
the
feature/migrate_mute_unmute
branch
from
December 10, 2021 10:15
8ab08a3 to
5554048
Compare
Zabuzard
enabled auto-merge (rebase)
December 10, 2021 10:17
Merged
Tais993
previously approved these changes
Dec 11, 2021
Zabuzard
force-pushed
the
feature/migrate_mute_unmute
branch
from
December 11, 2021 11:58
5554048 to
92fc9d6
Compare
Member
Author
|
Resolved conflicts, no code changes. Tais approval is still valid. |
|
SonarCloud Quality Gate failed. |
Tais993
approved these changes
Dec 14, 2021
RealYusufIsmail
approved these changes
Dec 14, 2021
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.

















Overview
Partially implements #64 . Adds commands:
/mute user reason/unmute user reasonThe commands are fairly simple and follow the pattern introduced by #244 . That said, the branch is based on that branch and hence also blocked by its release.
Notes
This PR slightly changes the initialization process of the bot by moving routines and listeners down into
Commands.java(instead ofApplication.java). This is a temporary change that is unfortuantely required, since they need access to systems such asTagSystemorModAuditLogStore, and also theJDAinstance (which is now also passed down throughCommandSystem).All of this will be made nicer anyways with #235 and #236 , so I wouldnt bother too much for now.
Bot permission change
The bot needs to listen to user-join events, which requires the privileged Server Members Intent to be enabled (already enabled it on our bots and added it to the config, since it doesnt harm - but we have to tell contributors in an announcement).
Checklist
Basic
DM
Foreign users
Logic
Permissions
Rejoin
TODO