CTCV2/app/src/main/java/com/discord/models/domain/ModelMessageEmbed.java

33 lines
678 B
Java

package com.discord.models.domain;
import com.PatchConfig;
import com.discordtest.BuildConfig;
import java.io.IOException;
import lanchon.dexpatcher.annotation.DexEdit;
import lanchon.dexpatcher.annotation.DexIgnore;
import lanchon.dexpatcher.annotation.DexWrap;
@DexEdit
public class ModelMessageEmbed implements Model {
// nospoiler patch
@DexWrap
public boolean isSpoilerAttachment() {
if (!PatchConfig.NOSPOILER_ENABLED) {
// Patch not enabled
return isSpoilerAttachment();
}
return false;
}
@DexIgnore
@Override
public void assignField(JsonReader jsonReader) throws IOException {
}
}