2023-08-21 10:58:17 -04:00
|
|
|
using System.Threading.Tasks;
|
2024-03-20 23:18:34 -04:00
|
|
|
using Luski.Shared.PublicServers.V1.Enums;
|
|
|
|
using Luski.Shared.PublicServers.V1.Shared;
|
2023-08-21 10:58:17 -04:00
|
|
|
|
|
|
|
namespace Luski.net.Structures.Public;
|
|
|
|
|
|
|
|
public class RoleOveride
|
|
|
|
{
|
|
|
|
public long ID { get; init; }
|
|
|
|
public long ParentRoleID { get; init; }
|
2024-03-20 23:18:34 -04:00
|
|
|
|
|
|
|
public ServerPermission GoodPermissions { get; set; }
|
|
|
|
|
|
|
|
public ServerPermission BadPermissions { get; set; }
|
2023-08-21 10:58:17 -04:00
|
|
|
private Role? Parent = null;
|
|
|
|
|
|
|
|
public Task<Role> GetRole()
|
|
|
|
{
|
|
|
|
if (Parent is null)
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return Task.FromResult(Parent)!;
|
|
|
|
}
|
|
|
|
}
|