@@ -588,15 +588,6 @@ impl Message {
588
588
self . id . link ( self . channel_id , self . guild_id )
589
589
}
590
590
591
- /// Same as [`Self::link`] but tries to find the [`GuildId`] if Discord does not provide it.
592
- ///
593
- /// [`guild_id`]: Self::guild_id
594
- #[ allow( deprecated) ]
595
- #[ deprecated = "Use Self::link if Message was recieved via an event, otherwise use MessageId::link to provide the guild_id yourself." ]
596
- pub async fn link_ensured ( & self , cache_http : impl CacheHttp ) -> String {
597
- self . id . link_ensured ( cache_http, self . channel_id , self . guild_id ) . await
598
- }
599
-
600
591
/// Returns a builder which can be awaited to obtain a reaction or stream of reactions on this
601
592
/// message.
602
593
#[ cfg( feature = "collector" ) ]
@@ -963,27 +954,6 @@ impl MessageId {
963
954
format ! ( "https://discord.com/channels/@me/{channel_id}/{self}" )
964
955
}
965
956
}
966
-
967
- /// Same as [`Self::link`] but tries to find the [`GuildId`] if it is not provided.
968
- #[ deprecated = "Use GuildChannel::guild_id if you have no GuildId" ]
969
- pub async fn link_ensured (
970
- & self ,
971
- cache_http : impl CacheHttp ,
972
- channel_id : ChannelId ,
973
- mut guild_id : Option < GuildId > ,
974
- ) -> String {
975
- if guild_id. is_none ( ) {
976
- let found_channel = channel_id. to_channel ( cache_http) . await ;
977
-
978
- if let Ok ( channel) = found_channel {
979
- if let Some ( c) = channel. guild ( ) {
980
- guild_id = Some ( c. guild_id ) ;
981
- }
982
- }
983
- }
984
-
985
- self . link ( channel_id, guild_id)
986
- }
987
957
}
988
958
989
959
#[ cfg_attr( feature = "typesize" , derive( typesize:: derive:: TypeSize ) ) ]
0 commit comments