feat(plugins): Added message read/update methods to the Channel API. (#6650)

This PR adds methods to read and update messages in a channel. Specifically, it adds:
 - message_snapshot
 - last_message
 - replace_message/replace_message_at
 - clear_messages
 - find_message_by_id
 - has_messages
 - count_messages


Reviewed-by: Mm2PL <mm2pl+gh@kotmisia.pl>
This commit is contained in:
Nerixyz
2026-01-21 00:46:39 +01:00
committed by GitHub
parent 281d5be3fd
commit d21b3c6e38
12 changed files with 498 additions and 1 deletions
+13
View File
@@ -1579,6 +1579,19 @@ TEST_P(PluginMessageTest, Run)
INSTANTIATE_TEST_SUITE_P(PluginMessage, PluginMessageTest,
testing::ValuesIn(discoverLuaTests("message")));
class PluginChannelTest : public PluginTest,
public ::testing::WithParamInterface<QString>
{
};
TEST_P(PluginChannelTest, Run)
{
this->configure();
runLuaTest("channel", GetParam(), *this->lua);
}
INSTANTIATE_TEST_SUITE_P(PluginChannel, PluginChannelTest,
testing::ValuesIn(discoverLuaTests("channel")));
// verify that all snapshots are included
TEST(PluginMessageConstructionTest, Integrity)
{