Browse Source

Messaging-Methoden angepasst

pull/2/head
yl60lepu 4 years ago
parent
commit
73d3468a11
1 changed files with 0 additions and 2 deletions
  1. +0
    -2
      app/src/main/java/de/yannicpunktdee/yoshibot/command/YoshiCommand.java

+ 0
- 2
app/src/main/java/de/yannicpunktdee/yoshibot/command/YoshiCommand.java View File

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


Loading…
Cancel
Save