Register whitelist user parameters correctly

This commit is contained in:
MrDevBot
2026-09-02 01:50:51 +10:00
parent 8cdc70d3dd
commit f5929de03f
+2 -2
View File
@@ -191,8 +191,8 @@ host.AddSlashCommand("players", "List online players", async (ApplicationCommand
!Allowed(c) ? Denied() : await PlayerList()); !Allowed(c) ? Denied() : await PlayerList());
host.AddSlashCommandGroup("whitelist", "Manage bot access", group => host.AddSlashCommandGroup("whitelist", "Manage bot access", group =>
{ {
group.AddSubCommand("add", "Add a Discord user", (User user, ApplicationCommandContext c) => Whitelist(c, user, true)); group.AddSubCommand("add", "Add a Discord user", (ApplicationCommandContext c, User user) => Whitelist(c, user, true));
group.AddSubCommand("del", "Remove a Discord user", (User user, ApplicationCommandContext c) => Whitelist(c, user, false)); group.AddSubCommand("del", "Remove a Discord user", (ApplicationCommandContext c, User user) => Whitelist(c, user, false));
}); });
async Task<InteractionMessageProperties> Status() async Task<InteractionMessageProperties> Status()