chore: ensure restrict_reactions is used in conjunction with reactions list

This commit is contained in:
Paul Makles
2023-01-20 18:06:44 +00:00
parent 7a6bd70dcd
commit e0b918771d
4 changed files with 35 additions and 11 deletions

View File

@@ -98,6 +98,8 @@ pub struct Interactions {
#[serde(skip_serializing_if = "Option::is_none", default)]
pub reactions: Option<IndexSet<String>>,
/// Whether reactions should be restricted to the given list
///
/// Can only be set to true if reactions list is of at least length 1
#[serde(skip_serializing_if = "if_false", default)]
pub restrict_reactions: bool,
}