Skip to content

Commit

Permalink
fix(discord): add missing ids in message-deleted event (#251)
Browse files Browse the repository at this point in the history
  • Loading branch information
XxLittleCxX authored May 1, 2021
1 parent 11a5443 commit bbd8d6c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/adapter-discord/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@ export async function adaptSession(bot: DiscordBot, input: DC.Payload) {
} else if (input.t === 'MESSAGE_DELETE') {
session.type = 'message-deleted'
session.messageId = input.d.id
session.groupId = input.d.guild_id
session.channelId = input.d.channel_id
}
return new Session(bot.app, session)
}

0 comments on commit bbd8d6c

Please sign in to comment.