Class PresenceProperties
- Namespace
- NetCord.Gateway
- Assembly
- NetCord.dll
public class PresenceProperties
- Inheritance
-
PresenceProperties
- Inherited Members
-
Constructors
PresenceProperties(UserStatusType)
public PresenceProperties(UserStatusType statusType)
Parameters
statusType
UserStatusType
Properties
Activities
[JsonPropertyName("activities")]
public IEnumerable<UserActivityProperties>? Activities { get; set; }
Property Value
- IEnumerable<UserActivityProperties>
Afk
[JsonPropertyName("afk")]
public bool Afk { get; set; }
Property Value
- bool
Since
[JsonConverter(typeof(MillisecondsNullableUnixDateTimeOffsetConverter))]
[JsonPropertyName("since")]
public DateTimeOffset? Since { get; set; }
Property Value
- DateTimeOffset?
StatusType
[JsonPropertyName("status")]
public UserStatusType StatusType { get; set; }
Property Value
- UserStatusType
Methods
AddActivities(params UserActivityProperties[])
public PresenceProperties AddActivities(params UserActivityProperties[] activities)
Parameters
activities
UserActivityProperties[]
Returns
- PresenceProperties
AddActivities(IEnumerable<UserActivityProperties>)
public PresenceProperties AddActivities(IEnumerable<UserActivityProperties> activities)
Parameters
activities
IEnumerable<UserActivityProperties>
Returns
- PresenceProperties
WithActivities(IEnumerable<UserActivityProperties>?)
public PresenceProperties WithActivities(IEnumerable<UserActivityProperties>? activities)
Parameters
activities
IEnumerable<UserActivityProperties>
Returns
- PresenceProperties
WithAfk(bool)
public PresenceProperties WithAfk(bool afk = true)
Parameters
afk
bool
Returns
- PresenceProperties
WithSince(DateTimeOffset?)
public PresenceProperties WithSince(DateTimeOffset? since)
Parameters
since
DateTimeOffset?
Returns
- PresenceProperties
WithStatusType(UserStatusType)
public PresenceProperties WithStatusType(UserStatusType statusType)
Parameters
statusType
UserStatusType
Returns
- PresenceProperties