Skip to main content

activity

Function activity 

Source
pub fn activity(kind: ActivityType, name: impl Into<String>) -> Activity
Expand description

An activity of kind named name, for Client::set_presence. Set details, state, started_at, url (streaming) or emoji (custom) on it as needed.