2023-08-21 10:58:17 -04:00
|
|
|
using System.Collections.Generic;
|
|
|
|
using System.Threading.Tasks;
|
2024-03-20 23:18:34 -04:00
|
|
|
using Luski.Shared.PublicServers.V1.Enums;
|
2023-08-21 10:58:17 -04:00
|
|
|
|
|
|
|
namespace Luski.net.Structures.Public;
|
|
|
|
|
|
|
|
public class Role
|
|
|
|
{
|
|
|
|
public required PublicServer Server { get; init; } = default!;
|
|
|
|
public required long ID { get; init; } = default!;
|
|
|
|
public required string Name { get; init; } = default!;
|
|
|
|
public required int Index { get; init; } = default!;
|
|
|
|
public required Color Color { get; init; } = default!;
|
|
|
|
public required string Description { get; init; } = default!;
|
|
|
|
public required string DisplayName { get; init; } = default!;
|
2024-03-20 23:18:34 -04:00
|
|
|
public required ServerPermission ServerPermissions { get; init; } = default!;
|
2023-08-21 10:58:17 -04:00
|
|
|
public required long[] MembersListID { get; init; } = default!;
|
|
|
|
private List<SocketUser>? RawUsers = null;
|
|
|
|
|
|
|
|
public Task<SocketUser[]> GetMembers()
|
|
|
|
{
|
|
|
|
if (RawUsers is null)
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return Task.FromResult(RawUsers!.ToArray());
|
|
|
|
}
|
|
|
|
}
|