feat: identify, presence update commands
This commit is contained in:
parent
b3bf3a7c16
commit
6c335568f5
11 changed files with 194 additions and 68 deletions
24
Foxcord/Models/Activity.cs
Normal file
24
Foxcord/Models/Activity.cs
Normal file
|
@ -0,0 +1,24 @@
|
|||
namespace Foxcord.Models;
|
||||
|
||||
public record Activity(
|
||||
string Name,
|
||||
ActivityType Type,
|
||||
string? Url = null,
|
||||
DateTimeOffset CreatedAt = default,
|
||||
ActivityTimestamps? Timestamps = null,
|
||||
ActivityEmoji? Emoji = null,
|
||||
string? State = null);
|
||||
|
||||
public record ActivityTimestamps(int? Start = null, int? End = null);
|
||||
|
||||
public record ActivityEmoji(string Name, Snowflake? Id = null, bool? Animated = null);
|
||||
|
||||
public enum ActivityType
|
||||
{
|
||||
Playing = 0,
|
||||
Streaming = 1,
|
||||
Listening = 2,
|
||||
Watching = 3,
|
||||
Custom = 4,
|
||||
Competing = 5,
|
||||
}
|
|
@ -2,7 +2,7 @@ using System.Text.Json.Serialization;
|
|||
|
||||
namespace Foxcord.Models;
|
||||
|
||||
public class User
|
||||
public record User
|
||||
{
|
||||
public Snowflake Id { get; init; }
|
||||
public required string Username { get; init; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue