mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-14 13:55:03 +00:00
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,6 +1,6 @@
|
|||
import { Guild, GuildChannel, TextChannel } from "discord.js";
|
||||
import { commandTypeHelpers as ct } from "../../../commandTypes";
|
||||
import { isOwnerPreFilter, sendErrorMessage, sendSuccessMessage } from "../../../pluginUtils";
|
||||
import { isStaffPreFilter, sendErrorMessage, sendSuccessMessage } from "../../../pluginUtils";
|
||||
import { GuildInvite, isGuildInvite, resolveInvite, verboseUserMention } from "../../../utils";
|
||||
import { botControlCmd } from "../types";
|
||||
import { isEligible } from "../functions/isEligible";
|
||||
|
@ -9,7 +9,7 @@ export const ChannelToServerCmd = botControlCmd({
|
|||
trigger: ["channel_to_server", "channel2server"],
|
||||
permission: null,
|
||||
config: {
|
||||
preFilters: [isOwnerPreFilter],
|
||||
preFilters: [isStaffPreFilter],
|
||||
},
|
||||
|
||||
signature: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue