Skip to content

Commit 47556ef

Browse files
authored
Add resolved field to ComponentInteractionData (#3400)
1 parent d58285f commit 47556ef

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/model/application/component_interaction.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,4 +343,7 @@ pub struct ComponentInteractionData {
343343
/// Type and type-specific data of this component interaction.
344344
#[serde(flatten)]
345345
pub kind: ComponentInteractionDataKind,
346+
/// The parameters and the given values. The converted objects from the given options.
347+
#[serde(default)]
348+
pub resolved: CommandDataResolved,
346349
}

src/model/application/interaction.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ use crate::model::Permissions;
2121
#[cfg_attr(feature = "typesize", derive(typesize::derive::TypeSize))]
2222
#[derive(Clone, Debug)]
2323
#[non_exhaustive]
24+
// breaking to change this on current, not sure if worth on next
25+
#[allow(clippy::large_enum_variant)]
2426
pub enum Interaction {
2527
Ping(PingInteraction),
2628
Command(CommandInteraction),

0 commit comments

Comments
 (0)