public abstract class GroupMsgEvent extends MsgEvent
限定符和类型 | 字段和说明 |
---|---|
string |
fromAnonymousToken |
long |
fromGroup |
fromQQ, message, messageRAW, msgId
构造器和说明 |
---|
GroupMsgEvent() |
限定符和类型 | 方法和说明 |
---|---|
abstract AnonymousInfo |
getFromAnonymousInfo()
获取匿名者信息
|
abstract GroupMemberInfo |
getGroupMemberInfo(boolean 不使用缓存)
取群成员信息 (默认使用缓存)
|
abstract vector<GroupMemberInfo> |
getGroupMemberList()
取群成员列表
|
abstract boolean |
isAnonymous()
判断是否匿名
|
abstract boolean |
setGroupAdmin(boolean isAdmin)
置群管理员
|
abstract boolean |
setGroupAnonymous(boolean 开启匿名)
置群匿名设置
|
abstract boolean |
setGroupBan(long banTime)
置群员禁言,自动判断是否是匿名.
|
abstract boolean |
setGroupCard(string 新名片_昵称)
置群成员名片
|
abstract boolean |
setGroupKick(boolean refusedAddAgain)
置群员移除
|
abstract boolean |
setGroupLeave(boolean 是否解散)
置群退出
|
abstract boolean |
setGroupSpecialTitle(string 专属头衔,
long 过期时间)
置群成员专属头衔
|
abstract boolean |
setGroupWholeBan(boolean 开启禁言)
置全群禁言
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
message_block, message_ignore
public long fromGroup
public string fromAnonymousToken
public abstract boolean isAnonymous()
public abstract AnonymousInfo getFromAnonymousInfo()
public abstract boolean setGroupKick(boolean refusedAddAgain)
refusedAddAgain
- 是否不再接收入群信息API.setGroupKick(long, long, boolean)
public abstract boolean setGroupBan(long banTime)
banTime
- 禁言时间,可省略,默认为60API.setGroupBan(long, long, long)
,
API.setGroupAnonymousBan(long, c.string, long)
public abstract boolean setGroupAdmin(boolean isAdmin)
isAdmin
- 可省略,默认为取消管理API.setGroupAdmin(long, long, boolean)
public abstract boolean setGroupSpecialTitle(string 专属头衔, long 过期时间)
专属头衔
- 专属头衔过期时间
- 单位(秒),可省略,默认永久(-1)API.setGroupSpecialTitle(long, long, c.string, long)
public abstract boolean setGroupWholeBan(boolean 开启禁言)
开启禁言
- 可省略,默认为禁言,假为解禁API.setGroupWholeBan(long, boolean)
public abstract boolean setGroupAnonymous(boolean 开启匿名)
开启匿名
- API.setGroupAnonymous(long, boolean)
public abstract boolean setGroupCard(string 新名片_昵称)
新名片_昵称
- 新名片_昵称API.setGroupCard(long, long, c.string)
public abstract boolean setGroupLeave(boolean 是否解散)
是否解散
- 群主不可退出,退出既为解散群API.setGroupLeave(long, boolean)
public abstract GroupMemberInfo getGroupMemberInfo(boolean 不使用缓存)
不使用缓存
- 强制获取最新信息,多次调用可能会冻结QQ,默认为假API.getGroupMemberInfo(long, long, boolean)
public abstract vector<GroupMemberInfo> getGroupMemberList()
API.getGroupMemberList(long)