Skip to content

Commit

Permalink
feat: at element add name (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
idranme authored Aug 7, 2024
1 parent 071839e commit a391748
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ export async function adaptMessage(
}

message.elements = h.transform(chain, {
at({ qq }) {
if (qq !== 'all') return h.at(qq)
at(attrs) {
if (attrs.qq !== 'all') return h.at(attrs.qq, { name: attrs.name })
return h('at', { type: 'all' })
},
face({ id }) {
Expand Down

0 comments on commit a391748

Please sign in to comment.