Files
FluxPoseBot2/FluxPoseDiscordBot/Users/Actions.cs
2025-11-23 16:55:44 +01:00

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;
}
}