From bb9caa28a38ad9f8c7df44c6874220066adcc287 Mon Sep 17 00:00:00 2001 From: YoyoNow Date: Fri, 9 Jan 2026 09:57:18 +0100 Subject: [PATCH] Check why StaticMessageChannel does not work? --- .../src/de/steamwar/velocitycore/discord/DiscordBot.java | 1 + .../velocitycore/discord/channels/StaticMessageChannel.java | 1 + 2 files changed, 2 insertions(+) diff --git a/VelocityCore/src/de/steamwar/velocitycore/discord/DiscordBot.java b/VelocityCore/src/de/steamwar/velocitycore/discord/DiscordBot.java index 40dee4b1..cf56ea58 100644 --- a/VelocityCore/src/de/steamwar/velocitycore/discord/DiscordBot.java +++ b/VelocityCore/src/de/steamwar/velocitycore/discord/DiscordBot.java @@ -159,6 +159,7 @@ public class DiscordBot { if (!list.isEmpty()) { actionRows.add(ActionRow.of(list.toArray(Button[]::new))); } + System.out.println("Initializing Ticket channel"); new StaticMessageChannel(config.channel("ticket"), () -> new MessageCreateBuilder() .setEmbeds(new EmbedBuilder() .setDescription("Hier kannst du Tickets öffnen, welche nur von dir und Teammitgliedern eingesehen werden können.") diff --git a/VelocityCore/src/de/steamwar/velocitycore/discord/channels/StaticMessageChannel.java b/VelocityCore/src/de/steamwar/velocitycore/discord/channels/StaticMessageChannel.java index a3248635..4c8d832b 100644 --- a/VelocityCore/src/de/steamwar/velocitycore/discord/channels/StaticMessageChannel.java +++ b/VelocityCore/src/de/steamwar/velocitycore/discord/channels/StaticMessageChannel.java @@ -62,6 +62,7 @@ public class StaticMessageChannel extends DiscordChannel { } private void init() { + System.out.println("Initializing " + getChannel()); if(getChannel().getLatestMessageIdLong() != 0) message = getChannel().getIterableHistory().complete().stream().filter(m -> m.getAuthor().isBot()).findFirst().orElse(null);