Skip to content

Commit

Permalink
fix(bolt-revolt): fix regression due to 040839c
Browse files Browse the repository at this point in the history
  • Loading branch information
austinhuang0131 committed Feb 4, 2024
1 parent 85e094e commit 0cff1f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/bolt-revolt/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ export default class RevoltPlugin extends BoltPlugin {
try {
const msg = await coreToMessage({ ...dat, replyto });
const result = data.type === 'update'
? (await channel.fetchMessage(dat.id)).edit(msg) // TODO
: channel.sendMessage(msg);
? await (await channel.fetchMessage(dat.id)).edit(msg) // TODO
: await channel.sendMessage(msg);
return {
channel: dat.channel,
id: 'id' in result ? result.id : result._id,
Expand Down

0 comments on commit 0cff1f8

Please sign in to comment.