mirror of
https://github.com/sern-handler/tools
synced 2026-06-06 01:16:59 +00:00
edit: typing change
directly imply type of permissions string -> `${number}`
remove test ts ignore - no longer needed after v4 release
This commit is contained in:
@@ -179,7 +179,7 @@ export class Publisher implements Init {
|
||||
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 {
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user