Skip to content

Commit ccc8be5

Browse files
Merge pull request #1 from Peter-MJ-Parker/patch-2
edit: typing change
2 parents fe191d3 + ec2b32f commit ccc8be5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/publisher/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ type Contexts = IntegrationContextType | 0 | 1 | 2;
187187
export type ValidMemberPermissions =
188188
| typeof PermissionFlagsBits //discord.js enum
189189
| Array<typeof PermissionFlagsBits>
190-
| string //must be a stringified number
190+
| `${number}` //must be a stringified number
191191
| bigint
192192

193193
export interface PublishConfig {
@@ -214,7 +214,6 @@ const IntegrationType = {
214214
export const publishConfig = (config: ValidPublishOptions) => {
215215
return CommandInitPlugin(({ module, absPath }) => {
216216
if((module.type & PUBLISHABLE) === 0) {
217-
//@ts-ignore
218217
return controller.stop("Cannot publish this module; Not of type Both,Slash,CtxUsr,CtxMsg.");
219218
}
220219
let _config=config

0 commit comments

Comments
 (0)