Table of Contents

Class UserActivityProperties

Namespace
NetCord.Gateway
Assembly
NetCord.dll
public class UserActivityProperties
Inheritance
UserActivityProperties
Inherited Members

Constructors

UserActivityProperties(string, UserActivityType)

public UserActivityProperties(string name, UserActivityType type)

Parameters

name string
type UserActivityType

Properties

ApplicationId

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("application_id")]
public ulong? ApplicationId { get; set; }

Property Value

ulong?

Assets

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("assets")]
public UserActivityAssetsProperties? Assets { get; set; }

Property Value

UserActivityAssetsProperties

Buttons

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("buttons")]
public IEnumerable<UserActivityButtonProperties>? Buttons { get; set; }

Property Value

IEnumerable<UserActivityButtonProperties>

CreatedAt

[JsonConverter(typeof(MillisecondsUnixDateTimeOffsetConverter))]
[JsonPropertyName("created_at")]
public DateTimeOffset CreatedAt { get; set; }

Property Value

DateTimeOffset

Details

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("details")]
public string? Details { get; set; }

Property Value

string

Emoji

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("emoji")]
public EmojiProperties? Emoji { get; set; }

Property Value

EmojiProperties

Flags

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("flags")]
public UserActivityFlags? Flags { get; set; }

Property Value

UserActivityFlags?

Instance

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("instance")]
public bool? Instance { get; set; }

Property Value

bool?

Name

[JsonPropertyName("name")]
public string Name { get; set; }

Property Value

string

Party

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("party")]
public PartyProperties? Party { get; set; }

Property Value

PartyProperties

Secrets

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("secrets")]
public UserActivitySecretsProperties? Secrets { get; set; }

Property Value

UserActivitySecretsProperties

State

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("state")]
public string? State { get; set; }

Property Value

string

Timestamps

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("timestamps")]
public UserActivityTimestampsProperties? Timestamps { get; set; }

Property Value

UserActivityTimestampsProperties

Type

[JsonPropertyName("type")]
public UserActivityType Type { get; set; }

Property Value

UserActivityType

Url

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("url")]
public string? Url { get; set; }

Property Value

string

Methods

AddButtons(params UserActivityButtonProperties[])

public UserActivityProperties AddButtons(params UserActivityButtonProperties[] buttons)

Parameters

buttons UserActivityButtonProperties[]

Returns

UserActivityProperties

AddButtons(IEnumerable<UserActivityButtonProperties>)

public UserActivityProperties AddButtons(IEnumerable<UserActivityButtonProperties> buttons)

Parameters

buttons IEnumerable<UserActivityButtonProperties>

Returns

UserActivityProperties

WithApplicationId(ulong?)

public UserActivityProperties WithApplicationId(ulong? applicationId)

Parameters

applicationId ulong?

Returns

UserActivityProperties

WithAssets(UserActivityAssetsProperties?)

public UserActivityProperties WithAssets(UserActivityAssetsProperties? assets)

Parameters

assets UserActivityAssetsProperties

Returns

UserActivityProperties

WithButtons(IEnumerable<UserActivityButtonProperties>?)

public UserActivityProperties WithButtons(IEnumerable<UserActivityButtonProperties>? buttons)

Parameters

buttons IEnumerable<UserActivityButtonProperties>

Returns

UserActivityProperties

WithCreatedAt(DateTimeOffset)

public UserActivityProperties WithCreatedAt(DateTimeOffset createdAt)

Parameters

createdAt DateTimeOffset

Returns

UserActivityProperties

WithDetails(string?)

public UserActivityProperties WithDetails(string? details)

Parameters

details string

Returns

UserActivityProperties

WithEmoji(EmojiProperties?)

public UserActivityProperties WithEmoji(EmojiProperties? emoji)

Parameters

emoji EmojiProperties

Returns

UserActivityProperties

WithFlags(UserActivityFlags?)

public UserActivityProperties WithFlags(UserActivityFlags? flags)

Parameters

flags UserActivityFlags?

Returns

UserActivityProperties

WithInstance(bool?)

public UserActivityProperties WithInstance(bool? instance = true)

Parameters

instance bool?

Returns

UserActivityProperties

WithName(string)

public UserActivityProperties WithName(string name)

Parameters

name string

Returns

UserActivityProperties

WithParty(PartyProperties?)

public UserActivityProperties WithParty(PartyProperties? party)

Parameters

party PartyProperties

Returns

UserActivityProperties

WithSecrets(UserActivitySecretsProperties?)

public UserActivityProperties WithSecrets(UserActivitySecretsProperties? secrets)

Parameters

secrets UserActivitySecretsProperties

Returns

UserActivityProperties

WithState(string?)

public UserActivityProperties WithState(string? state)

Parameters

state string

Returns

UserActivityProperties

WithTimestamps(UserActivityTimestampsProperties?)

public UserActivityProperties WithTimestamps(UserActivityTimestampsProperties? timestamps)

Parameters

timestamps UserActivityTimestampsProperties

Returns

UserActivityProperties

WithType(UserActivityType)

public UserActivityProperties WithType(UserActivityType type)

Parameters

type UserActivityType

Returns

UserActivityProperties

WithUrl(string?)

public UserActivityProperties WithUrl(string? url)

Parameters

url string

Returns

UserActivityProperties