Skip to content
This repository was archived by the owner on Oct 9, 2025. It is now read-only.

Commit cdc7707

Browse files
committed
fix: make /dev command staffOnly
1 parent 9ff2e7e commit cdc7707

File tree

4 files changed

+12
-8
lines changed

4 files changed

+12
-8
lines changed

bun.lock

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -233,17 +233,17 @@
233233

234234
"@pnpm/npm-conf": ["@pnpm/npm-conf@2.3.1", "", { "dependencies": { "@pnpm/config.env-replace": "^1.1.0", "@pnpm/network.ca-file": "^1.0.1", "config-chain": "^1.1.11" } }, ""],
235235

236-
"@prisma/client": ["@prisma/client@6.4.0", "", { "peerDependencies": { "prisma": "*", "typescript": ">=5.1.0" } }, ""],
236+
"@prisma/client": ["@prisma/client@6.4.1", "", { "peerDependencies": { "prisma": "*", "typescript": ">=5.1.0" }, "optionalPeers": ["prisma", "typescript"] }, "sha512-A7Mwx44+GVZVexT5e2GF/WcKkEkNNKbgr059xpr5mn+oUm2ZW1svhe+0TRNBwCdzhfIZ+q23jEgsNPvKD9u+6g=="],
237237

238-
"@prisma/debug": ["@prisma/debug@6.4.0", "", {}, ""],
238+
"@prisma/debug": ["@prisma/debug@6.4.1", "", {}, "sha512-Q9xk6yjEGIThjSD8zZegxd5tBRNHYd13GOIG0nLsanbTXATiPXCLyvlYEfvbR2ft6dlRsziQXfQGxAgv7zcMUA=="],
239239

240-
"@prisma/engines": ["@prisma/engines@6.4.0", "", { "dependencies": { "@prisma/debug": "6.4.0", "@prisma/engines-version": "6.4.0-29.a9055b89e58b4b5bfb59600785423b1db3d0e75d", "@prisma/fetch-engine": "6.4.0", "@prisma/get-platform": "6.4.0" } }, ""],
240+
"@prisma/engines": ["@prisma/engines@6.4.1", "", { "dependencies": { "@prisma/debug": "6.4.1", "@prisma/engines-version": "6.4.0-29.a9055b89e58b4b5bfb59600785423b1db3d0e75d", "@prisma/fetch-engine": "6.4.1", "@prisma/get-platform": "6.4.1" } }, "sha512-KldENzMHtKYwsOSLThghOIdXOBEsfDuGSrxAZjMnimBiDKd3AE4JQ+Kv+gBD/x77WoV9xIPf25GXMWffXZ17BA=="],
241241

242242
"@prisma/engines-version": ["@prisma/engines-version@6.4.0-29.a9055b89e58b4b5bfb59600785423b1db3d0e75d", "", {}, ""],
243243

244-
"@prisma/fetch-engine": ["@prisma/fetch-engine@6.4.0", "", { "dependencies": { "@prisma/debug": "6.4.0", "@prisma/engines-version": "6.4.0-29.a9055b89e58b4b5bfb59600785423b1db3d0e75d", "@prisma/get-platform": "6.4.0" } }, ""],
244+
"@prisma/fetch-engine": ["@prisma/fetch-engine@6.4.1", "", { "dependencies": { "@prisma/debug": "6.4.1", "@prisma/engines-version": "6.4.0-29.a9055b89e58b4b5bfb59600785423b1db3d0e75d", "@prisma/get-platform": "6.4.1" } }, "sha512-uZ5hVeTmDspx7KcaRCNoXmcReOD+84nwlO2oFvQPRQh9xiFYnnUKDz7l9bLxp8t4+25CsaNlgrgilXKSQwrIGQ=="],
245245

