Guides

User Emoji StatusesBOT-ONLY

Bot Walkthrough 13 of 18

Bots can set and remove emoji statuses for users who allow them to do so.

Setting an Emoji Status

setUserEmojiStatus accepts a custom emoji ID.

await client.setUserEmojiStatus(userId, {
  type: "customEmoji",
  customEmojiId,
});

A future Unix timestamp in until removes the status automatically.

const until = Math.floor(Date.now() / 1_000) + 60 * 60;

await client.setUserEmojiStatus(userId, {
  type: "customEmoji",
  customEmojiId,
}, { until });

Removing an Emoji Status

To remove the user’s current emoji status, call removeUserEmojiStatus.

await client.removeUserEmojiStatus(userId);