Luski.Net/Luski.net/Structures/Public/RoleOverride.cs
2024-08-27 10:57:22 -04:00

21 lines
510 B
C#

using System.Threading.Tasks;
using Luski.Shared.PublicServers.V1.Enums;
using Luski.Shared.PublicServers.V1.Shared;
namespace Luski.net.Structures.Public;
public class RoleOverride
{
public long ParentRoleID { get; init; }
public ServerPermission GoodPermissions { get; set; }
public ServerPermission BadPermissions { get; set; }
public required PublicServer Server { get; init; }
public async Task<Role> GetRole()
{
return await Server.GetRole(ParentRoleID);
}
}