CTCV2/app/src/main/java/cutthecord/commands/commands/CmdSpoilerImg.java

25 lines
611 B
Java

package cutthecord.commands.commands;
import com.discord.stores.StoreStream;
import cutthecord.commands.CommandHandler;
import lanchon.dexpatcher.annotation.DexAdd;
@DexAdd
public class CmdSpoilerImg extends CommandHandler.Command {
@DexAdd
@Override
public String handleCommand(String msg) {
StoreStream.getUserSettings().setImageSpoiler(true);
return msg;
}
@DexAdd
@Override
public String getPopupInfo() {
return "Prepends SPOILER_ to names of all images attached to the message that starts with this, causing them to get marked as spoiler";
}
}