changed how discord sends msgs

This commit is contained in:
christian 2021-12-04 01:59:09 +01:00
parent d7ed45922e
commit d6d15e87e0

View File

@ -69,7 +69,8 @@ public class DoStuff {
false);
if (!ResponseStr.isEmpty()) {
System.out.print("\nResponseStr3: " + ResponseStr + "\n");
event.getMessage().getChannel().block().createMessage(ResponseStr).block();
//event.getMessage().getChannel().block().createMessage(ResponseStr).block();
event.getMessage().getChannel().flatMap(chan -> chan.createMessage(ResponseStr)).subscribe();
}
}
}