use of org.javacord.core.util.FileContainer in project Javacord by BtoBastian.
the class EmbedBuilderDelegateImpl method setFooter.
@Override
public void setFooter(String text, InputStream icon, String fileType) {
footerText = text;
footerIconUrl = null;
if (icon == null) {
footerIconContainer = null;
} else {
footerIconContainer = new FileContainer(icon, fileType);
footerIconContainer.setFileTypeOrName(UUID.randomUUID().toString() + "." + fileType);
}
}
use of org.javacord.core.util.FileContainer in project Javacord by BtoBastian.
the class EmbedBuilderDelegateImpl method setAuthor.
@Override
public void setAuthor(String name, String url, BufferedImage icon, String fileType) {
authorName = name;
authorUrl = url;
authorIconUrl = null;
if (icon == null) {
authorIconContainer = null;
} else {
authorIconContainer = new FileContainer(icon, fileType);
authorIconContainer.setFileTypeOrName(UUID.randomUUID().toString() + "." + fileType);
}
}
use of org.javacord.core.util.FileContainer in project Javacord by BtoBastian.
the class EmbedBuilderDelegateImpl method setThumbnail.
@Override
public void setThumbnail(InputStream thumbnail, String fileType) {
thumbnailUrl = null;
if (thumbnail == null) {
thumbnailContainer = null;
} else {
thumbnailContainer = new FileContainer(thumbnail, fileType);
thumbnailContainer.setFileTypeOrName(UUID.randomUUID().toString() + "." + fileType);
}
}
use of org.javacord.core.util.FileContainer in project Javacord by BtoBastian.
the class EmbedBuilderDelegateImpl method setFooter.
@Override
public void setFooter(String text, BufferedImage icon, String fileType) {
footerText = text;
footerIconUrl = null;
if (icon == null) {
footerIconContainer = null;
} else {
footerIconContainer = new FileContainer(icon, fileType);
footerIconContainer.setFileTypeOrName(UUID.randomUUID().toString() + "." + fileType);
}
}
Aggregations