246-
"@prisma/get-platform": ["@prisma/get-platform@6.4.0", "", { "dependencies": { "@prisma/debug": "6.4.0" } }, ""],
246+
"@prisma/get-platform": ["@prisma/get-platform@6.4.1", "", { "dependencies": { "@prisma/debug": "6.4.1" } }, "sha512-gXqZaDI5scDkBF8oza7fOD3Q3QMD0e0rBynlzDDZdTWbWmzjuW58PRZtj+jkvKje2+ZigCWkH8SsWZAsH6q1Yw=="],
247247

248248
"@prisma/instrumentation": ["@prisma/instrumentation@6.2.1", "", { "dependencies": { "@opentelemetry/instrumentation": "^0.52.0 || ^0.53.0 || ^0.54.0 || ^0.55.0 || ^0.56.0" }, "peerDependencies": { "@opentelemetry/api": "^1.8" } }, ""],
249249

@@ -575,6 +575,8 @@
575575

576576
"fs.realpath": ["fs.realpath@1.0.0", "", {}, ""],
577577

578+
"fsevents": ["fsevents@2.3.3", "", { "os": "darwin" }, "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw=="],
579+
578580
"function-bind": ["function-bind@1.1.2", "", {}, ""],
579581

580582
"get-east-asian-width": ["get-east-asian-width@1.3.0", "", {}, ""],
@@ -903,7 +905,7 @@
903905

904906
"pretty-ms": ["pretty-ms@9.2.0", "", { "dependencies": { "parse-ms": "^4.0.0" } }, ""],
905907

906-
"prisma": ["prisma@6.4.0", "", { "dependencies": { "@prisma/engines": "6.4.0", "esbuild": ">=0.12 <1", "esbuild-register": "3.6.0" }, "peerDependencies": { "typescript": ">=5.1.0" }, "bin": "build/index.js" }, ""],
908+
"prisma": ["prisma@6.4.1", "", { "dependencies": { "@prisma/engines": "6.4.1", "esbuild": ">=0.12 <1", "esbuild-register": "3.6.0" }, "optionalDependencies": { "fsevents": "2.3.3" }, "peerDependencies": { "typescript": ">=5.1.0" }, "optionalPeers": ["typescript"], "bin": { "prisma": "build/index.js" } }, "sha512-q2uJkgXnua/jj66mk6P9bX/zgYJFI/jn4Yp0aS6SPRrjH/n6VyOV7RDe1vHD0DX8Aanx4MvgmUPPoYnR6MJnPg=="],
907909

908910
"proto-list": ["proto-list@1.2.4", "", {}, ""],
909911

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"type": "module",
2525
"dependencies": {
2626
"@hono/node-server": "^1.13.8",
27-
"@prisma/client": "^6.4.0",
27+
"@prisma/client": "^6.4.1",
2828
"@sentry/node": "^9.1.0",
2929
"canvas": "^3.1.0",
3030
"common-tags": "^1.8.2",
@@ -52,7 +52,7 @@
5252
"lint-staged": "^15.4.3",
5353
"nodemon": "^3.1.9",
5454
"prettier": "^3.5.1",
55-
"prisma": "^6.4.0",
55+
"prisma": "^6.4.1",
5656
"release-it": "^18.1.2",
5757
"typescript": "^5.7.3",
5858
"typescript-eslint": "^8.24.1"

src/commands/Staff/dev/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import BaseCommand from '#src/core/BaseCommand.js';
44
export default class DevCommand extends BaseCommand {
55
constructor() {
66
super({
7+
staffOnly: true,
78
name: 'dev',
89
description: 'ooh spooky',
910
types: {

src/commands/Staff/dev/send-alert.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import {
1616
export default class DevAnnounceCommand extends BaseCommand {
1717
constructor() {
1818
super({
19+
staffOnly: true,
1920
name: 'send-alert',
2021
description: 'Alert something to all users. This will go to their inbox.',
2122
types: { slash: true, prefix: true },

0 commit comments

Comments
 (0)