File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,9 @@ use crate::constants;
1414#[ cfg( feature = "model" ) ]
1515use crate :: http:: { CacheHttp , Http } ;
1616use crate :: model:: prelude:: * ;
17- use crate :: model:: utils:: { StrOrInt , deserialize_components, discord_colours} ;
17+ #[ cfg( not( feature = "unstable" ) ) ]
18+ use crate :: model:: utils:: deserialize_components;
19+ use crate :: model:: utils:: { StrOrInt , discord_colours} ;
1820
1921/// A representation of a message over a guild's text channel, a group, or a private channel.
2022///
Original file line number Diff line number Diff line change @@ -242,6 +242,7 @@ where
242242
243243// Custom deserialize function to deserialize components safely without knocking the whole message
244244// out when new components are found but not supported.
245+ #[ cfg( not( feature = "unstable" ) ) ]
245246pub fn deserialize_components < ' de , D > ( deserializer : D ) -> Result < FixedArray < ActionRow > , D :: Error >
246247where
247248 D : Deserializer < ' de > ,
You can’t perform that action at this time.
0 commit comments