[AB-xxx] adding roles to the model of leave logger

This commit is contained in:
Sheldan
2025-11-12 23:33:50 +01:00
parent b4ffea341c
commit d1267605c1
3 changed files with 14 additions and 0 deletions

View File

@@ -11,12 +11,14 @@ import net.dv8tion.jda.api.entities.Role;
@Builder
public class RoleDisplay {
private String roleMention;
private String roleName;
private Long roleId;
public static RoleDisplay fromRole(Role role) {
return RoleDisplay
.builder()
.roleId(role.getIdLong())
.roleName(role.getName())
.roleMention(role.getAsMention())
.build();
}