forked from SteamWar/SteamWar
Check why StaticMessageChannel does not work?
This commit is contained in:
+1
-3
@@ -63,9 +63,7 @@ public class StaticMessageChannel extends DiscordChannel {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void init() {
|
private void init() {
|
||||||
if(getChannel().getLatestMessageIdLong() != 0)
|
message = getChannel().getIterableHistory().onErrorMap(throwable -> Collections.emptyList()).complete().stream().filter(m -> m.getAuthor().isBot()).findFirst().orElse(null);
|
||||||
message = getChannel().getIterableHistory().onErrorMap(throwable -> Collections.emptyList()).complete().stream().filter(m -> m.getAuthor().isBot()).findFirst().orElse(null);
|
|
||||||
|
|
||||||
VelocityCore.schedule(this::update);
|
VelocityCore.schedule(this::update);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user