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