Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- +package net.sf.l2j.discord.misc;
- +
- +import net.dv8tion.jda.api.EmbedBuilder;
- +import net.sf.l2j.discord.actions.handlers.IDiscordHandler;
- +
- +/**
- + * @author Melron
- + */
- +public class DiscordTest implements IDiscordHandler
- +{
- + @Override
- + public void notify(Object... params)
- + {
- + EmbedBuilder test = new EmbedBuilder();
- + test.setColor(0x99ccff);
- + test.setTitle(String.format(":shopping_cart: melron wants to sell an item!"));
- + test.setThumbnail("https://i.postimg.cc/3x3TQFC9/weapon-arcana-mace-i01.png");
- + test.addField(":eye: Item Name: ", "Arcana Mace", true);
- + test.addField(":zap: Item Enchantment: ","+9", true);
- + test.addField(":dagger: P. Atk: ","300", true);
- + test.addField(":magic_wand: M. Atk: ","235", true);
- + test.addField(":knot: Special Ability: ","Acumen", true);
- + test.addField(":crossed_swords: Item Type: ", "Blunt / One Handed", true);
- + test.addField(":money_mouth: Price: ","15GB",false);
- + getChannel("test-channel").sendMessageEmbeds(test.build()).queue();
- + }
- +}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement