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

39 lines
754 B
Java
Raw Normal View History

2020-12-21 22:29:15 +00:00
package com.discord.models.domain;
import com.PatchConfig;
import com.discordtest.BuildConfig;
2020-12-25 23:51:17 +00:00
import java.io.IOException;
2020-12-21 22:29:15 +00:00
import lanchon.dexpatcher.annotation.DexEdit;
2020-12-25 23:51:17 +00:00
import lanchon.dexpatcher.annotation.DexIgnore;
2020-12-21 22:29:15 +00:00
import lanchon.dexpatcher.annotation.DexWrap;
@DexEdit
2020-12-25 23:51:17 +00:00
public class ModelMessageEmbed implements Model {
2020-12-21 22:29:15 +00:00
// nospoiler patch
@DexWrap
public boolean isSpoilerAttachment() {
if (!PatchConfig.NOSPOILER_ENABLED) {
// Patch not enabled
return isSpoilerAttachment();
}
return false;
}
// end of nospoiler patch
// Interfaces
2020-12-25 23:51:17 +00:00
@DexIgnore
@Override
public void assignField(JsonReader jsonReader) throws IOException {
}
// End of interfaces
2020-12-21 22:29:15 +00:00
}