@@ -18,7 +18,6 @@ import love.forte.simbot.FragileSimbotApi
1818import love.forte.simbot.application.*
1919import love.forte.simbot.bot.OriginBotManager
2020import love.forte.simbot.component.mirai.MiraiComponent
21- import org.jetbrains.annotations.ApiStatus
2221
2322
2423/* *
@@ -134,41 +133,6 @@ public inline fun BotRegistrar.miraiIfSupport(block: MiraiBotManager.() -> Unit)
134133
135134
136135// region manager获取扩展
137- /* *
138- * 通过 [OriginBotManager] 获取所有的 [MiraiBotManager]。
139- *
140- * @suppress see [miraiBotManagers]
141- */
142- @FragileSimbotApi
143- @Suppress(" NOTHING_TO_INLINE" )
144- @Deprecated(" Use miraiBotManagers()" , ReplaceWith (" miraiBotManagers()" ), level = DeprecationLevel .ERROR )
145- public inline fun miraiComponents (): List <MiraiBotManager > = miraiBotManagers()
146-
147- /* *
148- * 从 [OriginBotManager] 获取第一个 [MiraiComponent]。
149- *
150- * @throws [NoSuchElementException] 如果找不到的话
151- *
152- * @suppress see [firstMiraiBotManager]
153- */
154- @FragileSimbotApi
155- @Suppress(" NOTHING_TO_INLINE" )
156- @Deprecated(" Use firstMiraiBotManager()" , ReplaceWith (" firstMiraiBotManager()" ), level = DeprecationLevel .ERROR )
157- @ApiStatus.ScheduledForRemoval (inVersion = " 3.0.0.0" )
158- public inline fun firstMiraiComponent (): MiraiBotManager = firstMiraiBotManager()
159-
160- /* *
161- * 从 [OriginBotManager] 获取第一个 [MiraiComponent]。
162- *
163- * 如果找不到则返回null。
164- *
165- * @suppress see [firstMiraiBotManagerOrNull]
166- */
167- @FragileSimbotApi
168- @Suppress(" NOTHING_TO_INLINE" )
169- @Deprecated(" Use firstMiraiBotManagerOrNull()" , ReplaceWith (" firstMiraiBotManagerOrNull()" ), level = DeprecationLevel .ERROR )
170- @ApiStatus.ScheduledForRemoval (inVersion = " 3.0.0.0" )
171- public inline fun firstMiraiComponentOrNull (): MiraiBotManager ? = firstMiraiBotManagerOrNull()
172136
173137/* *
174138 * 通过 [OriginBotManager] 获取所有的 [MiraiBotManager]。
0 commit comments