Guides

BirthdayUSER-ONLY

User Walkthrough 14 of 50

Users can set or remove the account’s birthday.

Setting a Birthday

setBirthday accepts the day, month, and optionally the year.

await client.setBirthday({
  birthday: { day: 9, month: 9, year: 1995 },
});

Removing the Birthday

An empty setBirthday call removes the birthday.

await client.setBirthday();

Suggesting a Birthday

suggestBirthday suggests a birthday to another user.

await client.suggestBirthday(userId, { day: 1, month: 1, year: 2000 });