forked from Fascinated/Bat
add name history tracking
This commit is contained in:
@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user