all repos — discord-utils @ fe1626583ce351ffa2bf22c5d83dd638aa409753

feat: limit ban command to user only installs
vi did:web:vt3e.cat
Fri, 12 Jun 2026 23:42:05 +0100
commit

fe1626583ce351ffa2bf22c5d83dd638aa409753

parent

3938fc3ab9b0ae293f847258450f6b50aa52819b

1 files changed, 3 insertions(+), 1 deletions(-)

jump to
M src/commands/ban.tssrc/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 }),