Register whitelist user parameters correctly
This commit is contained in:
+2
-2
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user