mirror of
https://github.com/mamoe/mirai.git
synced 2025-02-02 12:50:16 +08:00
Remove unnecessary inline
This commit is contained in:
parent
a85beff482
commit
d78d719caa
@ -92,11 +92,11 @@ abstract class MessagePacketBase<TSender : QQ, TSubject : Contact> : EventPacket
|
|||||||
suspend inline fun Image.download(): ByteReadPacket = getLink().download()
|
suspend inline fun Image.download(): ByteReadPacket = getLink().download()
|
||||||
// endregion
|
// endregion
|
||||||
|
|
||||||
inline fun At.qq(): QQ = bot.getQQ(this.target)
|
fun At.qq(): QQ = bot.getQQ(this.target)
|
||||||
|
|
||||||
inline fun Int.qq(): QQ = bot.getQQ(this.coerceAtLeastOrFail(0).toUInt())
|
fun Int.qq(): QQ = bot.getQQ(this.coerceAtLeastOrFail(0).toUInt())
|
||||||
inline fun Long.qq(): QQ = bot.getQQ(this.coerceAtLeastOrFail(0))
|
fun Long.qq(): QQ = bot.getQQ(this.coerceAtLeastOrFail(0))
|
||||||
inline fun UInt.qq(): QQ = bot.getQQ(this)
|
fun UInt.qq(): QQ = bot.getQQ(this)
|
||||||
|
|
||||||
suspend inline fun Int.group(): Group = bot.getGroup(this.coerceAtLeastOrFail(0).toUInt())
|
suspend inline fun Int.group(): Group = bot.getGroup(this.coerceAtLeastOrFail(0).toUInt())
|
||||||
suspend inline fun Long.group(): Group = bot.getGroup(this.coerceAtLeastOrFail(0))
|
suspend inline fun Long.group(): Group = bot.getGroup(this.coerceAtLeastOrFail(0))
|
||||||
|
Loading…
Reference in New Issue
Block a user