aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/utility/EmbedMaker.java
blob: 23df4ab8bd7cd555c06233b73d203ac0253c1430 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package utility;

import com.sedmelluq.discord.lavaplayer.track.AudioTrack;
import net.dv8tion.jda.api.EmbedBuilder;

import java.awt.*;

public class EmbedMaker {
    public EmbedBuilder makeNowPlayingEmbed(AudioTrack currentTrack, String position, String duration,
                                            String thumbnailUrl, String url,Color color) {
        EmbedBuilder embed = new EmbedBuilder()
                .setColor(color)
                .setTitle("Now Playing: " + currentTrack.getInfo().title)
                .setDescription(currentTrack.getInfo().author)
                .setImage(thumbnailUrl);
        embed.addField("Timestamp: ", "**[" + position + "/" + duration + "]**", false);
        embed.addField("", url, false);
        return embed;
    }

}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage