forked from jmug/stoatchat
feat: reintroduce permission checks for send
This commit is contained in:
@@ -268,15 +268,16 @@ pub struct DataMessageSend {
|
||||
#[validate(length(min = 0, max = 2000))]
|
||||
pub content: Option<String>,
|
||||
/// Attachments to include in message
|
||||
#[validate(length(min = 1, max = 128))]
|
||||
pub attachments: Option<Vec<String>>,
|
||||
#[serde(default)]
|
||||
pub attachments: Vec<String>,
|
||||
/// Messages to reply to
|
||||
pub replies: Option<Vec<Reply>>,
|
||||
/// Embeds to include in message
|
||||
///
|
||||
/// Text embed content contributes to the content length cap
|
||||
#[serde(default)]
|
||||
#[validate(length(min = 1, max = 10))]
|
||||
pub embeds: Option<Vec<SendableEmbed>>,
|
||||
pub embeds: Vec<SendableEmbed>,
|
||||
/// Masquerade to apply to this message
|
||||
#[validate]
|
||||
pub masquerade: Option<Masquerade>,
|
||||
|
||||
Reference in New Issue
Block a user