16 lines
434 B
C#
16 lines
434 B
C#
namespace FluxPose.DiscordBot.Users;
|
|
|
|
public class Actions<TContext>(GatewayClient client, TContext context) : ActionsBase<TContext>(context) where TContext : IInteractionContext
|
|
{
|
|
public async Task<List<GuildUser>> GetAllUsersFromGuild()
|
|
{
|
|
var users = await client.Rest.GetGuildUsersAsync(GuildId).ToListAsync();
|
|
if (users == null)
|
|
{
|
|
return [];
|
|
}
|
|
|
|
return users;
|
|
}
|
|
}
|