mirror of
https://github.com/Sheldan/abstracto.git
synced 2026-04-15 20:16:34 +00:00
[AB-xxx] fixing not using the ban reason for moderation actions
This commit is contained in:
@@ -76,7 +76,7 @@ public class BanModerationActionModalListener implements ModalInteractionListene
|
|||||||
.getEvent()
|
.getEvent()
|
||||||
.getValues()
|
.getValues()
|
||||||
.stream()
|
.stream()
|
||||||
.filter(modalMapping -> modalMapping.getId().equals(payload.getDurationInputId()))
|
.filter(modalMapping -> modalMapping.getId().equals(payload.getReasonInputId()))
|
||||||
.map(ModalMapping::getAsString)
|
.map(ModalMapping::getAsString)
|
||||||
.findFirst()
|
.findFirst()
|
||||||
.orElse(null);
|
.orElse(null);
|
||||||
|
|||||||
Reference in New Issue
Block a user