Splitting up, doesn't work
This commit is contained in:
15
FluxPoseDiscordBot/Users/Actions.cs
Normal file
15
FluxPoseDiscordBot/Users/Actions.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user