Skip to content

Conversation

@danthe1st
Copy link
Member

@danthe1st danthe1st commented Sep 11, 2023

Moderation commands send a message in the current channel and in the log channel.
The option quiet allows to skip the message in the current channel.
This causes the message to be sent twice in the same channel when using the moderation command in the log channel when quiet is not set.

This PR makes the bot to default quiet to be true iff the command is used in the log channel.

This does not effect the /qotw-admin command as the quiet option in that command is about sending an informative message to the user in question.

It also prevents non-staff members using the /warn command with an additional check. This should not be possible anyways due to slash command permissions but the bot should check it as well.

@danthe1st danthe1st requested a review from a team as a code owner September 11, 2023 08:57
@danthe1st danthe1st changed the title automatically determine quiet based on channel automatically determine quiet-ness based on channel Sep 11, 2023
@MoonTM-GIT MoonTM-GIT merged commit d9bdcc3 into Java-Discord:main Sep 18, 2023
@danthe1st danthe1st deleted the auto-quiet branch September 18, 2023 10:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants