Skip to content

Struct Presence

zaun_client::Presence · Struct

pub struct Presence { … }

A member’s presence as everyone else sees it (invisible members look Offline).

The member.

Online, Idle, Dnd or Offline.

What they are doing, if they said.

pub fn activity_line(&self) -> Option<String>

How clients show the activity: “Playing chess”, “Listening to lofi radio”, or the custom text with its emoji.

Clone, Debug, Eq, From<&PresenceSignal>, PartialEq, StructuralPartialEq

Full rustdoc page