Archiviert
1
0

Fix TeamCommand

Dieser Commit ist enthalten in:
yoyosource 2021-07-30 13:02:26 +02:00
Ursprung 36e303cd44
Commit 9d69d13541

Datei anzeigen

@ -48,7 +48,6 @@ public class TeamCommand extends BasicDiscordCommand {
if (steamwarUser == null) { if (steamwarUser == null) {
return; return;
} }
System.out.println(event.getName() + " " + event.getSubcommandName() + " " + event.getOptions());
if (event.getSubcommandName() != null) { if (event.getSubcommandName() != null) {
switch (event.getSubcommandName()) { switch (event.getSubcommandName()) {
@ -76,8 +75,10 @@ public class TeamCommand extends BasicDiscordCommand {
embedBuilder.addField("Leader", team.getMembers().stream().map(SteamwarUser::get).filter(SteamwarUser::isLeader).map(SteamwarUser::getUserName).collect(Collectors.joining(" ")), true); embedBuilder.addField("Leader", team.getMembers().stream().map(SteamwarUser::get).filter(SteamwarUser::isLeader).map(SteamwarUser::getUserName).collect(Collectors.joining(" ")), true);
embedBuilder.addField("Member", team.getMembers().stream().map(SteamwarUser::get).filter(user -> !user.isLeader()).map(SteamwarUser::getUserName).collect(Collectors.joining(" ")), true); embedBuilder.addField("Member", team.getMembers().stream().map(SteamwarUser::get).filter(user -> !user.isLeader()).map(SteamwarUser::getUserName).collect(Collectors.joining(" ")), true);
embedBuilder.addField("Events", TeamTeilnahme.getEvents(team.getTeamId()).stream().map(Event::getEventName).collect(Collectors.joining(" ")), true); embedBuilder.addField("Events", TeamTeilnahme.getEvents(team.getTeamId()).stream().map(Event::getEventName).collect(Collectors.joining(" ")), true);
event.replyEmbeds(embedBuilder.build()).setEphemeral(true).complete();
return; return;
default: default:
event.reply("Unbekannter Befehl").setEphemeral(true).complete();
return; return;
} }
} }