FunctionsClient$hasClientPermsOn this page$hasClientPerms Usage Bot has permissions Parameters FieldDescriptionpermsperms Example <AoiClient>.addCommand({ name: "command", code: ` $if[$hasClientPerms[can_pin_messages]; $replyMessage[True can_pin_messages]; $replyMessage[False can_pin_messages] ]`,});