-
Notifications
You must be signed in to change notification settings - Fork 0
isOfficer
Matthew Grist edited this page Nov 14, 2022
·
4 revisions
isOfficer(id)
- version 1.0.0
The isOfficer
method determines if a member is an officer of the chapter. Any position that is not the Faculty Sponsor or Chapter Member will return true. Typically, the Club Officers consist of the Secretary, Treasurer, Vice Chair, and Chair. It is possible to add more officer positions through ACM (such as Web Master).
-
Input Parameters: (string|number|object) - id, A member object or an ACM ID as string/number.
- Return Type: boolean
const Chapter = require("acm-roster");
async function main() {
// creating new client
const client = new Chapter();
try {
// log in to chapters ACM account
await client.login("acm-username", "acm-password");
if (client.isOfficer(12345678)) {
...
}
} catch (err) {
throw err;
}
}