Skip to content

Commit

Permalink
fix: 🐛 autocomplete result dont work
Browse files Browse the repository at this point in the history
  • Loading branch information
liy77 committed Feb 9, 2024
1 parent eced184 commit f6d3cdd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/rest/src/rest/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,10 @@ export class Rest extends EventEmitter {
type: InteractionResponseType,
) {
let d: BodyInit, contentType: string | undefined;
if ("choices" in data) d = data;
if ("choices" in data) d = {
data,
type
};
else {
const extracted = extractMessageData(
{ data: data as MessagePostData, type },
Expand Down

0 comments on commit f6d3cdd

Please sign in to comment.