Update ED und JDA
This commit is contained in:
@ -2,14 +2,15 @@ package Shadowrun;
|
||||
|
||||
import net.dv8tion.jda.api.EmbedBuilder;
|
||||
import net.dv8tion.jda.api.JDA;
|
||||
import net.dv8tion.jda.api.entities.ChannelType;
|
||||
import net.dv8tion.jda.api.entities.channel.ChannelType;
|
||||
import net.dv8tion.jda.api.entities.Member;
|
||||
import net.dv8tion.jda.api.entities.MessageChannel;
|
||||
import net.dv8tion.jda.api.entities.channel.ChannelType;
|
||||
import net.dv8tion.jda.api.entities.User;
|
||||
import net.dv8tion.jda.api.entities.channel.middleman.MessageChannel;
|
||||
import net.dv8tion.jda.api.events.message.MessageReceivedEvent;
|
||||
import net.dv8tion.jda.api.events.message.react.MessageReactionAddEvent;
|
||||
import net.dv8tion.jda.api.hooks.ListenerAdapter;
|
||||
import net.dv8tion.jda.api.requests.restaction.MessageAction;
|
||||
import net.dv8tion.jda.api.requests.restaction.*;
|
||||
|
||||
|
||||
import java.awt.*;
|
||||
@ -186,7 +187,7 @@ public class dice extends ListenerAdapter {
|
||||
float pro = verteilung3[i]*100f/rounds;
|
||||
test.addField(Integer.toString(i+1), Integer.toString(verteilung3[i]) + " - " + String.format("%.2f", pro) + "%", true);
|
||||
}
|
||||
event.getChannel().sendMessage(test.build()).queue();
|
||||
event.getChannel().sendMessageEmbeds(test.build()).queue();
|
||||
|
||||
}
|
||||
catch (NumberFormatException e) {
|
||||
@ -407,7 +408,7 @@ public class dice extends ListenerAdapter {
|
||||
long[] messageId = new long[1];
|
||||
boolean finalEdge = edge;
|
||||
String finalRollData = rollString.toString();
|
||||
channel.sendMessage(outputBox.build()).queue(message1 -> {
|
||||
channel.sendMessageEmbeds(outputBox.build()).queue(message1 -> {
|
||||
if(!finalEdge && type == 0) {
|
||||
//message1.addReaction("sr:517528156014510111").queue();
|
||||
}
|
||||
@ -539,7 +540,7 @@ public class dice extends ListenerAdapter {
|
||||
|
||||
outputBox.setDescription(String.valueOf(iniBase) + " + (" + result.toString().trim().replace(" ", "+") + ")");
|
||||
|
||||
event.getChannel().sendMessage(outputBox.build()).queue();
|
||||
event.getChannel().sendMessageEmbeds(outputBox.build()).queue();
|
||||
|
||||
}
|
||||
catch (NumberFormatException e) {
|
||||
|
||||
Reference in New Issue
Block a user