client
Read-only access to the client state PhoenixCord tracks.
Functions
Section titled “Functions”current-user
Section titled “current-user”current-user() → option<user>
get-user
Section titled “get-user”get-user(id: snowflake) → option<user>
get-member
Section titled “get-member”get-member(guild-id: snowflake, user-id: snowflake) → option<member>
get-guild
Section titled “get-guild”get-guild(id: snowflake) → option<guild>
list-guilds
Section titled “list-guilds”list-guilds() → list<guild>
list-roles
Section titled “list-roles”list-roles(guild-id: snowflake) → list<role>
Roles of a guild, lowest position first.
get-channel
Section titled “get-channel”get-channel(id: snowflake) → option<channel>
list-guild-channels
Section titled “list-guild-channels”list-guild-channels(guild-id: snowflake) → list<channel>
Channels and threads of a guild, ordered by position.
list-private-channels
Section titled “list-private-channels”list-private-channels() → list<channel>
DMs and group DMs, most recently active first.
get-message
Section titled “get-message”get-message(channel-id: snowflake, message-id: snowflake) → option<message>
list-messages
Section titled “list-messages”list-messages(channel-id: snowflake) → list<message>
Cached messages of a channel, oldest first. Only recent messages are cached.
get-presence
Section titled “get-presence”get-presence(user-id: snowflake) → option<presence>
list-relationships
Section titled “list-relationships”list-relationships() → list<relationship>
list-voice-states
Section titled “list-voice-states”list-voice-states(channel-id: snowflake) → list<voice-state>
Users connected to a voice channel.
get-permissions
Section titled “get-permissions”get-permissions(channel-id: snowflake) → u64
The current user’s permission bitfield in a channel, after roles, overwrites and timeouts. All bits are set in DMs.
get-selection
Section titled “get-selection”get-selection() → channel-selection