mirror of
https://github.com/sern-handler/tools
synced 2026-06-06 01:16:59 +00:00
@@ -187,7 +187,7 @@ type Contexts = IntegrationContextType | 0 | 1 | 2;
|
|||||||
export type ValidMemberPermissions =
|
export type ValidMemberPermissions =
|
||||||
| typeof PermissionFlagsBits //discord.js enum
|
| typeof PermissionFlagsBits //discord.js enum
|
||||||
| Array<typeof PermissionFlagsBits>
|
| Array<typeof PermissionFlagsBits>
|
||||||
| string //must be a stringified number
|
| `${number}` //must be a stringified number
|
||||||
| bigint
|
| bigint
|
||||||
|
|
||||||
export interface PublishConfig {
|
export interface PublishConfig {
|
||||||
@@ -214,7 +214,6 @@ const IntegrationType = {
|
|||||||
export const publishConfig = (config: ValidPublishOptions) => {
|
export const publishConfig = (config: ValidPublishOptions) => {
|
||||||
return CommandInitPlugin(({ module, absPath }) => {
|
return CommandInitPlugin(({ module, absPath }) => {
|
||||||
if((module.type & PUBLISHABLE) === 0) {
|
if((module.type & PUBLISHABLE) === 0) {
|
||||||
//@ts-ignore
|
|
||||||
return controller.stop("Cannot publish this module; Not of type Both,Slash,CtxUsr,CtxMsg.");
|
return controller.stop("Cannot publish this module; Not of type Both,Slash,CtxUsr,CtxMsg.");
|
||||||
}
|
}
|
||||||
let _config=config
|
let _config=config
|
||||||
|
|||||||
Reference in New Issue
Block a user