Refactor and rename project to yawaflua.Discord.Net; add core entities and interfaces for Discord OAuth2 integration

This commit is contained in:
Dmitri Shimanski
2025-08-22 06:48:43 +03:00
parent 423bc8def0
commit e0d2b65fff
37 changed files with 867 additions and 382 deletions

26
Entities/DiscordRole.cs Normal file
View File

@@ -0,0 +1,26 @@
using yawaflua.Discord.Net.Entities.Enums;
using yawaflua.Discord.Net.Interfaces.Models;
namespace yawaflua.Discord.Net.Entities;
internal class DiscordRole : IRole
{
public ulong Id { get; set; }
public string Name { get; set; }
public int Color { get; set; }
private RoleColor Colors { get; set; }
public bool IsHoisted { get; set; }
public bool IsManaged { get; set; }
public bool IsMentionable { get; set; }
public int Position { get; set; }
public ulong? Permissions { get; set; }
public string? IconHash { get; set; }
public string? UnicodeEmoji { get; set; }
public Dictionary<RoleTags, ulong?>? Tags { get; set; }
IRoleColor IRole.Colors
{
get => Colors;
set => Colors = (RoleColor)value;
}
}