UrbitEx.API.DM (UrbitEx v0.6.1) View Source

Client API to interact with dm-hook, new implementation of direct messaging Fetch, send, accept and decline DMs.

Link to this section Summary

Functions

Accepts a Direct Message with a ship. Takes an UrbitEx.Session struct and an Urbit @p to invite.

Declines a Direct Message with a ship. Takes an UrbitEx.Session struct and an Urbit @p to invite.

Fetch new DMs. Takes a Session struct, a target @p, and an optional options keyword list. For details check the api/gall/graph.ex module, DMs use the same endpoints.

Starts a Direct Message with a ship. Takes an UrbitEx.Session struct and an Urbit @p to invite.

Link to this section Functions

Link to this function

accept(session, channel, target)

View Source

Accepts a Direct Message with a ship. Takes an UrbitEx.Session struct and an Urbit @p to invite.

Link to this function

decline(session, channel, target)

View Source

Declines a Direct Message with a ship. Takes an UrbitEx.Session struct and an Urbit @p to invite.

Link to this function

fetch_children(session, target, parent_index, start_index \\ "/", end_index \\ "/", opts \\ [])

View Source
Link to this function

fetch_newest(session, target, opts \\ [])

View Source

Fetch new DMs. Takes a Session struct, a target @p, and an optional options keyword list. For details check the api/gall/graph.ex module, DMs use the same endpoints.

Link to this function

fetch_node(session, target, index, opts \\ [])

View Source
Link to this function

fetch_older_than(session, target, index, opts \\ [])

View Source
Link to this function

fetch_oldest(session, target, opts \\ [])

View Source
Link to this function

fetch_subset(session, target, start_index, end_index, opts \\ [])

View Source
Link to this function

fetch_younger_than(session, target, index, opts \\ [])

View Source
Link to this function

send(session, channel, target, text, custom \\ nil)

View Source

Starts a Direct Message with a ship. Takes an UrbitEx.Session struct and an Urbit @p to invite.