forked from SteamWar/SteamWar
Hotfix DiscordBot
This commit is contained in:
@@ -146,7 +146,10 @@ public class DiscordBot {
|
||||
List<Button> list = new ArrayList<>();
|
||||
for (DiscordTicketType type : DiscordTicketType.values()) {
|
||||
list.add(type.toButton());
|
||||
if (list.size() > 3) actionRows.add(ActionRow.of(list.toArray(Button[]::new)));
|
||||
if (list.size() > 3) {
|
||||
actionRows.add(ActionRow.of(list.toArray(Button[]::new)));
|
||||
list.clear();
|
||||
}
|
||||
}
|
||||
new StaticMessageChannel(config.channel("ticket"), () -> new MessageCreateBuilder()
|
||||
.setEmbeds(new EmbedBuilder()
|
||||
|
||||
Reference in New Issue
Block a user