| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -355,6 +355,14 @@ public void sendBanGuildNotification(User user, String reason, Member moderator) | |||
| 355 | 355 | sendGuildNotification(moderator.getGuild(), buildBanEmbed(user, moderator, reason)); | |
| 356 | 356 | } | |
| 357 | 357 | ||
| 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 | + */ | ||
| 358 | 366 | public void sendUnbanGuildNotification(User user, String reason, Member moderator) { | |
| 359 | 367 | MessageEmbed unbanEmbed = buildUnbanEmbed(user.getIdLong(), reason, moderator); | |
| 360 | 368 | sendGuildNotification(moderator.getGuild(), unbanEmbed, msg -> { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments