|
@ -58,14 +58,12 @@ public abstract class YoshiCommand { |
|
|
|
|
|
|
|
|
protected final void sendMessage(String message){ |
|
|
protected final void sendMessage(String message){ |
|
|
EmbedBuilder eb = new EmbedBuilder(); |
|
|
EmbedBuilder eb = new EmbedBuilder(); |
|
|
eb.setTitle("INFO"); |
|
|
|
|
|
eb.setColor(Color.pink); |
|
|
eb.setColor(Color.pink); |
|
|
eb.setDescription(message); |
|
|
eb.setDescription(message); |
|
|
context.getEvent().getTextChannel().sendMessage(eb.build()).queue(); |
|
|
context.getEvent().getTextChannel().sendMessage(eb.build()).queue(); |
|
|
} |
|
|
} |
|
|
protected final void sendFile(File file, String description){ |
|
|
protected final void sendFile(File file, String description){ |
|
|
EmbedBuilder eb = new EmbedBuilder(); |
|
|
EmbedBuilder eb = new EmbedBuilder(); |
|
|
eb.setTitle("INFO"); |
|
|
|
|
|
eb.setColor(Color.pink); |
|
|
eb.setColor(Color.pink); |
|
|
if(description != null) eb.setDescription(description); |
|
|
if(description != null) eb.setDescription(description); |
|
|
context.getEvent().getTextChannel().sendFile(file).queue(); |
|
|
context.getEvent().getTextChannel().sendFile(file).queue(); |
|
|