Skip to content

Conversation

@danthe1st
Copy link
Member

This PR adds the following restrictions when users other than the original poster close help posts:

  • The action is logged in the log channel
  • Closing via buttons is prevented.
  • A reason is required.

This does not affect users closing their own posts.

Log message:
grafik
Closing without specifying a reason:
grafik
Closing using buttons (same message if user has permissions to mod-close the post or doesn't have these permissions):
grafik

@danthe1st danthe1st requested a review from a team as a code owner January 9, 2024 17:17
Copy link
Member

@liquiddevelopmentnet liquiddevelopmentnet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good in general, however, I think that displaying a modal when somebody tries to close a help post from another user which is non staff is better because since the field isn't required by discord, they probably won't supply a reason at the first time. That means the command would always has to be run twice. Another reason is that the reason field may get confused because it "technically" has different use cases between certified helpers, mods, and OPs.

I'm aware these are just accessibility improvements, but I think this is worth a discussion.

@danthe1st danthe1st added the feature: help-system For issues pertaining to the bot's help channel management functionality. label Jan 9, 2024
@danthe1st
Copy link
Member Author

This looks good in general, however, I think that displaying a modal when somebody tries to close a help post from another user which is non staff is better because since the field isn't required by discord, they probably won't supply a reason at the first time. That means the command would always has to be run twice. Another reason is that the reason field may get confused because it "technically" has different use cases between certified helpers, mods, and OPs.

I'm aware these are just accessibility improvements, but I think this is worth a discussion.

To be honest, the original poster supplying a reason is fairly pointless.

While a modal would be possible, I don't see much of a difference since people can just type the command again.

@liquiddevelopmentnet
Copy link
Member

This looks good in general, however, I think that displaying a modal when somebody tries to close a help post from another user which is non staff is better because since the field isn't required by discord, they probably won't supply a reason at the first time. That means the command would always has to be run twice. Another reason is that the reason field may get confused because it "technically" has different use cases between certified helpers, mods, and OPs.
I'm aware these are just accessibility improvements, but I think this is worth a discussion.

To be honest, the original poster supplying a reason is fairly pointless.

While a modal would be possible, I don't see much of a difference since people can just type the command again.

As i said, mainly accessibility , your decision in the end

@danthe1st
Copy link
Member Author

danthe1st commented Jan 13, 2024

This looks good in general, however, I think that displaying a modal when somebody tries to close a help post from another user which is non staff is better because since the field isn't required by discord, they probably won't supply a reason at the first time. That means the command would always has to be run twice. Another reason is that the reason field may get confused because it "technically" has different use cases between certified helpers, mods, and OPs.
I'm aware these are just accessibility improvements, but I think this is worth a discussion.

To be honest, the original poster supplying a reason is fairly pointless.
While a modal would be possible, I don't see much of a difference since people can just type the command again.

As i said, mainly accessibility , your decision in the end

This is now implemented.
Closing (posts of other people) via buttons is still disabled in order to make it "easier" to look whether closing the post would interrupt someone helping.

Also, I have configured the modal to require at least 11 characters in order to prevent overly lazy texts (e.g. JavaScript since that's not really informative to the author). This restriction is also in place for the unreserve command (except for the OP).

Copy link
Member

@liquiddevelopmentnet liquiddevelopmentnet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@MoonTM-GIT MoonTM-GIT merged commit bc80839 into Java-Discord:main Jan 26, 2024
@danthe1st danthe1st deleted the close-restrictions branch January 26, 2024 20:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature: help-system For issues pertaining to the bot's help channel management functionality.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants