2020-12-21 22:29:15 +00:00
|
|
|
package com.discord.utilities.icon;
|
|
|
|
|
|
|
|
import com.PatchConfig;
|
|
|
|
|
|
|
|
import lanchon.dexpatcher.annotation.DexEdit;
|
|
|
|
import lanchon.dexpatcher.annotation.DexWrap;
|
|
|
|
|
|
|
|
@DexEdit
|
2021-01-01 21:23:37 +00:00
|
|
|
public final class IconUtils {
|
2020-12-21 22:29:15 +00:00
|
|
|
|
|
|
|
// hqaavatars patch
|
|
|
|
|
|
|
|
@DexWrap
|
|
|
|
public static final String getForUser(Long userid, String username, Integer num, boolean z, Integer size) {
|
|
|
|
if (!PatchConfig.HQAVATARS_ENABLED) {
|
|
|
|
// Patch not enabled
|
|
|
|
return getForUser(userid, username, num, z, size);
|
|
|
|
}
|
|
|
|
|
|
|
|
// Set size to 256
|
|
|
|
return getForUser(userid, username, num, z, 256);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|