Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(inspect): undefined property #1374

Merged
merged 2 commits into from
Mar 3, 2024
Merged

fix(inspect): undefined property #1374

merged 2 commits into from
Mar 3, 2024

Conversation

H4M5TER
Copy link
Member

@H4M5TER H4M5TER commented Mar 1, 2024

session.quote 不存在 userId 和 channelId 两个属性

附样例

{ messageId: '-47795126', id: '-47795126', elements: [ Element { type: 'text', attrs: { content: '.inspect' }, children: [] } ], content: '.inspect', user: { id: '3767615641', name: 'narcissus', userId: '3767615641', avatar: 'http://q.qlogo.cn/headimg_dl?dst_uin=3767615641&spec=640', username: 'narcissus' }, member: { user: { id: '3767615641', name: 'narcissus', userId: '3767615641', avatar: 'http://q.qlogo.cn/headimg_dl?dst_uin=3767615641&spec=640', username: 'narcissus' }, nick: undefined, roles: [ undefined ] }, timestamp: 1709286217000, guild: { id: '292088282' }, channel: { id: '292088282', type: 0 } }

Copy link

codecov bot commented Mar 1, 2024

Codecov Report

Attention: Patch coverage is 0% with 2 lines in your changes are missing coverage. Please review.

Project coverage is 87.78%. Comparing base (f875413) to head (b82bcb6).

Files Patch % Lines
plugins/common/inspect/src/index.ts 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1374      +/-   ##
==========================================
- Coverage   87.80%   87.78%   -0.02%     
==========================================
  Files          36       36              
  Lines        5387     5388       +1     
  Branches     1067     1067              
==========================================
  Hits         4730     4730              
- Misses        657      658       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

plugins/common/inspect/src/index.ts Outdated Show resolved Hide resolved
Co-authored-by: Shigma <shigma10826@gmail.com>
@shigma shigma merged commit 37885ab into master Mar 3, 2024
9 of 13 checks passed
@shigma shigma deleted the H4M5TER-patch-1 branch March 3, 2024 17:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants