Skip to content

Commit

Permalink
check permission while set essence message
Browse files Browse the repository at this point in the history
  • Loading branch information
MrXiaoM committed Dec 5, 2023
1 parent 63b0639 commit 3546370
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ class GroupWrapper(
}

override suspend fun setEssenceMessage(source: MessageSource): Boolean {
// TODO 权限
checkBotPermission(MemberPermission.ADMINISTRATOR)
botWrapper.impl.setEssenceMsg(source.ids[0])
return true
}
Expand Down

0 comments on commit 3546370

Please sign in to comment.