$hasPerms
Will check if the user has the listed permission and return boolean.
Parameters
Parameter | Description |
---|---|
permission | permission chat telegram |
memberId | member id (optional) |
Example
<AoiClient>.addCommand({
name: "message",
code: `
$replyMessage[$hasPerms[can_post_stories]]
`,
});