feat: limit ban command to user only installs
vi did:web:vt3e.cat
Fri, 12 Jun 2026 23:42:05 +0100
1 files changed,
3 insertions(+),
1 deletions(-)
jump to
M
src/commands/ban.ts
→
src/commands/ban.ts
@@ -5,7 +5,7 @@ import { parseIncludedGames, parseDuration, createReactive } from "@/utils";
import config, { type Game } from "@/config"; import { ban, getUser } from "@/roblox"; import { kitten } from "@/discord"; -import { option } from "@purrkit/core"; +import { INTEGRATION_CONTEXT_PRESETS, INTEGRATION_TYPE_PRESETS, option } from "@purrkit/core"; const { games: GAMES } = config; type State = {@@ -55,6 +55,8 @@ }
export const banCommand = kitten.command("ban", { description: "ban a user from the specified games", + contexts: INTEGRATION_CONTEXT_PRESETS.EVERYWHERE, + integrationTypes: INTEGRATION_TYPE_PRESETS.USER_ONLY, options: { player: option.string("ID of the player to ban", { required: true }), reason: option.string("reason for the ban", { required: true }),