style: lint check
This commit is contained in:
1 parent
38bd7ecc7b
commit
6f49db3e44
10 files changed
+72
-60
No files matched your search
@@ -20,7 +20,7 @@ export default class SetGroupAddRequest extends OneBotAction<Payload, null> {
|
||||
const approve = payload.approve?.toString() !== 'false';
|
||||
const reason = payload.reason ?? ' ';
|
||||
|
||||
let notify = await this.findNotify(flag);
|
||||
const notify = await this.findNotify(flag);
|
||||
if (!notify) {
|
||||
throw new Error('No such request');
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ export default class SetGroupBan extends OneBotAction<Payload, null> {
|
||||
const uid = await this.core.apis.UserApi.getUidByUinV2(payload.user_id.toString());
|
||||
if (!uid) throw new Error('uid error');
|
||||
await this.core.apis.GroupApi.banMember(payload.group_id.toString(),
|
||||
[{ uid: uid, timeStamp: +payload.duration}]);
|
||||
[{ uid: uid, timeStamp: +payload.duration }]);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user