Skip to content

const dms: object

Defined in: sdk/js/src/dms.ts:8

The bot’s DMs. A member can turn DMs from bots off; then open throws FORBIDDEN.

close(channelId): void

Hides a DM from the bot’s list.

string

void

listOpen(): Channel[]

The DMs the bot has open.

Channel[]

open(memberId): Channel

The DM with memberId, opened when there is none.

string

Channel