mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-09 01:30:17 +08:00
Add At.qq to provide a quick way to get the target
This commit is contained in:
parent
b8c2bb7e63
commit
21c8fa402d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user