From ed39bd8d68515aef638cc885817a3e83343edaae Mon Sep 17 00:00:00 2001 From: xiaoACE <94223505+xiaoACE6716@users.noreply.github.com> Date: Mon, 15 Apr 2024 23:01:33 +0800 Subject: [PATCH] Add Message related contents to VoiceChannel (#71) * Add Message related contents to VoiceChannel * Bring getTextChannelMessage back --- pom.xml | 9 +- .../java/snw/kookbc/impl/HttpAPIImpl.java | 31 +++++ src/main/java/snw/kookbc/impl/UnsafeImpl.java | 8 ++ .../impl/entity/builder/EntityBuilder.java | 4 +- .../impl/entity/builder/MessageBuilder.java | 20 +-- .../channel/NonCategoryChannelImpl.java | 68 +++++++++- .../impl/entity/channel/TextChannelImpl.java | 64 +-------- .../impl/entity/channel/VoiceChannelImpl.java | 6 +- .../internal/UserClickButtonListener.java | 2 +- .../impl/message/ChannelMessageImpl.java | 124 ++++++++++++++++++ .../impl/message/TextChannelMessageImpl.java | 104 +-------------- .../impl/message/VoiceChannelMessageImpl.java | 23 ++++ .../snw/kookbc/impl/network/ListenerImpl.java | 3 +- ...ChannelMessageDeleteEventDeserializer.java | 2 +- .../ChannelMessageEventDeserializer.java | 10 +- .../UserClickButtonEventDeserializer.java | 3 +- .../kookbc/impl/storage/EntityStorage.java | 1 + 17 files changed, 294 insertions(+), 188 deletions(-) create mode 100644 src/main/java/snw/kookbc/impl/message/ChannelMessageImpl.java create mode 100644 src/main/java/snw/kookbc/impl/message/VoiceChannelMessageImpl.java diff --git a/pom.xml b/pom.xml index 81b84109..5214729a 100644 --- a/pom.xml +++ b/pom.xml @@ -189,10 +189,15 @@ + + + + + - com.github.SNWCreations + com.github.xiaoACE6716 JKook - ${jkook.version} + 95ce364469