mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2024-11-21 09:36:35 +00:00
修复<get_group_at_all_remain>接口总是返回<Error: atInfo not found>
This commit is contained in:
parent
d885bab426
commit
95a00d7f35
@ -17,8 +17,8 @@ export class GoCQHTTPGetGroupAtAllRemain extends BaseAction<Payload, any> {
|
||||
|
||||
async _handle(payload: Payload) {
|
||||
const ret = await this.core.apis.GroupApi.getGroupRemainAtTimes(payload.group_id.toString());
|
||||
if (!ret.atInfo || ret.result !== 0) {
|
||||
throw new Error('atInfo not found');
|
||||
if (ret.errCode !== 0) {
|
||||
throw new Error('Not in the group');
|
||||
}
|
||||
const data = {
|
||||
can_at_all: ret.atInfo.canAtAll,
|
||||
|
Loading…
x
Reference in New Issue
Block a user