mirror of
https://github.com/mamoe/mirai.git
synced 2025-03-13 06:30:13 +08:00
Remove being shadowed extensions
This commit is contained in:
parent
7e1a6c8be7
commit
f75d597c29
@ -132,12 +132,4 @@ inline fun Contact.recallIn(
|
||||
source: MessageSource,
|
||||
millis: Long,
|
||||
coroutineContext: CoroutineContext = EmptyCoroutineContext
|
||||
): Job = this.bot.recallIn(source, millis, coroutineContext)
|
||||
|
||||
/**
|
||||
* @see Contact.sendMessage
|
||||
*/
|
||||
@Suppress("UNCHECKED_CAST")
|
||||
@JvmSynthetic
|
||||
suspend inline fun <C : Contact> C.sendMessage(plain: String): MessageReceipt<C> =
|
||||
sendMessage(plain.toMessage()) as? MessageReceipt<C> ?: error("Internal class cast mistake")
|
||||
): Job = this.bot.recallIn(source, millis, coroutineContext)
|
Loading…
Reference in New Issue
Block a user