constdms: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.
Type Declaration
Section titled “Type Declaration”close()
Section titled “close()”close(
channelId):void
Hides a DM from the bot’s list.
Parameters
Section titled “Parameters”channelId
Section titled “channelId”string
Returns
Section titled “Returns”void
listOpen()
Section titled “listOpen()”listOpen():
Channel[]
The DMs the bot has open.
Returns
Section titled “Returns”Channel[]
open()
Section titled “open()”open(
memberId):Channel
The DM with memberId, opened when there is none.
Parameters
Section titled “Parameters”memberId
Section titled “memberId”string
Returns
Section titled “Returns”Channel