@@ -10,7 +10,12 @@ import {
10
10
import { Command } from "../../shared/command/command" ;
11
11
import { Subcommand } from "../../shared/command/subcommand" ;
12
12
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" ;
14
19
import { authorizeByMemberRoles } from "../../shared/command/util" ;
15
20
import { officerRoleId , modRoleId , knightRoleId } from "../../config" ;
16
21
import { error } from "console" ;
@@ -26,7 +31,7 @@ class sendBp extends Subcommand {
26
31
try {
27
32
// authorize
28
33
authorizeByMemberRoles (
29
- [ officerRoleId , modRoleId , knightRoleId ] ,
34
+ [ officerRoleId , modRoleId , knightRoleId , trackerRoleId ] ,
30
35
interaction
31
36
) ;
32
37
@@ -216,7 +221,7 @@ class unsetBp extends Subcommand {
216
221
public async execute ( interaction : CommandInteraction < CacheType > ) {
217
222
// authorize
218
223
authorizeByMemberRoles (
219
- [ officerRoleId , modRoleId , knightRoleId , trackerRoleId ] ,
224
+ [ officerRoleId , modRoleId , knightRoleId ] ,
220
225
interaction
221
226
) ;
222
227
@@ -265,7 +270,7 @@ class getBp extends Subcommand {
265
270
public async execute ( interaction : CommandInteraction < CacheType > ) {
266
271
// authorize
267
272
authorizeByMemberRoles (
268
- [ officerRoleId , modRoleId , knightRoleId ] ,
273
+ [ officerRoleId , modRoleId , knightRoleId , trackerRoleId ] ,
269
274
interaction
270
275
) ;
271
276
0 commit comments