Skip to content

Commit

Permalink
add a checkout all command
Browse files Browse the repository at this point in the history
  • Loading branch information
loukylor committed Dec 24, 2024
1 parent 577ef57 commit f4673a6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions TrickFireDiscordBot/Services/Discord/Commands.cs
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,16 @@ public static async Task ResyncAllRoles(
await context.RespondAsync("Finished");
}

[Command("checkoutall")]
[Description("Checks out all members that are checked in")]
[InteractionAllowedContexts(DiscordInteractionContextType.Guild)]
[RequirePermissions([], [DiscordPermission.ManageGuild])]
public static async Task CheckoutAll(SlashCommandContext context)
{
context.ServiceProvider.GetRequiredService<BotState>().Members.Clear();
await context.RespondAsync("Finished");
}

[Command("checkinout")]
[Description("Checks you into/out of the shop and updates the member list")]
[InteractionAllowedContexts(DiscordInteractionContextType.Guild)]
Expand Down

0 comments on commit f4673a6

Please sign in to comment.