Splitting up, doesn't work

This commit is contained in:
2025-11-23 16:55:44 +01:00
parent d2da0069ec
commit 56fae83f03
11 changed files with 225 additions and 197 deletions

View File

@@ -0,0 +1,15 @@
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;
}
}