Skip to content

Commit

Permalink
fix C2C_MESSAGE_CREATE
Browse files Browse the repository at this point in the history
  • Loading branch information
idranme committed Jul 12, 2024
1 parent 142bfe4 commit c901c60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adapters/qq/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export function decodeGroupMessage(
if (!payload) return message
const date = data.timestamp.slice(0, data.timestamp.indexOf('m=')).trim().replace(/\+(\d{4}) CST/, 'GMT+$1')
payload.timestamp = new Date(date).valueOf()
payload.guild = { id: data.group_id }
payload.guild = data.group_id && { id: data.group_id }
payload.user = { id: data.author.id, avatar: `https://q.qlogo.cn/qqapp/${bot.config.id}/${data.author.id}/640` }
return message
}
Expand Down

0 comments on commit c901c60

Please sign in to comment.