Merge pull request #1 from Peter-MJ-Parker/patch-2

edit: typing change
This commit is contained in:
Peter-MJ-Parker
2024-07-20 20:32:54 -05:00
committed by GitHub

View File

@@ -187,7 +187,7 @@ type Contexts = IntegrationContextType | 0 | 1 | 2;
export type ValidMemberPermissions =
| typeof PermissionFlagsBits //discord.js enum
| Array<typeof PermissionFlagsBits>
| string //must be a stringified number
| `${number}` //must be a stringified number
| bigint
export interface PublishConfig {
@@ -214,7 +214,6 @@ const IntegrationType = {
export const publishConfig = (config: ValidPublishOptions) => {
return CommandInitPlugin(({ module, absPath }) => {
if((module.type & PUBLISHABLE) === 0) {
//@ts-ignore
return controller.stop("Cannot publish this module; Not of type Both,Slash,CtxUsr,CtxMsg.");
}
let _config=config