mirror of
https://github.com/mamoe/mirai.git
synced 2025-03-10 20:20:08 +08:00
Override toString
This commit is contained in:
parent
13e8443012
commit
c6eef97c98
@ -95,6 +95,10 @@ class Group internal constructor(bot: Bot, val groupId: GroupId) : Contact(bot,
|
||||
bot.sendPacket(SendGroupMessagePacket(bot.qqAccount, internalId, bot.sessionKey, message))
|
||||
}
|
||||
|
||||
override fun toString(): String {
|
||||
return "Group(${this.id})"
|
||||
}
|
||||
|
||||
companion object
|
||||
}
|
||||
|
||||
@ -145,6 +149,10 @@ open class QQ internal constructor(bot: Bot, id: UInt) : Contact(bot, id) {
|
||||
suspend fun QQ.addAsFriend() {
|
||||
|
||||
}
|
||||
|
||||
override fun toString(): String {
|
||||
return "QQ(${this.id})"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -155,6 +163,10 @@ class Member internal constructor(bot: Bot, id: UInt, val group: Group) : QQ(bot
|
||||
init {
|
||||
TODO("Group member implementation")
|
||||
}
|
||||
|
||||
override fun toString(): String {
|
||||
return "Member(${this.id})"
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user