mirror of
https://github.com/mamoe/mirai.git
synced 2025-02-12 18:50:20 +08:00
Add shortcut Image()
This commit is contained in:
parent
b25729ead7
commit
2fed87a1b9
@ -7,6 +7,8 @@ import net.mamoe.mirai.contact.sendMessage
|
||||
import net.mamoe.mirai.utils.ExternalImage
|
||||
|
||||
|
||||
fun Image(id: String) = Image(ImageId(id))
|
||||
|
||||
/**
|
||||
* 图片消息. 在发送时将会区分群图片和好友图片发送.
|
||||
* 由接收消息时构建, 可直接发送
|
||||
|
Loading…
Reference in New Issue
Block a user