Skip to content

Interface: dms

Generated from zaun:bot@0.2.0 (wit/ in zaun-bot). Do not edit.

Direct-message channels with members (capability dms, the protocol). The member decides: FORBIDDEN (dms_closed) when they turned DMs from bots off or closed this one.

  • use types.{id, host-error, channel}
open: func(member-id: id) -> result<channel, host-error>;

dm.open: the DM with member-id, created when there is none.

close: func(channel-id: id) -> result<_, host-error>;

dm.close: hides it from the bot’s list.

list-open: func() -> result<list<channel>, host-error>;

dm.list: the DMs the bot has open.