refactor: use .env STAFF instead of global config owners for global commands
This commit is contained in:
parent
91f54424ed
commit
f7fede47bd
14 changed files with 27 additions and 23 deletions
|
@ -1,5 +1,5 @@
|
|||
import { TextChannel } from "discord.js";
|
||||
import { isOwnerPreFilter } from "../../../pluginUtils";
|
||||
import { isStaffPreFilter } from "../../../pluginUtils";
|
||||
import { getActiveReload, setActiveReload } from "../activeReload";
|
||||
import { botControlCmd } from "../types";
|
||||
|
||||
|
@ -7,7 +7,7 @@ export const ReloadGlobalPluginsCmd = botControlCmd({
|
|||
trigger: "bot_reload_global_plugins",
|
||||
permission: null,
|
||||
config: {
|
||||
preFilters: [isOwnerPreFilter],
|
||||
preFilters: [isStaffPreFilter],
|
||||
},
|
||||
|
||||
async run({ pluginData, message }) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue