mirror of
https://github.com/mamoe/mirai.git
synced 2025-04-24 20:43:33 +08:00
Add common UserOrBot.nick
This commit is contained in:
parent
896b9ac56c
commit
146433d56f
binary-compatibility-validator
mirai-core-api/src/commonMain/kotlin
@ -589,6 +589,7 @@ public final class net/mamoe/mirai/contact/UserKt {
|
||||
}
|
||||
|
||||
public abstract interface class net/mamoe/mirai/contact/UserOrBot : net/mamoe/mirai/contact/ContactOrBot {
|
||||
public abstract fun getNick ()Ljava/lang/String;
|
||||
public abstract fun nudge ()Lnet/mamoe/mirai/message/action/Nudge;
|
||||
}
|
||||
|
||||
|
@ -589,6 +589,7 @@ public final class net/mamoe/mirai/contact/UserKt {
|
||||
}
|
||||
|
||||
public abstract interface class net/mamoe/mirai/contact/UserOrBot : net/mamoe/mirai/contact/ContactOrBot {
|
||||
public abstract fun getNick ()Ljava/lang/String;
|
||||
public abstract fun nudge ()Lnet/mamoe/mirai/message/action/Nudge;
|
||||
}
|
||||
|
||||
|
@ -63,7 +63,7 @@ public interface Bot : CoroutineScope, ContactOrBot, UserOrBot {
|
||||
/**
|
||||
* 昵称
|
||||
*/
|
||||
public val nick: String
|
||||
public override val nick: String
|
||||
|
||||
/**
|
||||
* 日志记录器
|
||||
|
@ -46,7 +46,7 @@ public interface User : Contact, UserOrBot, CoroutineScope {
|
||||
/**
|
||||
* 昵称
|
||||
*/
|
||||
public val nick: String
|
||||
public override val nick: String
|
||||
|
||||
/**
|
||||
* 备注信息
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2019-2020 Mamoe Technologies and contributors.
|
||||
* Copyright 2019-2021 Mamoe Technologies and contributors.
|
||||
*
|
||||
* 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version 3 许可证的约束, 可以在以下链接找到该许可证.
|
||||
* Use of this source code is governed by the GNU AGPLv3 license that can be found through the following link.
|
||||
@ -19,6 +19,12 @@ import net.mamoe.mirai.message.action.Nudge
|
||||
* @see ContactOrBot
|
||||
*/
|
||||
public interface UserOrBot : ContactOrBot {
|
||||
/**
|
||||
* 昵称
|
||||
* @since 2.6
|
||||
*/
|
||||
public val nick: String
|
||||
|
||||
/**
|
||||
* 创建一个 "戳一戳" 消息
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user