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;
|
|
|
|
|
2024-03-31 23:57:12 -04:00
|
|
|
public class RoleOverride
|
2023-08-21 10:58:17 -04:00
|
|
|
{
|
|
|
|
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; }
|
2023-08-21 10:58:17 -04:00
|
|
|
|
2024-03-31 23:57:12 -04:00
|
|
|
public async Task<Role> GetRole()
|
2023-08-21 10:58:17 -04:00
|
|
|
{
|
2024-03-31 23:57:12 -04:00
|
|
|
return await Server.GetRole(ParentRoleID);
|
2023-08-21 10:58:17 -04:00
|
|
|
}
|
|
|
|
}
|