feat: add option to send message with missing replies

Signed-off-by: ShaksterNano <54268387+shaksternano@users.noreply.github.com>
This commit is contained in:
ShaksterNano
2025-03-31 22:26:30 +01:00
committed by Zomatree
parent 62204fe50b
commit 2f3d1f0c7e
4 changed files with 203 additions and 7 deletions

View File

@@ -122,6 +122,22 @@ impl TestHarness {
.expect("Failed to create test server")
}
pub async fn new_channel(&self, server: &Server) -> Channel {
Channel::create_server_channel(
&self.db,
&mut server.clone(),
v0::DataCreateServerChannel {
channel_type: v0::LegacyServerChannelType::Text,
name: "Test Channel".to_string(),
description: None,
nsfw: Some(false),
},
true,
)
.await
.expect("Failed to make test channel")
}
pub async fn new_message(
&self,
user: &User,