2021-06-27 20:44:35 +00:00
|
|
|
package com.discord.utilities.colors;
|
|
|
|
|
2021-08-04 22:02:59 +00:00
|
|
|
import com.discord.models.user.User;
|
2021-11-08 18:25:28 +00:00
|
|
|
import d0.z.d.m;
|
2021-06-27 20:44:35 +00:00
|
|
|
/* compiled from: RepresentativeColors.kt */
|
2022-03-08 21:11:21 +00:00
|
|
|
/* loaded from: classes2.dex */
|
2021-06-27 20:44:35 +00:00
|
|
|
public final class RepresentativeColorsKt {
|
2022-03-02 20:59:20 +00:00
|
|
|
private static final RepresentativeColors<String> UserRepresentativeColors = new RepresentativeColors<>();
|
2021-08-04 22:02:59 +00:00
|
|
|
private static final RepresentativeColors<String> GuildMemberRepresentativeColors = new RepresentativeColors<>();
|
2021-06-27 20:44:35 +00:00
|
|
|
private static final RepresentativeColors<Long> GuildRepresentativeColors = new RepresentativeColors<>();
|
|
|
|
|
2021-08-04 22:02:59 +00:00
|
|
|
public static final String getColorId(User user) {
|
|
|
|
m.checkNotNullParameter(user, "$this$getColorId");
|
|
|
|
String avatar = user.getAvatar();
|
|
|
|
return avatar != null ? avatar : String.valueOf(user.getDiscriminator());
|
|
|
|
}
|
|
|
|
|
|
|
|
public static final RepresentativeColors<String> getGuildMemberRepresentativeColors() {
|
2021-06-27 20:44:35 +00:00
|
|
|
return GuildMemberRepresentativeColors;
|
|
|
|
}
|
|
|
|
|
|
|
|
public static final RepresentativeColors<Long> getGuildRepresentativeColors() {
|
|
|
|
return GuildRepresentativeColors;
|
|
|
|
}
|
|
|
|
|
2021-08-04 22:02:59 +00:00
|
|
|
public static final RepresentativeColors<String> getUserRepresentativeColors() {
|
2021-06-27 20:44:35 +00:00
|
|
|
return UserRepresentativeColors;
|
|
|
|
}
|
|
|
|
}
|