如何获取群成员的头衔?(群主设置的专属头衔) #53
Answered
by
ForteScarlet
hxtscjk17373
asked this question in
Q&A
-
Beta Was this translation helpful? Give feedback.
Answered by
ForteScarlet
Jan 2, 2023
Replies: 1 comment 1 reply
-
see component-mirai#61 Member member = group.getMember(...);
if (member instanceof MiraiMember miraiMember) {
String title = miraiMember.getSpecialTitle();
miraiMember.setSpecialTitle(...);
} |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
ForteScarlet
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
see component-mirai#61
监听Mirai组件事件或判断群成员对象
Member
为MiraiMember
类型时可使用相关操作。