package me.duncte123.skybot.commands.fun;

import java.time.Instant;

import me.duncte123.skybot.Command;
import me.duncte123.skybot.utils.Config;
import net.dv8tion.jda.core.EmbedBuilder;
import net.dv8tion.jda.core.events.message.MessageReceivedEvent;

public class TriggerCommand implements Command {

    public final static String help = "use when you are triggered.";

    @Override
    public boolean called(String[] args, MessageReceivedEvent event) {
        // TODO Auto-generated method stub
        return true;
    }

    @Override
    public void action(String[] args, MessageReceivedEvent event) {
        EmbedBuilder eb = new EmbedBuilder()
                .setColor(Config.defaultColour)
                .setAuthor(Config.headerName, Config.defaultUrl, Config.defaultIcon)
                .setImage("https://cdn.discordapp.com/attachments/94831883505905664/176181155467493377/triggered.gif")
                .setFooter(Config.defaultName, Config.defaultIcon)
                .setTimestamp(Instant.now());
                event.getTextChannel().sendMessage(eb.build()).queue();
    }

    @Override
    public void executed(boolean success, MessageReceivedEvent event) {
        // TODO Auto-generated method stub
        return;

    }

    @Override
    public String help() {
        // TODO Auto-generated method stub
        return help;
    }

}

package me.duncte123.skybot.commands.fun;

import java.time.Instant;

import me.duncte123.skybot.Command;
import me.duncte123.skybot.utils.Config;
import me.duncte123.skybot.utils.Functions;
import net.dv8tion.jda.core.EmbedBuilder;
import net.dv8tion.jda.core.events.message.MessageReceivedEvent;

public class TriggerCommand implements Command {

    public final static String help = "use when you are triggered.";

    @Override
    public boolean called(String[] args, MessageReceivedEvent event) {
        // TODO Auto-generated method stub
        return true;
    }

    @Override
    public void action(String[] args, MessageReceivedEvent event) {
                event.getTextChannel().sendMessage(Functions.embedImage("https://cdn.discordapp.com/attachments/94831883505905664/176181155467493377/triggered.gif")).queue();
    }

    @Override
    public void executed(boolean success, MessageReceivedEvent event) {
        // TODO Auto-generated method stub
        return;

    }

    @Override
    public String help() {
        // TODO Auto-generated method stub
        return help;
    }

}

Update TriggerCommand