From fc2910d79b0052c0d73f1c09151c3a65d79a7b30 Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Fri, 3 Sep 2021 15:04:14 -0400 Subject: fix price command and eval methods --- src/lib/extensions/discord-akairo/BushClientUtil.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/lib/extensions') 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) -- cgit