feat: identify, presence update commands

This commit is contained in:
sam 2024-09-03 02:11:11 +02:00
parent b3bf3a7c16
commit 6c335568f5
Signed by: sam
GPG key ID: B4EF20DDE721CAA1
11 changed files with 194 additions and 68 deletions

View 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,
}

View file

@ -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; }