Luski.Net/Luski.net/Structures/Public/RoleOverride.cs

21 lines
510 B
C#
Raw Permalink Normal View History

using System.Threading.Tasks;
2024-03-20 23:18:34 -04:00
using Luski.Shared.PublicServers.V1.Enums;
using Luski.Shared.PublicServers.V1.Shared;
namespace Luski.net.Structures.Public;
2024-03-31 23:57:12 -04:00
public class RoleOverride
{
public long ParentRoleID { get; init; }
2024-03-20 23:18:34 -04:00
public ServerPermission GoodPermissions { get; set; }
public ServerPermission BadPermissions { get; set; }
2024-03-31 23:57:12 -04:00
public required PublicServer Server { get; init; }
2024-03-31 23:57:12 -04:00
public async Task<Role> GetRole()
{
2024-03-31 23:57:12 -04:00
return await Server.GetRole(ParentRoleID);
}
}