Skip to content

Commit

Permalink
fix REST method.call
Browse files Browse the repository at this point in the history
  • Loading branch information
sampaiodiego committed Feb 3, 2023
1 parent 47f1e9a commit dad2821
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/client/WebClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
Expand Down

0 comments on commit dad2821

Please sign in to comment.