Commit 21c8fa40 authored by Him188's avatar Him188

Add At.qq to provide a quick way to get the target

parent b8c2bb7e
......@@ -91,6 +91,8 @@ abstract class MessagePacketBase<TSubject : Contact> : EventPacket, BotEvent() {
suspend inline fun Image.downloadAsByteArray(): ByteArray = getLink().downloadAsByteArray()
suspend inline fun Image.download(): ByteReadPacket = getLink().download()
// endregion
suspend inline fun At.qq(): QQ = bot.getQQ(this.target)
}
// region group message
......
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