Crux vdev Crux.Structs.Presence View Source

Represents a Discord Presence Object.

Differences opposed to the Discord API Object:

  • :user is just the user id

Link to this section Summary

Functions

Creates a Crux.Structs.Presence struct from raw data

Link to this section Types

Link to this type

t() View Source (since 0.1.0)
t() :: %Crux.Structs.Presence{
  activities: [map()],
  client_status: %{required(atom()) => atom()},
  game: map() | nil,
  status: String.t(),
  user: Crux.Rest.snowflake()
}

Link to this section Functions

Link to this function

create(data) View Source (since 0.1.0)

Creates a Crux.Structs.Presence struct from raw data.

Automatically invoked by Crux.Structs.create/2.