From ec2b32f60832d68fa1c1f696ff1b67dc24864611 Mon Sep 17 00:00:00 2001 From: Peter-MJ-Parker <34216187+Peter-MJ-Parker@users.noreply.github.com> Date: Sat, 20 Jul 2024 20:32:05 -0500 Subject: [PATCH] edit: typing change directly imply type of permissions string -> `${number}` remove test ts ignore - no longer needed after v4 release --- packages/publisher/index.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/publisher/index.ts b/packages/publisher/index.ts index a5f9785..d8983ea 100644 --- a/packages/publisher/index.ts +++ b/packages/publisher/index.ts @@ -179,7 +179,7 @@ export class Publisher implements Init { export type ValidMemberPermissions = | typeof PermissionFlagsBits //discord.js enum | Array - | string //must be a stringified number + | `${number}` //must be a stringified number | bigint export interface PublishConfig { @@ -206,7 +206,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