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;
|
|
|
|
}
|
|
|
|
|
2021-01-01 21:23:37 +00:00
|
|
|
// end of nospoiler patch
|
|
|
|
|
|
|
|
|
|
|
|
// Interfaces
|
2020-12-25 23:51:17 +00:00
|
|
|
@DexIgnore
|
|
|
|
@Override
|
|
|
|
public void assignField(JsonReader jsonReader) throws IOException {
|
|
|
|
|
|
|
|
}
|
2021-01-01 21:23:37 +00:00
|
|
|
// End of interfaces
|
|
|
|
|
2020-12-21 22:29:15 +00:00
|
|
|
}
|