Interface: community
Generated from zaun:bot@0.2.0 (wit/ in zaun-bot). Do not edit.
Reads and moderation, all checked by the host against the bot’s grants and permissions.
use types.{id, host-error, member, channel, role, timestamp}
Functions
Section titled “Functions”get-member
Section titled “get-member”get-member: func(member-id: id) -> result<member, host-error>;Needs capability members for members the bot has not seen.
list-members
Section titled “list-members”list-members: func(after: option<id>, limit: u32) -> result<list<member>, host-error>;get-channel
Section titled “get-channel”get-channel: func(channel-id: id) -> result<channel, host-error>;list-channels
Section titled “list-channels”list-channels: func() -> result<list<channel>, host-error>;get-role
Section titled “get-role”get-role: func(role-id: id) -> result<role, host-error>;list-roles
Section titled “list-roles”list-roles: func() -> result<list<role>, host-error>;add-role
Section titled “add-role”add-role: func(member-id: id, role-id: id) -> result<_, host-error>;member.roles.update.
remove-role
Section titled “remove-role”remove-role: func(member-id: id, role-id: id) -> result<_, host-error>;timeout
Section titled “timeout”timeout: func(member-id: id, until: option<timestamp>, reason: option<string>) -> result<_, host-error>;member.timeout; none clears.
kick: func(member-id: id, reason: option<string>) -> result<_, host-error>;member.kick.