Search in sources :

Example 1 with IGroupChannel

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();
}
Also used : IGroupChannel(io.discloader.discloader.entity.channel.IGroupChannel) Attachment(io.discloader.discloader.entity.sendable.Attachment)

Aggregations

IGroupChannel (io.discloader.discloader.entity.channel.IGroupChannel)1 Attachment (io.discloader.discloader.entity.sendable.Attachment)1