fix deploy

This commit is contained in:
DjDeveloperr 2021-04-09 10:37:11 +05:30
parent 758db4cfb2
commit fe6ee7ddac
1 changed files with 15 additions and 0 deletions

View File

@ -75,6 +75,21 @@ export function handle(
client.handle(cmd, handler)
}
if (typeof (window as any).setTimeout !== 'function') {
Object.defineProperty(window, 'setTimeout', {
value: (fn: CallableFunction, _ms: number, ...args: any[]) => {
fn(...args)
return 0
}
})
}
if (typeof (window as any).clearTimeout !== 'function') {
Object.defineProperty(window, 'clearTimeout', {
value: (_id: number) => {}
})
}
export { commands, client }
export * from './src/types/slash.ts'
export * from './src/structures/slash.ts'