33 lines
758 B
Java
33 lines
758 B
Java
package com.discord.utilities.textprocessing;
|
|
|
|
import com.PatchConfig;
|
|
import com.discord.simpleast.core.node.Node;
|
|
|
|
import java.util.Collection;
|
|
|
|
import lanchon.dexpatcher.annotation.DexEdit;
|
|
import lanchon.dexpatcher.annotation.DexIgnore;
|
|
import lanchon.dexpatcher.annotation.DexWrap;
|
|
|
|
@DexEdit
|
|
public final class MessagePreprocessor implements f.a.k.b.c.a { // NodeProcessor in dex
|
|
|
|
// Interfaces
|
|
@DexIgnore
|
|
@Override
|
|
public void processNode(Node node) {
|
|
|
|
}
|
|
// end of interfaces
|
|
|
|
// embedlinks patch
|
|
@DexWrap
|
|
private final void stripSimpleEmbedLink(Collection collection) {
|
|
if (!PatchConfig.EMBEDLINKS_ENABLED) {
|
|
// Patch not enabled
|
|
stripSimpleEmbedLink(collection);
|
|
}
|
|
}
|
|
|
|
}
|