Skip to content

Commit

Permalink
reuse snapshot data
Browse files Browse the repository at this point in the history
  • Loading branch information
Lexedia committed Oct 11, 2024
1 parent 3cad106 commit 53ae04c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/src/http/managers/message_manager.dart
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,10 @@ class MessageManager extends Manager<Message> {
parseMessageInteractionMetadata,
),
thread: maybeParse(raw['thread'], client.channels.parse) as Thread?,
components: maybeParseMany(raw['components'], parseMessageComponent),
components: snapshot.components,
position: raw['position'] as int?,
roleSubscriptionData: maybeParse(raw['role_subscription_data'], parseRoleSubscriptionData),
stickers: parseMany(raw['sticker_items'] as List? ?? [], client.stickers.parseStickerItem),
stickers: snapshot.stickers,
resolved: maybeParse(raw['resolved'], (Map<String, Object?> raw) => client.interactions.parseResolvedData(raw, guildId: guildId, channelId: channelId)),
poll: maybeParse(raw['poll'], parsePoll),
call: maybeParse(raw['call'], parseMessageCall),
Expand Down

0 comments on commit 53ae04c

Please sign in to comment.