add name history tracking

This commit is contained in:
Lee
2024-06-30 03:36:00 +01:00
parent 91ecc9882c
commit 50391e5344
17 changed files with 537 additions and 10 deletions

View File

@ -1,6 +1,7 @@
package cc.fascinated.bat.model;
import cc.fascinated.bat.common.ProfileHolder;
import cc.fascinated.bat.features.namehistory.profile.user.NameHistoryProfile;
import cc.fascinated.bat.features.scoresaber.profile.user.ScoreSaberProfile;
import cc.fascinated.bat.service.DiscordService;
import lombok.Getter;
@ -37,7 +38,7 @@ public class BatUser extends ProfileHolder {
* The name of the user
*/
public String getName() {
return getDiscordUser().getName();
return getDiscordUser().getEffectiveName();
}
/**
@ -57,4 +58,13 @@ public class BatUser extends ProfileHolder {
public ScoreSaberProfile getScoreSaberProfile() {
return getProfile(ScoreSaberProfile.class);
}
/**
* Gets the user's name history profile
*
* @return the user's name history profile
*/
public NameHistoryProfile getNameHistoryProfile() {
return getProfile(NameHistoryProfile.class);
}
}