Try: Derive FromRow, Type for DefaultReaction

This commit is contained in:
bitfl0wer 2024-08-20 15:41:36 +02:00
parent 3fed76bb99
commit 28154c3c53
No known key found for this signature in database
GPG Key ID: 8D90CA11485CD14D
1 changed files with 2 additions and 0 deletions

View File

@ -317,6 +317,8 @@ impl PartialEq for ThreadMember {
///
/// # Reference
/// See <https://discord-userdoccers.vercel.app/resources/channel#default-reaction-object>
#[cfg_attr(feature = "sqlx", derive(sqlx::FromRow, sqlx::Type))]
#[cfg_attr(feature = "sqlx", sqlx(type_name = "interface_type"))]
pub struct DefaultReaction {
#[serde(default)]
pub emoji_id: Option<Snowflake>,