Skip to content

Commit 630e876

Browse files
authored
Allow tracker to get and send bp (#167)
1 parent 08d5efe commit 630e876

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

src/features/bp/bp-command.ts

+9-4
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,12 @@ import {
1010
import { Command } from "../../shared/command/command";
1111
import { Subcommand } from "../../shared/command/subcommand";
1212
import { getTextChannel, prismaClient } from "../..";
13-
import { batphoneChannelId, raiderRoleId, trackerRoleId, wakeupChannelId } from "../../config";
13+
import {
14+
batphoneChannelId,
15+
raiderRoleId,
16+
trackerRoleId,
17+
wakeupChannelId,
18+
} from "../../config";
1419
import { authorizeByMemberRoles } from "../../shared/command/util";
1520
import { officerRoleId, modRoleId, knightRoleId } from "../../config";
1621
import { error } from "console";
@@ -26,7 +31,7 @@ class sendBp extends Subcommand {
2631
try {
2732
// authorize
2833
authorizeByMemberRoles(
29-
[officerRoleId, modRoleId, knightRoleId],
34+
[officerRoleId, modRoleId, knightRoleId, trackerRoleId],
3035
interaction
3136
);
3237

@@ -216,7 +221,7 @@ class unsetBp extends Subcommand {
216221
public async execute(interaction: CommandInteraction<CacheType>) {
217222
// authorize
218223
authorizeByMemberRoles(
219-
[officerRoleId, modRoleId, knightRoleId, trackerRoleId],
224+
[officerRoleId, modRoleId, knightRoleId],
220225
interaction
221226
);
222227

@@ -265,7 +270,7 @@ class getBp extends Subcommand {
265270
public async execute(interaction: CommandInteraction<CacheType>) {
266271
// authorize
267272
authorizeByMemberRoles(
268-
[officerRoleId, modRoleId, knightRoleId],
273+
[officerRoleId, modRoleId, knightRoleId, trackerRoleId],
269274
interaction
270275
);
271276

0 commit comments

Comments
 (0)