Skip to content

Commit

Permalink
feat(admin): support group.assign @id
Browse files Browse the repository at this point in the history
  • Loading branch information
shigma committed Oct 11, 2020
1 parent 99e6655 commit 9211080
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/plugin-common/src/admin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ export function apply(ctx: Context) {
ctx.command('group.assign [bot]', '受理者账号', { authority: 4 })
.groupFields(['assignee'])
.adminGruop(({ session, target }, value) => {
const assignee = value ? +value : session.selfId
const assignee = value ? getTargetId(value) : session.selfId
if (!isInteger(assignee) || assignee < 0) return '参数错误。'
target.assignee = assignee
})
Expand Down

0 comments on commit 9211080

Please sign in to comment.