diff options
Diffstat (limited to 'src/lib/extensions')
-rw-r--r-- | src/lib/extensions/discord-akairo/BushClientUtil.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/extensions/discord-akairo/BushClientUtil.ts b/src/lib/extensions/discord-akairo/BushClientUtil.ts index f759d22..d9a96ba 100644 --- a/src/lib/extensions/discord-akairo/BushClientUtil.ts +++ b/src/lib/extensions/discord-akairo/BushClientUtil.ts @@ -1432,8 +1432,9 @@ export class BushClientUtil extends ClientUtil { // modified from https://stackoverflow.com/questions/31054910/get-functions-methods-of-a-class // answer by Bruno Grieder - public getMethods(obj: any): string { + public getMethods(_obj: any): string { let props: string[] = []; + let obj: any = new Object(_obj); do { const l = Object.getOwnPropertyNames(obj) |