Skip to content

Commit 1182d57

Browse files
committed
add Javadoc
1 parent 3a2b97c commit 1182d57

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/main/java/net/discordjug/javabot/systems/moderation/ModerationService.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,14 @@ public void sendBanGuildNotification(User user, String reason, Member moderator)
355355
sendGuildNotification(moderator.getGuild(), buildBanEmbed(user, moderator, reason));
356356
}
357357

358+
/**
359+
* Sends an unban notification to the guild log.
360+
*
361+
* This will also try to update the ban notification of the user to say they are unbanned.
362+
* @param user The unbanned user
363+
* @param reason The reason they were unbanned
364+
* @param moderator The moderator unbanning them (That {@link Member}'s {@link Guild} is used to determine the guild log to send the notification to.
365+
*/
358366
public void sendUnbanGuildNotification(User user, String reason, Member moderator) {
359367
MessageEmbed unbanEmbed = buildUnbanEmbed(user.getIdLong(), reason, moderator);
360368
sendGuildNotification(moderator.getGuild(), unbanEmbed, msg -> {

0 commit comments

Comments
 (0)