elliebot/src/EllieBot/Db/Models/roles/StickyRoles.cs
2024-05-14 23:08:36 +12:00

14 lines
No EOL
367 B
C#

namespace EllieBot.Db.Models;
#nullable disable
public class StickyRole : DbEntity
{
public ulong GuildId { get; set; }
public string RoleIds { get; set; }
public ulong UserId { get; set; }
public ulong[] GetRoleIds()
=> string.IsNullOrWhiteSpace(RoleIds)
? []
: RoleIds.Split(',').Select(ulong.Parse).ToArray();
}