Skip to content

Commit

Permalink
Allow tracker to get and send bp
Browse files Browse the repository at this point in the history
  • Loading branch information
ebm5025 committed Feb 5, 2025
1 parent 08d5efe commit b8581cb
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/features/bp/bp-command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,12 @@ import {
import { Command } from "../../shared/command/command";
import { Subcommand } from "../../shared/command/subcommand";
import { getTextChannel, prismaClient } from "../..";
import { batphoneChannelId, raiderRoleId, trackerRoleId, wakeupChannelId } from "../../config";
import {
batphoneChannelId,
raiderRoleId,
trackerRoleId,
wakeupChannelId,
} from "../../config";
import { authorizeByMemberRoles } from "../../shared/command/util";
import { officerRoleId, modRoleId, knightRoleId } from "../../config";
import { error } from "console";
Expand All @@ -26,7 +31,7 @@ class sendBp extends Subcommand {
try {
// authorize
authorizeByMemberRoles(
[officerRoleId, modRoleId, knightRoleId],
[officerRoleId, modRoleId, knightRoleId, trackerRoleId],
interaction
);

Expand Down Expand Up @@ -216,7 +221,7 @@ class unsetBp extends Subcommand {
public async execute(interaction: CommandInteraction<CacheType>) {
// authorize
authorizeByMemberRoles(
[officerRoleId, modRoleId, knightRoleId, trackerRoleId],
[officerRoleId, modRoleId, knightRoleId],
interaction
);

Expand Down Expand Up @@ -265,7 +270,7 @@ class getBp extends Subcommand {
public async execute(interaction: CommandInteraction<CacheType>) {
// authorize
authorizeByMemberRoles(
[officerRoleId, modRoleId, knightRoleId],
[officerRoleId, modRoleId, knightRoleId, trackerRoleId],
interaction
);

Expand Down

0 comments on commit b8581cb

Please sign in to comment.