From dad2821031ac11cc6d11f485041e9b3cfa16192b Mon Sep 17 00:00:00 2001 From: Diego Sampaio Date: Fri, 3 Feb 2023 18:32:45 -0300 Subject: [PATCH] fix REST method.call --- src/client/WebClient.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/client/WebClient.ts b/src/client/WebClient.ts index 3b60232..8dd3966 100644 --- a/src/client/WebClient.ts +++ b/src/client/WebClient.ts @@ -274,7 +274,9 @@ export class WebClient extends Client { }); const result = await this.client.post( - `${anon ? 'method.callAnon' : ''}/${encodeURIComponent(method)}`, + `${anon ? 'method.callAnon' : 'method.call'}/${encodeURIComponent( + method + )}`, { message, }