Skip to content

Commit

Permalink
Update bot.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
dragon-fish authored Apr 2, 2021
1 parent 87f3932 commit 06cf0ec
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/adapter-discord/src/bot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ export class DiscordBot extends Bot<'discord'> {
const type = await FileType.fromBuffer(fileBuffer)
fd.append('file', fileBuffer, 'file.' + type.ext)
fd.append('payload_json', JSON.stringify(payload_json))
const data = await this.request('POST', requestUrl, fd, fd.getHeaders())
return data
return this.request('POST', requestUrl, fd, fd.getHeaders())
}

private parseQuote(chain: segment.Chain) {
Expand Down

0 comments on commit 06cf0ec

Please sign in to comment.