Commit 5d303e57 authored by Him188's avatar Him188

Let Contact extends CoroutineScope

parent e0964eaf
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
package net.mamoe.mirai.contact package net.mamoe.mirai.contact
import kotlinx.coroutines.CoroutineScope
import net.mamoe.mirai.Bot import net.mamoe.mirai.Bot
import net.mamoe.mirai.message.data.* import net.mamoe.mirai.message.data.*
import net.mamoe.mirai.utils.ExternalImage import net.mamoe.mirai.utils.ExternalImage
...@@ -16,7 +17,7 @@ import kotlin.contracts.contract ...@@ -16,7 +17,7 @@ import kotlin.contracts.contract
* *
* @author Him188moe * @author Him188moe
*/ */
interface Contact { interface Contact : CoroutineScope {
/** /**
* 这个联系人所属 [Bot] * 这个联系人所属 [Bot]
*/ */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment