use of io.discloader.discloader.entity.channel.IGroupChannel in project DiscLoader by R3alCl0ud.
the class GroupChannel method sendMessage.
@Override
public CompletableFuture<IMessage> sendMessage(String content, RichEmbed embed, File file) {
Attachment attachment = null;
if (embed != null && embed.getThumbnail() != null && embed.getThumbnail().file != null) {
file = embed.getThumbnail().file;
embed.getThumbnail().file = null;
attachment = new Attachment(file.getName());
}
return new SendMessage<IGroupChannel>(this, content, embed, attachment, file).execute();
}
Aggregations