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

This commit is contained in:
Him188 2019-12-03 12:36:27 +08:00
parent b8c2bb7e63
commit 21c8fa402d

View File

@ -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