Java-Discord / JavaBot

General utility bot for the Discord Java Community
https://discordjug.net/
GNU General Public License v3.0
48 stars 23 forks source link

Include user tag in ban revoke log message #284

Open danthe1st opened 2 years ago

danthe1st commented 2 years ago

Is your feature request related to a problem? Please describe. Currently, the Ban revoked log embed only contains a timestamp, the responsible moderator and the id of the unbanned user. It is hard to easily identify users by id.

Describe the solution you'd like When revoking a ban, the bot should obtain the user with retrieveUserById. If this operation is successful, it should add a field with the tag (username and discriminator) to the ban revoked embed. If the user cannot be obtained, the log message should still be sent but the tag should be ommitted.

It might also be a good idea to include a reason argument/field for unbans.

Describe alternatives you've considered Using the audit log for this. However, this is tedious.

Additional context Screenshot_2022-05-14-23-31-36~2.png

Bydand-dev commented 1 week ago
Bydand-dev commented 1 week ago
Details