use of sx.blah.discord.util.EmbedBuilder in project KaellyBot by Kaysoro.
the class RSS method getEmbedObject.
@Override
public EmbedObject getEmbedObject(Language lg) {
EmbedBuilder builder = new EmbedBuilder();
builder.withAuthorName("Dofus.com");
builder.withAuthorUrl(getUrl());
builder.withTitle(getTitle());
builder.withColor(16747520);
builder.withImage(imageUrl);
builder.withThumbnail(Constants.rssIcon);
builder.withFooterText(dateFormat.format(new Date(getDate())));
return builder.build();
}
use of sx.blah.discord.util.EmbedBuilder in project KaellyBot by Kaysoro.
the class Almanax method getMoreEmbedObject.
@Override
public EmbedObject getMoreEmbedObject(Language lg) {
EmbedBuilder builder = new EmbedBuilder();
builder.withTitle(Translator.getLabel(lg, "almanax.embed.title.1") + " " + day);
builder.withUrl(Translator.getLabel(lg, "almanax.url") + day);
builder.withDescription(quest);
builder.withColor(new Random().nextInt(16777216));
builder.withImage(ressourceURL);
builder.appendField(Translator.getLabel(lg, "almanax.embed.bonus"), bonus, true);
builder.appendField(Translator.getLabel(lg, "almanax.embed.offrande"), offrande, true);
return builder.build();
}
use of sx.blah.discord.util.EmbedBuilder in project KaellyBot by Kaysoro.
the class Almanax method getEmbedObject.
@Override
public EmbedObject getEmbedObject(Language lg) {
EmbedBuilder builder = new EmbedBuilder();
builder.withTitle(Translator.getLabel(lg, "almanax.embed.title.1") + " " + day);
builder.withUrl(Translator.getLabel(lg, "almanax.url") + day);
builder.withColor(new Random().nextInt(16777216));
builder.withThumbnail(ressourceURL);
builder.appendField(Translator.getLabel(lg, "almanax.embed.bonus"), bonus, true);
builder.appendField(Translator.getLabel(lg, "almanax.embed.offrande"), offrande, true);
return builder.build();
}
use of sx.blah.discord.util.EmbedBuilder in project KaellyBot by Kaysoro.
the class DofusGuild method getEmbedObject.
@Override
public EmbedObject getEmbedObject(Language lg) {
EmbedBuilder builder = new EmbedBuilder();
builder.withTitle(name);
builder.withUrl(url);
builder.withDescription(Translator.getLabel(lg, "guild.desc"));
builder.withColor(new Random().nextInt(16777216));
builder.withThumbnail(littleSkinURL);
builder.withImage(bigSkinURL);
builder.appendField(Translator.getLabel(lg, "guild.level"), level, true);
builder.appendField(Translator.getLabel(lg, "guild.server"), server, true);
builder.appendField(Translator.getLabel(lg, "guild.creation_date"), creationDate, true);
builder.appendField(Translator.getLabel(lg, "guild.members_size"), membersSize, true);
if (alliName != null)
builder.appendField(Translator.getLabel(lg, "guild.ally"), "[" + alliName + "](" + alliUrl + ")", true);
if (!mainMembers.isEmpty())
for (int i = 0; i < mainMembers.size(); i++) builder.appendField(Translator.getLabel(lg, "guild.main_members") + (mainMembers.size() > 1 ? " (" + (i + 1) + "/" + mainMembers.size() + ")" : "") + " : ", mainMembers.get(i), true);
return builder.build();
}
use of sx.blah.discord.util.EmbedBuilder in project KaellyBot by Kaysoro.
the class Set method getEmbedObject.
@Override
public EmbedObject getEmbedObject(Language lg) {
EmbedBuilder builder = new EmbedBuilder();
builder.withTitle(name);
builder.withUrl(url);
builder.withColor(new Random().nextInt(16777216));
builder.withThumbnail(skinURL);
if (level != null && !level.isEmpty())
builder.appendField(Translator.getLabel(lg, "set.level"), level, true);
if (composition != null && !composition.isEmpty())
builder.appendField(Translator.getLabel(lg, "set.composition"), composition, true);
for (int i = 0; i < bonusPano.length; i++) builder.appendField(Translator.getLabel(lg, "set.bonus.1") + " " + (i + 2) + " " + Translator.getLabel(lg, "set.bonus.2"), bonusPano[i], true);
return builder.build();
}
Aggregations